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 schedule and trigger your Warehouse Actions syncs from outside RudderStack and integrate them with your existing Airflow workflows.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ecdb1d7c9c6f9e1f99ab40c22a137e0b7364f7e65f9462ab6a8dcc444083cc5 |
|
MD5 | 6e9157932624317aac0210474518a523 |
|
BLAKE2b-256 | 3dc74f1cad574679e4c0d95f71af8759957b4bf3e164492e6c01dc385879e117 |
Hashes for rudderstack_airflow_provider-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1b9c1739ab48c3b93788b8e1e39380e324f21eeb712cb24c6473cdf64946f90 |
|
MD5 | c79609ed471dcfce49c7ebe95afdba14 |
|
BLAKE2b-256 | 1984aaf15e09fdd8e29a56cb869095c9d76e54712aaaac9e01c2c8f2846738c7 |