airflow-provider-hightouch-3.0.3
توضیحات
Hightouch Provider for Airflow
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | airflow-provider-hightouch-3.0.3 |
| نام | airflow-provider-hightouch |
| نسخه کتابخانه | 3.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hightouch |
| ایمیل نویسنده | pedram@hightouch.io |
| آدرس صفحه اصلی | https://github.com/hightouchio/airflow-provider-hightouch |
| آدرس اینترنتی | https://pypi.org/project/airflow-provider-hightouch/ |
| مجوز | Apache License 2.0 |
# Apache Airflow Provider for Hightouch
Provides an Airflow Operator and Hook for [Hightouch](https://hightouch.io).
This allows the user to initiate a run for a sync from Airflow.
## Installation
Pre-requisites: An environment running `apache-airflow` >= 1.10, including >= 2.
```
pip install airflow-provider-hightouch
```
## Configuration
In the Airflow Connections UI, create a new connection for Hightouch.
* `Conn ID`: `hightouch_default`
* `Conn Type`: `HTTP`
* `Host`: `https://api.hightouch.com`
* `Password`: enter the API key for your workspace. You can generate an API
key from your [Workspace Settings](https://app.hightouch.io/settings)
The Operator uses the `hightouch_default` connection id by default, but
if needed, you can create additional Airflow Connections and reference them
in the operator
## Modules
### [HightouchTriggerSyncOperator](./airflow_provider_hightouch/operators/hightouch.py)
Starts a Hightouch Sync Run. Requires the `sync_id` or the `sync_slug` for the sync you wish to
run.
The run is synchronous by default, and the task will be marked complete once the
sync is successfully completed.
However, you can request a asynchronous request instead by passing `synchronous=False`
to the operator.
If the API key is not authorized or if the request is invalid the task will fail.
If a run is already in progress, a new run will be triggered following the
completion of the existing run.
## Examples
Creating a run is as simple as importing the operator and providing it with
a sync_id. An [example dag](./airflow_provider_hightouch/example_dags/example_hightouch_trigger_sync.py)
is available as well.
```
from airflow_provider_hightouch.operators.hightouch import HightouchTriggerSyncOperator
with DAG(....) as dag:
...
my_task = HightouchTriggerSyncOperator(task_id="run_my_sync", sync_id="123")
my_other_task = HightouchTriggerSyncOperator(task_id="run_my_sync", sync_slug="my-sync-slug")
```
## Issues
Please submit [issues](https://github.com/hightouchio/airflow-provider-hightouch/issues) and
[pull requests](https://github.com/hightouchio/airflow-provider-hightouch/pulls) in our official repo:
[https://github.com/hightouchio/airflow-provider-hightouch](https://github.com/hightouchio/airflow-provider-hightouch)
We are happy to hear from you, for any feedback please email the authors at [pedram@hightouch.io](mailto:pedram@hightouch.io).
## Acknowledgements
Special thanks to [Fivetran](https://github.com/fivetran/airflow-provider-fivetran)
for their provider and [Marcos Marx](https://github.com/marcosmarxm/)'s Airbyte
contribution in the core Airflow repo for doing this before we had to
so we could generously learn from their hard work.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| >=1.10 | apache-airflow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl airflow-provider-hightouch-3.0.3:
pip install airflow-provider-hightouch-3.0.3.whl
نصب پکیج tar.gz airflow-provider-hightouch-3.0.3:
pip install airflow-provider-hightouch-3.0.3.tar.gz