Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Debussy logo

Debussy

Compose data pipelines like music — low-code, self-service, production-ready.

PyPI version PyPI downloads Python Apache Airflow CI Release License: Apache-2.0 Issues Stars Forks Discord


Description

Debussy is a free, open-source, opinionated data architecture and engineering framework. It helps data analysts and engineers build better data platforms through first-class, low-code, self-service pipelines.

In data engineering, teams keep reinventing the wheel. Software engineering practices such as DRY, KISS and YAGNI are still rarely adopted, even though orchestration tools (e.g. Apache Airflow, Prefect, Dagster) and distributed processing engines (e.g. Apache Spark, Apache Beam) abound. Each new pipeline still tends to become a lengthy development project — like building a web application without a framework such as Django or Flask.

Worse, these tools share core concepts but use very different syntaxes and features, which makes migrations daunting. Adopting them also does not automatically produce sound data architecture (data modeling, lifecycle management, and so on). Most companies solve this with in-house frameworks, missing the opportunity for collaboration and wider adoption of data architecture and software engineering best practices.

That is why we built Debussy: a code generation engine for orchestration tools, currently supporting Airflow, with more backends on the roadmap. Its musical semantic model decouples pipeline logic from the orchestration engine and enables a low-code approach. Debussy also ships pipeline templates for ingestion, transformation and reverse ETL, with those best practices built in.

The semantic model in one minute

Debussy borrows its vocabulary from music so that pipeline structure is easy to reason about:

Concept Musical metaphor What it means in Debussy
Composition A complete piece A pipeline configuration: DAG parameters plus the movements to play. It builds one or more DAGs.
Movement A self-contained section of a piece One extraction or transformation unit (for example, one source table), rendered as a task group.
Phrase A melodic line within a movement A sequence of related steps, chained in execution order.
Motif A short, recurring musical idea The smallest reusable building block: a backend-specific task such as a BigQuery load or a dbt run.
flowchart LR
    A[YAML / Python Config] --> B[Debussy Engine]
    B --> C[Airflow DAG]
    C --> D[Spark / dbt / BigQuery]

Key Features

  • Generate dynamic pipelines from YAML configuration files or directly in Python.
  • Describe pipelines with a semantic model that abstracts the orchestration backend.
  • Integrate first-class data projects such as Airflow, Spark and dbt out of the box.
  • Keep the core package independent of Airflow; install only the extras your platform needs.

Key Benefits

✔ Shorter delivery time and lower pipeline development cost, with higher ROI
✔ Less pipeline debt through sound software engineering design principles
✔ Data architecture best practices built into your platform

Quick Start

Debussy's core requires Python 3.11+. The Airflow backend requires Apache Airflow 3.4+ (>=3.4,<4). Since the target lakehouse integrations are currently GCP-based, we recommend deploying to Cloud Composer.

To get started:

  1. Select or create a Google Cloud Platform project.
  2. Enable billing for your project.
  3. Create a Cloud Composer 3 environment running Airflow 3.
  4. Install Debussy on your Cloud Composer instance, with the extras your pipelines need (see Installation).
  5. Read the User's Guide and the examples to learn how to use it!

Installation

The base package (pip install debussy) contains only the engine-neutral core and depends on Inject and yaml_env_var_parser. Everything else is an extra:

Extra Adds Use it for
airflow The Airflow backend (debussy.backends.airflow): Apache Airflow 3.4+ and the standard provider Every pipeline that generates an Airflow DAG
gcp BigQuery, Dataproc and Cloud Storage motifs (the Airflow Google provider) GCP-based ingestion and transformation
dbt dbt-bigquery dbt transformation pipelines
mysql mysqlclient and pandas Reverse ETL to MySQL
sftp paramiko Reverse ETL to SFTP

All pipelines that ship with Debussy run on Airflow today, so a typical installation is pip install "debussy[airflow,gcp,dbt]", plus mysql and sftp for the reverse ETL destinations you use.

Defining pipelines

A pipeline file such as pipelines/example.yaml becomes a DAG when it has a top-level composition_type key. Here is a real, minimal example from examples/data_ingestion/bigquery_ingestion_full/composition.yaml (the referenced raw_table_definition is a separate schema file):

