 Celery v4.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2106 页 | 2.23 MB | 1 年前3 Celery v4.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2106 页 | 2.23 MB | 1 年前3
 Celery 3.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2110 页 | 2.23 MB | 1 年前3 Celery 3.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2110 页 | 2.23 MB | 1 年前3
 Celery v5.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2309 页 | 2.13 MB | 1 年前3 Celery v5.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2309 页 | 2.13 MB | 1 年前3
 Celery v5.0.1 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.13 MB | 1 年前3 Celery v5.0.1 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.13 MB | 1 年前3
 Celery v5.0.2 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.14 MB | 1 年前3 Celery v5.0.2 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.14 MB | 1 年前3
 Celery v5.0.5 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2315 页 | 2.14 MB | 1 年前3 Celery v5.0.5 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2315 页 | 2.14 MB | 1 年前3
 PyArmor Documentation v6.2.7Child Project Project Configuration File Man Page Common Options obfuscate licenses pack hdinfo init config build info check banchmark register download runtime Understanding Obfuscated Scripts Global scripts and all the required files are generated: dist/ myscript.py pytransform/ __init__.py _pytransform.so, or _pytransform.dll in Windows, _pytransform.dylib in MacOS following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts0 码力 | 159 页 | 123.91 KB | 1 年前3 PyArmor Documentation v6.2.7Child Project Project Configuration File Man Page Common Options obfuscate licenses pack hdinfo init config build info check banchmark register download runtime Understanding Obfuscated Scripts Global scripts and all the required files are generated: dist/ myscript.py pytransform/ __init__.py _pytransform.so, or _pytransform.dll in Windows, _pytransform.dylib in MacOS following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts0 码力 | 159 页 | 123.91 KB | 1 年前3
 PyArmor Documentation v6.3.1Child Project Project Configuration File Man Page Common Options obfuscate licenses pack hdinfo init config build info check banchmark register download runtime Understanding Obfuscated Scripts Global scripts and all the required files are generated: dist/ myscript.py pytransform/ __init__.py _pytransform.so, or _pytransform.dll in Windows, _pytransform.dylib in MacOS following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts0 码力 | 161 页 | 124.89 KB | 1 年前3 PyArmor Documentation v6.3.1Child Project Project Configuration File Man Page Common Options obfuscate licenses pack hdinfo init config build info check banchmark register download runtime Understanding Obfuscated Scripts Global scripts and all the required files are generated: dist/ myscript.py pytransform/ __init__.py _pytransform.so, or _pytransform.dll in Windows, _pytransform.dylib in MacOS following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts0 码力 | 161 页 | 124.89 KB | 1 年前3
 PyArmor Documentation v5.6.5Executable File Improving The Security By Restrict Mode Man Page obfuscate licenses pack hdinfo init config build info check banchmark register download Examples Obfuscating and Packing PyQt Application following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts ----------- load_pytransform: 28.429590911694085 ms init_pytransform: 10.701080723946758 ms verify_license: 0.515428636879825 ms total_extra_init_time: 40.34842417122847 ms import_no_obfuscated_module:0 码力 | 103 页 | 86.97 KB | 1 年前3 PyArmor Documentation v5.6.5Executable File Improving The Security By Restrict Mode Man Page obfuscate licenses pack hdinfo init config build info check banchmark register download Examples Obfuscating and Packing PyQt Application following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts ----------- load_pytransform: 28.429590911694085 ms init_pytransform: 10.701080723946758 ms verify_license: 0.515428636879825 ms total_extra_init_time: 40.34842417122847 ms import_no_obfuscated_module:0 码力 | 103 页 | 86.97 KB | 1 年前3
 PyArmor Documentation v5.5.7Executable File Improving The Security By Restrict Mode Man Page obfuscate licenses pack hdinfo init config build info check banchmark register download Examples Obfuscating and Packing PyQt Application following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts ----------- load_pytransform: 28.429590911694085 ms init_pytransform: 10.701080723946758 ms verify_license: 0.515428636879825 ms total_extra_init_time: 40.34842417122847 ms import_no_obfuscated_module:0 码力 | 104 页 | 85.70 KB | 1 年前3 PyArmor Documentation v5.5.7Executable File Improving The Security By Restrict Mode Man Page obfuscate licenses pack hdinfo init config build info check banchmark register download Examples Obfuscating and Packing PyQt Application following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts ----------- load_pytransform: 28.429590911694085 ms init_pytransform: 10.701080723946758 ms verify_license: 0.515428636879825 ms total_extra_init_time: 40.34842417122847 ms import_no_obfuscated_module:0 码力 | 104 页 | 85.70 KB | 1 年前3
共 560 条
- 1
- 2
- 3
- 4
- 5
- 6
- 56














