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. https://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.1.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.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airflow_provider_braze-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 04fb1e16419cff901420ecc5a4a7474e9c4ec604f736277f4f3332f493f7f106
MD5 e17504585f8f351934aa00a9764f0ebd
BLAKE2b-256 6dd491caa0413be8662e71fe072e194c0cebcdcf3dfcc48c8468e7e0b96215b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for airflow_provider_braze-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49fdf99a4aeb8e2cbc69c49700ec1e3571147b0dc34680cfbbbef1eec4743cc2
MD5 0ad70b08ead046b19b01d8f43595d9fd
BLAKE2b-256 a5c20befc660353400d3b020a9a4c0688ceee5a8e7fc463129b80e06278d3b68

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