composition_type: bigquery_ingestion
name: bigquery_ingestion_full
source_name: example
source_type: bigquery
description: BigQuery ingestion
dag_parameters:
  dag_id: bigquery_ingestion_full
  description: BigQuery full ingestion example. Fixing a partition and always overwriting it. Versioning on storage
  catchup: false
  schedule: "*/30 * * * *" # At every minute.
  start_date: !!timestamp 2022-01-01 00:00:00
  tags:
    - framework:debussy
    - project:example
    - source:bigquery
    - type:ingestion
    - load:full
    - tier:2
  default_args:
    owner: debussy
ingestion_parameters:
  - name: sintetico_full
    raw_table_definition: ${DEBUSSY__DAGS_FOLDER}/examples/data_ingestion/bigquery_ingestion_full/table_def_sintetico_full.yaml
    extraction_query: SELECT 'dado' as data, TIMESTAMP '{{ logical_date }}' as airflow_logical_date
    extract_connection_id: google_cloud_debussy
    data_partitioning:
      gcs_partition_schema: _load_flag=full/_ts_window_start=0001-01-01 00:00:00/_ts_window_end=9999-01-01 00:00:00/_logical_ts=1970-01-01/_ingestion_ts={{ dag_run.start_date }}
      destination_partition: 1970

Supported values are bigquery_ingestion, rdbms_ingestion, dbt_transformation, reverse_etl_bigquery_to_mysql and reverse_etl_bigquery_to_storage. Other YAML files, such as table schemas, are ignored. Add os_env_prefix: MY_PIPELINE if the YAML references ${MY_PIPELINE_WINDOW_START} and ${MY_PIPELINE_WINDOW_END} (see composition_daily.yaml). Relative paths are resolved against Airflow's dags_folder.

Add one loader file to the Airflow DAGs folder; it generates one DAG per pipeline. This is the exact examples/dags.py loader:

from debussy.backends.airflow import load_dags

load_dags(
    globals(),
    pipelines_dir="examples",
    environment_file="examples/environment.yaml",
)

For your own pipelines, point pipelines_dir at your folder (for example, "pipelines") and environment_file at your environment file.

The Python API works the same way: build the config objects and pass them to load_dags(globals(), pipelines=[config]). Abridged from mysql_sakila_ingestion_yamless.py:

import datetime as dt

from debussy.backends.airflow import load_dags
from debussy.core.config.config_dag_parameters import ConfigDagParameters
from debussy.core.config.config_environment import ConfigEnvironment
from debussy.pipeline.data_ingestion.config.movement_parameters.rdbms_data_ingestion import (
    RdbmsDataIngestionMovementParameters,
)
from debussy.pipeline.data_ingestion.config.rdbms_data_ingestion import (
    ConfigRdbmsDataIngestion,
)

environment = ConfigEnvironment.load_from_file("examples/environment.yaml")
dag_parameters = ConfigDagParameters(
    dag_id="mysql_sakila_ingestion_yamless",
    description="MySQL ingestion example from the Sakila sample database",
    start_date=dt.datetime(2006, 2, 15),
    catchup=True,
    schedule="@daily",
)
composition = ConfigRdbmsDataIngestion(
    name="mysql_sakila_ingestion_yamless",
    description="MySQL ingestion without YAML",
    source_type="mysql",
    source_name="sakila",
    secret_manager_uri=f"projects/{environment.project}/secrets/debussy_mysql_dev",
    dataproc_config={"machine_type": "n1-standard-2", "num_workers": 0},
    environment=environment,
    dag_parameters=dag_parameters,
    movements_parameters=[
        RdbmsDataIngestionMovementParameters(
            name="category",
            extract_connection_id="google_cloud_debussy",
            extraction_query="SELECT category_id, name, last_update FROM sakila.category",
            raw_table_definition={
                "fields": [
                    {"name": "category_id", "data_type": "INT64"},
                    {"name": "name", "data_type": "STRING"},
                    {"name": "last_update", "data_type": "TIMESTAMP"},
                ]
            },
            data_partitioning={
                "gcs_partition_schema": "_load_flag=incr/_logical_ts={{ logical_date }}",
                "destination_partition": "{{ logical_date.strftime('%Y%m%d') }}",
            },
        )
    ],
)

