Skip to main content

A Braze provider for Apache Airflow.

Project description

Airflow      Braze

airflow-provider-braze

An Apache Airflow provider for Braze REST API.

PyPI Python License Tests


Installation

pip install airflow-provider-braze

Requires Apache Airflow >= 2.9.0.

Connection Setup

In the Airflow UI, create a connection with:

Field Value
Connection Type Braze
Host Your Braze REST endpoint (e.g. rest.iad-03.braze.com)
Password Your Braze REST API key

Usage

from braze_provider.operators.braze_cdi import BrazeRunCDIJobOperator

sync_braze = BrazeRunCDIJobOperator(
    task_id="sync_braze_cdi",
    integration_id="your-integration-id",
    braze_conn_id="braze_default",
    poll_interval=30,
    timeout=3600,
    wait_for_completion=True,
)

Parameters

Parameter Default Description
integration_id Braze CDI integration ID (templatable)
braze_conn_id braze_default Airflow connection ID
poll_interval 30 Seconds between status checks
timeout 3600 Max seconds to wait
wait_for_completion True Set False to trigger and move on

The operator returns the full job result dict via XCom, including rows_synced and rows_failed_with_errors.

Development

pyenv virtualenv 3.11 braze-provider
pyenv activate braze-provider
pip install -e .
pip install pytest
pytest tests/ -v

Contributing

Currently this provider only supports Cloud Data Ingestion (CDI). The BrazeHook wraps the Braze REST API and can be extended to support additional endpoints. Contributions are welcome — feel free to open a PR!

License

Apache 2.0

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_braze-1.0.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflow_provider_braze-1.0.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file airflow_provider_braze-1.0.0.tar.gz.

File metadata

  • Download URL: airflow_provider_braze-1.0.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for airflow_provider_braze-1.0.0.tar.gz
Algorithm Hash digest
SHA256 44f2a34380d256d6c16ee2aad152d69802eb2bfd55b254618ef8e78a7fb62a61
MD5 6849946b3df1e5ff1e933c8ef3f0952c
BLAKE2b-256 c526a5e1acfac159b74370a7f8c8c99c54d26b746d27cca208608400e88683fc

See more details on using hashes here.

File details

Details for the file airflow_provider_braze-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_provider_braze-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8e6e09c1183323fc38d2c71c96fd6cf1e9b9b975c85ea526aaf6608d210770
MD5 686ee412dc1ae66bfcd6b453e8479ec6
BLAKE2b-256 d05e31898f51365e0733fc905a4062e19cc737362c234800b40c2623dc9f7b09

See more details on using hashes here.

Supported by

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