airflow provider for rudderstack
Project description
Customer Data Platform for Developers
rudder-airflow-provider
Apache airflow provider for rudderstack.
Questions? Start a conversation on our Slack channel.
Why Use rudder-airflow-provider
Trigger wh-action or cloud extract syncs for rudderstack from apache airflow.
Installation
pip install rudderstack-airflow-provider
Usage
A simple DAG for triggering sync for rudderstack source. For complete code, refer example
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')
Operator Params
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 task will wait for sync to complete | boolean | False |
connection_id | airflow connection to use for connecting to rudderstack api | string | rudderstack_default |
Rudderstack operator supports all the parameters supported by airflow base operator
For more detailed guide on how to run the DAG in airflow, refer to this guide
License
The rudderstack-airflow-provider is released under the MIT License.
Contribute
We would love to see you contribute to RudderStack. Get more information on how to contribute here.
Follow Us
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb3ad20eb9e085b3cffb46d44eeda358fa0107e5cc01d0ef80bf257837d30c5 |
|
MD5 | d76b486e7e5ce74cb423b71762178364 |
|
BLAKE2b-256 | 28ff3a58103a1037d9685052a26cb1bd6aba3ca454bc13482cd007d02c79d448 |
Hashes for rudderstack_airflow_provider-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aedbdfe20759df9c04f28aa34c60ada5613b4c95082ed0e45d37cab849b40626 |
|
MD5 | 0f3e29a92450a4c3a23bda7c89cfa006 |
|
BLAKE2b-256 | f59e1c12357c83ede1f548d9478d0b44e66fee794db3a4fb9857b2e8279fc06b |