load_dags(globals(), pipelines=[composition])
Migrating from debussy_concert 1.x

The package is now debussy and Airflow is no longer a mandatory dependency. Change imports from debussy_concert to debussy. airflow_easy_setup is gone: delete the per-pipeline setup .py files, add composition_type (and os_env_prefix, if you had one) to each composition YAML, and add the load_dags file above. The debussy_airflow package is no longer needed. Airflow 2 users should stay on debussy_concert<2.

Integrations

Debussy works with the tools and systems you already use with your data. Badges below are standardized shields.io badges, replacing heavyweight external logo images:

Category Integration Notes
Orchestration Apache Airflow An open-source orchestration engine (airflow.apache.org)
Processing & Transformation Spark Open-source distributed processing engine, used for ingestion pipelines (spark.apache.org)
Processing & Transformation dbt Open-source transformation tool, used for transformation pipelines
Storage & Data Warehouse Google Cloud Storage Cloud blob storage, supported as a data source or destination
Storage & Data Warehouse BigQuery Serverless, massive-scale SQL analytics platform; the analytical environment (aka data lakehouse)
Storage & Data Warehouse AWS S3 Cloud blob storage, supported as a data source or destination
Relational Databases MySQL Leading open-source database, supported as a data source or destination
Relational Databases PostgreSQL Leading open-source database, supported as a data source or destination
Relational Databases Other SQL RDBMS Most RDBMS are supported as data sources via JDBC drivers through Spark

Full Documentation

See the Wiki for full documentation, examples, operational details and more.

Communication

Contributions

We welcome all community contributions!

To keep the community open and welcoming, Debussy adheres to a code of conduct adapted from the Contributor Covenant.

Please read the contributing guidelines before opening an issue or a pull request. They cover issue reporting, coding standards and development setup.

Changelog

Release notes are maintained in CHANGELOG.md, in the Keep a Changelog format. Upgrading from 1.x? Start with its Breaking changes section and the migration guide.

  • 2.0.0 (unreleased): package renamed from debussy_concert to debussy (import debussy, environment variable prefix DEBUSSY__), Python 3.11+ and Airflow 3.4+, Airflow code moved to debussy.backends.airflow, and Airflow/Google Cloud/dbt/MySQL/SFTP dependencies split into extras. airflow_easy_setup and per-pipeline setup files are replaced by load_dags.
  • 1.2.0: packaging fixes, airflow_easy_setup and Dataproc Serverless support.
  • 1.1.0: Dataproc Serverless support and a BigQuery load-with-schema fix.
  • 1.0.0: improved folder structure and dependencies.
  • 0.1.0: first release.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at LICENSE or at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Changelog

All notable changes to Debussy are documented here. The format follows Keep a Changelog, and the project uses semantic versioning. Each change is described in detail in its pull request and in the GitHub Releases.

Unreleased - 2.0.0

Pre-releases: 2.0.0.dev1 (2026-11-27), 2.0.0.dev2 (2026-11-28).

Breaking changes

Each item has its migration step. The migration guide walks through them with examples.

  • The package is renamed from debussy_concert to debussy. Install debussy and replace debussy_concert with debussy in your imports.
  • Environment variables use the prefix DEBUSSY__, not DEBUSSY_CONCERT__. Rename them in your YAML files, for example ${DEBUSSY__DAGS_FOLDER}.
  • Python 3.11+ and Airflow 3.4+ are required. Upgrade your Airflow environment (on Cloud Composer, Composer 3 with Airflow 3).
  • Airflow, Google Cloud, dbt, MySQL and SFTP dependencies are extras. Install the ones you use, for example pip install "debussy[airflow,gcp,dbt]".
  • debussy-airflow and airflow-dbt are no longer dependencies. Their operators and hooks are in debussy.backends.airflow. Uninstall them unless other code needs them.
  • airflow_easy_setup and the per-pipeline DAG files are removed. Add one DAGs-folder file that calls debussy.backends.airflow.load_dags, and move composition_type and os_env_prefix into each composition YAML.
  • dag_parameters.schedule_interval is now schedule. Rename the key in your YAML files and ConfigDagParameters calls.
  • Templates use Airflow 3 names. Replace execution_date with logical_date and next_execution_date with data_interval_end, and macros.ds_format(logical_date, ...) with logical_date.strftime(...).
  • Airflow code moved to debussy.backends.airflow. Import AirflowService from debussy.backends.airflow.service instead of debussy_concert.core.service.workflow.airflow.
  • Some internal modules moved. If your code imports them, import StartMotif and EndMotif from debussy.core.motif.lifecycle, the BigQuery job builders (TableReference, BigQueryTimePartitioning, BigQueryJobMixin) from debussy.core.service.lakehouse.bigquery_job, and BigQueryQueryJobMotif from debussy.pipeline.reverse_etl.motif.bigquery_query_job.
  • The Airflow DummyMotif is removed. It had no users; use an EndMotif or a motif of your own.

