airflow provider for rudderstack
Project description
The Customer Data Platform for Developers
Website · Documentation · Slack Community
RudderStack Airflow Provider
The RudderStack Airflow Provider lets you programmatically schedule and trigger your Reverse ETL syncs from outside RudderStack and integrate them with your existing Airflow workflows.
For more information on using the Airflow Provider utility, refer to the documentation. |
---|
Installation
pip install rudderstack-airflow-provider
Usage
A simple DAG for triggering syncs for a RudderStack source:
with DAG(
'rudderstack-sample',
default_args=default_args,
description='A simple tutorial DAG',
schedule_interval=timedelta(days=1),
start_date=datetime(2021, 1, 1),
catchup=False,
tags=['rs']
) as dag:
rs_operator = RudderstackOperator(
source_id='<source-id>',
task_id='<any-task-id>',
connection_id='rudderstack_conn'
)
For the complete code, refer to this example.
Operator Parameters
Parameter | Description | Type | Default |
---|---|---|---|
source_id |
Valid RudderStack source ID | String | None |
task_id |
A unique task ID within a DAG | String | None |
wait_for_completion |
If True , the task will wait for sync to complete. |
Boolean | False |
connection_id |
The Airflow connection to use for connecting to the Rudderstack API. | String | rudderstack_default |
The RudderStack operator also supports all the parameters supported by the Airflow base operator.
For details on how to run the DAG in Airflow, refer to the documentation.
Contribute
We would love to see you contribute to this project. Get more information on how to contribute here.
License
The RudderStack Airflow Provider is released under the MIT License.
Contact Us
For more information or queries on this feature, you can contact us or start a conversation in our Slack community.
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
Built Distribution
Hashes for rudderstack-airflow-provider-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6990bb98726d53992cd3805bf06faf7655f9cc9ceff5b1416b6bd4e5766bbf89 |
|
MD5 | 89201297f47de6a7255dd4217411a6ae |
|
BLAKE2b-256 | 9cfe67e3e80fd8006fe39776449c48bed2a373e9e2eee91b15bb405cd2c97b8c |
Hashes for rudderstack_airflow_provider-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d533fa223eea9c822548b7c4b8afb2a1263e0645276bda15081a46fc2fe07018 |
|
MD5 | a52e746b22103eeb1a4ae8bd17f6f652 |
|
BLAKE2b-256 | 591f1370aa11395abcc7212afc3ee216accd8cd31a29a1e7ebcaa3fcabf329e4 |