PyArmor Documentation v8.5.10
Supported Python versions 3.3.2. Supported platforms 3.3.3. Configuration options 3.3.4. Plugins 3.3.5. Hooks 3.4. Target Environments 3.4.1. Supported Python versions and platforms 3.4.2. Environment variables script app.py to 2 dockers which id are docker-a1 and docker-b2 First create hook script .pyarmor/hooks/app.py def _pyarmor_check_docker(): cid = None with open("/proc/self/cgroup") as f: obfuscated script to check it, please add print statements in the hook script to debug it. See also Hooks __pyarmor__() 1.5.5. Using hook to check network time by other service New in version 8.2. If NTP0 码力 | 193 页 | 154.05 KB | 1 年前3PyArmor Documentation v8.1.9
Supported Python versions 3.3.2. Supported platforms 3.3.3. Configuration options 3.3.4. Plugins 3.3.5. Hooks 3.4. Target Environments 3.4.1. Supported Third-Party Interpreter 3.4.2. Specialized builtin functions script app.py to 2 dockers which id are docker-a1 and docker-b2 First create hook script .pyarmor/hooks/app.py def _pyarmor_check_docker(): cid = None with open("/proc/self/cgroup") as f: obfuscated script to check it, please add print statements in the hook script to debug it. See also Hooks __pyarmor__() 1.5.3. Using hook to check network time by other service New in version 8.2. If NTP0 码力 | 131 页 | 111.00 KB | 1 年前3Jupyter Notebook 5.0.0 Documentation
extension and nbextension Example - Bundler extension Extending the Notebook Contents API File save hooks Custom request handlers Custom front-end extensions Customize keymaps Custom bundler extensions Contributor Contents API Data Model Writing a Custom ContentsManager Customizing Checkpoints Testing File save hooks Examples Custom request handlers Writing a notebook server extension Registering custom handlers example of how to re-use the notebook’s tests. File save hooks You can configure functions that are run whenever a file is saved. There are two hooks available: ContentsManager.pre_save_hook runs on the0 码力 | 184 页 | 4.40 MB | 1 年前3Jupyter Notebook 5.1.0 Documentation
extension and nbextension Example - Bundler extension Extending the Notebook Contents API File save hooks Custom request handlers Custom front-end extensions Customize keymaps Custom bundler extensions Contributor Contents API Data Model Writing a Custom ContentsManager Customizing Checkpoints Testing File save hooks Examples Custom request handlers Writing a notebook server extension Registering custom handlers example of how to re-use the notebook’s tests. File save hooks You can configure functions that are run whenever a file is saved. There are two hooks available: ContentsManager.pre_save_hook runs on the0 码力 | 184 页 | 4.36 MB | 1 年前3Django Q Documentation Release 0.7.9
and repeated tasks Encrypted and compressed packages Failure and success database or cache Result hooks and groups Django Admin integration PaaS compatible with multiple instances Multi cluster monitor 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts)0 码力 | 62 页 | 514.67 KB | 1 年前3Django Q Documentation Release 0.7.9
repeated tasks • Encrypted and compressed packages • Failure and success database or cache • Result hooks and groups • Django Admin integration • PaaS compatible with multiple instances • Multi cluster 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please not0 码力 | 50 页 | 397.77 KB | 1 年前3Django Q Documentation Release 0.7.13
repeated tasks • Encrypted and compressed packages • Failure and success database or cache • Result hooks, groups and chains • Django Admin integration • PaaS compatible with multiple instances • Multi 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please note0 码力 | 56 页 | 416.37 KB | 1 年前3Django Q Documentation Release 0.7.11
repeated tasks • Encrypted and compressed packages • Failure and success database or cache • Result hooks, groups and chains • Django Admin integration • PaaS compatible with multiple instances • Multi 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please not0 码力 | 54 页 | 412.45 KB | 1 年前3Django Q Documentation Release 0.7.10
and repeated tasks Encrypted and compressed packages Failure and success database or cache Result hooks and groups Django Admin integration PaaS compatible with multiple instances Multi cluster monitor 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts)0 码力 | 67 页 | 518.39 KB | 1 年前3Django Q Documentation Release 0.7.12
repeated tasks • Encrypted and compressed packages • Failure and success database or cache • Result hooks, groups and chains • Django Admin integration • PaaS compatible with multiple instances • Multi 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please note0 码力 | 56 页 | 415.46 KB | 1 年前3
共 321 条
- 1
- 2
- 3
- 4
- 5
- 6
- 33