Added

  • debussy.backends.airflow.load_dags, one loader for YAML pipelines (composition_type and os_env_prefix keys) and pipelines built in Python. It logs and skips a pipeline that fails to build; strict=True raises.
  • An engine-neutral task contract in debussy.core.tasks: TaskSpec (with always_run and result_of()), RunContext, Capability, ActionRegistry. A motif can define tasks() instead of overriding build(), and the Airflow backend builds those tasks as operators (debussy.backends.airflow.tasks).
  • Characterization tests that compare every example DAG with a committed snapshot, and CI on GitHub Actions.
  • A release workflow that publishes to PyPI with Trusted Publishing and creates a GitHub Release.
  • Jinja2 as a core dependency.

Changed

  • Every pipeline motif (BigQuery, storage, dbt and Dataproc export) and the start and end motifs describe their work with tasks() and named actions. They import without Airflow.
  • Only debussy.backends and the pipeline compositions import Airflow. The core, configs, phrases and motifs import without it.
  • The bigquery_ingestion_incr example builds its partition with logical_date.strftime('%Y%m%d%H').

Fixed

  • Manual runs without a logical date (the Airflow 3 default) render their templates, as if triggered at their run_after time.
  • Parsing the DAGs no longer needs any connection: GCSHook connects on first use.
  • The Dataproc tasks use the environment's data_lakehouse_connection_id instead of google_cloud_default.
  • CreateExternalBigQueryTableMotif works again, with BigQueryCreateTableOperator.
  • A ConfigRdbmsDataIngestion built in Python gets the default PySpark script, which fixes the Python-API ("yamless") example.
  • The dbt paths of the sakila_transformation example.

1.2.0

Added

  • airflow_easy_setup and Dataproc Serverless support.
  • A package summary.

Fixed

  • Packaging: 1.0.0 and 1.1.0 shipped without their subpackages.
  • debussy-airflow 0.0.7+ is required, so the package installs again.

1.1.0

Added

  • Dataproc Serverless support.

Fixed

  • BigQuery load with a schema.

1.0.0

Changed

  • Improved folder structure and dependencies.

[0.1.0]

First release.

Metadata

Release files for debussy 2.0.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for debussy 2.0.0.dev2
File Size Uploaded Provenance Actions
debussy-2.0.0.dev2.tar.gz 75.5 kB With provenance Details for debussy-2.0.0.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for debussy 2.0.0.dev2
File Interpreter ABI Platform Actions
debussy-2.0.0.dev2-py3-none-any.whl Python 3 none any Details for debussy-2.0.0.dev2-py3-none-any.whl

Total release size: 160.3 kB

Release files / debussy-2.0.0.dev2.tar.gz

Download URL debussy-2.0.0.dev2.tar.gz
Size 75.5 kB
Tags Source
SHA-256 checksum
How to use checksums
053ab42cc2bcbead6f04642cdbe50dc2ac155bacc5083bb540c2f0ffbf5c59da
BLAKE2b-256 checksum
How to use checksums
a639c1b48f25c431bd07fde043fc3c66d3af29bfb884915c1ae27a4ed29e0ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / debussy-2.0.0.dev2-py3-none-any.whl

Download URL debussy-2.0.0.dev2-py3-none-any.whl
Size 84.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03f8283c43753da19fe446b506ec99cebd08f5d67799d3f020d7e852a0de13b8
BLAKE2b-256 checksum
How to use checksums
c783df19e430d91ceaedf13e543d084458b58c9f9316171fc1dabef06fc47677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for debussy 2.0.0.dev2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for debussy-2.0.0.dev2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page