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 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.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
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 v5.9.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 6.5 init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . obfuscated 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 pytransform.key 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" 2.7 Packing Obfuscated0 码力 | 131 页 | 428.65 KB | 1 年前3
PyArmor Documentation v6.2.8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.6 init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . obfuscated 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 pytransform.key 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" 2.7 Packing Obfuscated0 码力 | 153 页 | 483.38 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
共 473 条
- 1
- 2
- 3
- 4
- 5
- 6
- 48













