Skip to main content

Hightouch Provider for Airflow

Project description

Apache Airflow Provider for Hightouch

Provides an Airflow Operator and Hook for Hightouch. 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.io
  • Password: enter the API key for your workspace. You can generate an API key from your Workspace 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

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 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 and pull requests in our official repo: 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.

Acknowledgements

Special thanks to Fivetran for their provider and Marcos Marx's Airbyte contribution in the core Airflow repo for doing this before we had to so we could generously learn from their hard work.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow-provider-hightouch-3.0.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

airflow_provider_hightouch-3.0.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file airflow-provider-hightouch-3.0.2.tar.gz.

File metadata

File hashes

Hashes for airflow-provider-hightouch-3.0.2.tar.gz
Algorithm Hash digest
SHA256 9d785fbd91ad5015a1b61e758964903ae92852b3b1963df75f2af80008dc4267
MD5 e3309becb21d0beead57af8f24b44234
BLAKE2b-256 37c1f9352f90e0d1aa0d3ce2f461cc3fc737c340badec93f528ac31f20e2ed52

See more details on using hashes here.

File details

Details for the file airflow_provider_hightouch-3.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_provider_hightouch-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7001b5cd89bb5b4d368a0d69b061313fc3d53407a392ed7ddcfb9cb5e606f2ef
MD5 e5959062540c76bf86b7b6ad288c008f
BLAKE2b-256 39471779aeb55d63a5eddc385e4d670cb729086fd8962f0635c1eae6ec09fb67

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page