engine-function-extension-1.0.5
توضیحات
Python Worker Extension
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | engine-function-extension-1.0.5 |
| نام | engine-function-extension |
| نسخه کتابخانه | 1.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jun Tu |
| ایمیل نویسنده | jun@openlearning.com |
| آدرس صفحه اصلی | https://github.com/jarvinia |
| آدرس اینترنتی | https://pypi.org/project/engine-function-extension/ |
| مجوز | MIT |
# Python worker extension for running OL engine function
More details about the Python worker extension: [azure function doc](https://docs.microsoft.com/en-au/azure/azure-functions/functions-reference-python?tabs=asgi%2Cazurecli-linux%2Capplication-level#python-worker-extensions)
## Using this extension
This extension process that runs in Azure Functions lets us do some setup in our [engine function app](https://github.com/OpenLearningNet/OpenLearningEngine):
- `django.setup()`
- copy hosts alias to the function running vm
To use this extension, you only need to `from engine_function_extension import AppExtension` to your function script file, see [this example](https://github.com/OpenLearningNet/OpenLearningEngine/blob/master/AZ_TaskHandler/main.py).
نیازمندی
| مقدار | نام |
|---|---|
| <2.0.0,>=1.7.0 | azure-functions |
| ==1.0.3 | python-hosts |
نحوه نصب
نصب پکیج whl engine-function-extension-1.0.5:
pip install engine-function-extension-1.0.5.whl
نصب پکیج tar.gz engine-function-extension-1.0.5:
pip install engine-function-extension-1.0.5.tar.gz