airflow-dag-deployer-0.5
توضیحات
To deploy projects dags to airflow dag directory
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | airflow-dag-deployer-0.5 |
| نام | airflow-dag-deployer |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Subigya Jyoti Panta |
| ایمیل نویسنده | subigyapanta@gmail.com |
| آدرس صفحه اصلی | https://github.com/SubigyaPanta/airflow-dag-deployer.git |
| آدرس اینترنتی | https://pypi.org/project/airflow-dag-deployer/ |
| مجوز | - |
## Installation
`pip install airflow-dag-deployer`
## Deploy dags with commandline
Dags can be deployed as zip archive or independent python file prefixed by project name.
### Deploying dags as a zip archive
```
deploydag --project=<project_name> --source=<dags_dir> --destination=<airflow_home> --method=zip
```
### Deploying dags as a file
```
deploydag --project=<project_name> --source=<dags_dir> --destination=<airflow_home> --method=file
```
### Deploying dags with config file for different environments
#### Set up of different deployment environment (dev/test/prod)
Have a `deploydag.json` (or any filename with json setting) file like this:
```json
{
"dev": {
"project": "testproject",
"source": "dags",
"destination": "airflowhome",
"method": "zip"
}
}
```
Run command like this:
```
deploydag --config=deploydag.json --env=dev
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl airflow-dag-deployer-0.5:
pip install airflow-dag-deployer-0.5.whl
نصب پکیج tar.gz airflow-dag-deployer-0.5:
pip install airflow-dag-deployer-0.5.tar.gz