Skip to content
المشاريع

حول

Debussy is an opinionated Data Architecture and Engineering framework, enabling data analysts and engineers to build better platforms and pipelines.

البيانات والتحليلات

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Generate dynamic pipelines from YAML configuration files or directly in Python.
  • Describe pipelines with a semantic model that abstracts the orchestrator.
  • 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.

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
٠

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
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 orchestrators on the roadmap. Its musical semantic model decouples pipeline logic from the orchestrator 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: an orchestrator-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 orchestrator.
  • 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 orchestrator 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 the orchestrator-neutral core, the local orchestrator and the debussy command, pandas, pyarrow and SQLAlchemy. It has no cloud SDK: each cloud is an extra, and so is Airflow:

Extra Adds Use it for
airflow The Airflow orchestrator (debussy.orchestrator.airflow): Apache Airflow 3.4+ and the standard provider Every pipeline that generates an Airflow DAG
gcp The Google Cloud client libraries (BigQuery, Cloud Storage, Dataproc, Secret Manager) GCP pipelines run locally with debussy run
airflow-gcp airflow, gcp and the Airflow Google provider, whose operators the GCP motifs use GCP pipelines on Airflow
dbt dbt-bigquery dbt transformation pipelines
mysql PyMySQL MySQL sources ingested with pandas, and reverse ETL to MySQL run locally
airflow-mysql airflow, mysql and the Airflow MySQL provider Reverse ETL to MySQL on Airflow with the provider's hook (without it, airflow and mysql are enough: the operator falls back to SQLAlchemy)
postgresql psycopg PostgreSQL sources ingested with pandas, and reverse ETL to PostgreSQL run locally
airflow-postgresql airflow, postgresql and the Airflow PostgreSQL provider Reverse ETL to PostgreSQL on Airflow
mssql pymssql SQL Server sources ingested with pandas, and reverse ETL to SQL Server run locally
airflow-mssql airflow, mssql and the Airflow Microsoft SQL Server provider Reverse ETL to SQL Server on Airflow
nocloud duckdb Running with no cloud: DuckDB stands in for BigQuery
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 airflow-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={{ run_start }}
      destination_partition: 1970

Supported values are bigquery_ingestion, rdbms_ingestion, dbt_transformation, reverse_etl_bigquery_to_rdbms 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.orchestrator.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.orchestrator.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.

Project structure

Debussy keeps three things apart: the orchestrator that schedules and runs the tasks, the engine that processes the data inside a task, and the provider where the data and the credentials are. A pipeline is written once against the semantic model and runs with any combination the installed extras support.

debussy/
├── __init__.py
├── __main__.py         # python -m debussy
├── cli.py              # the debussy command: validate, plan and run a pipeline
├── core/               # the semantic model (composition, movement, phrase, motif), the
│                       # orchestrator-neutral task contract and pipeline loading.
│                       # Imports no orchestrator, engine or cloud SDK
├── engine/             # processing engines that run inside a task
│   └── pandas/         #   the default engine (base install): RDBMS extraction to Parquet,
│                       #   and files loaded into databases by the reverse ETL
├── orchestrator/       # where the pipelines run
│   ├── airflow/        #   DAGs: operators, hooks, the load_dags loader (extra: airflow)
│   └── local/          #   in-process runs, used by the debussy command (base install)
├── pipeline/           # the pipelines Debussy ships, built on the semantic model:
│   ├── data_ingestion/ #   BigQuery and RDBMS sources to the lakehouse
│   ├── data_transformation/  # dbt
│   └── reverse_etl/    #   from the lakehouse back to databases and files
└── provider/           # where the data and the credentials are, one package per cloud
    ├── connections.py  #   a connection's settings for local runs: a secret or DEBUSSY__CONNECTION__<ID>
    ├── secrets.py      #   read a connection secret: env:, file: or a cloud secret
    ├── storage.py      #   read and write files in a local folder or cloud storage
    ├── gcp/            #   credentials, BigQuery, Cloud Storage, Dataproc, Secret Manager
    │                   #   (extra: gcp)
    └── nocloud/        #   a local folder for cloud storage and a DuckDB file for the
                        #   warehouse (extra: nocloud)

Where to add things:

  • A pipeline type or a motif goes in pipeline/. Motifs describe their work as TaskSpec objects (debussy.core.tasks): a Python callable, or a named action such as bigquery.insert_job.
  • A named action is implemented once per orchestrator: as an Airflow operator in orchestrator/airflow/operator_actions.py, and as a callable registered in orchestrator/local/actions.py, usually from a provider.
  • A cloud goes in provider/<cloud>/ with its extra; an engine in engine/<engine>/.

Running pipelines without Airflow

The debussy command validates, plans and runs a pipeline in-process. GCP pipelines need the gcp extra, which has the Google Cloud client libraries:

debussy validate pipelines/sales.yaml
debussy plan pipelines/sales.yaml
debussy run pipelines/sales.yaml --logical-date 2026-11-26

With the nocloud extra alone, a pipeline can also run with no cloud at all: --storage-root DIR reads and writes gs://<bucket>/<path> as DIR/<bucket>/<path>, and --warehouse FILE keeps the BigQuery tables and load jobs in a DuckDB file. examples/data_ingestion/sqlite_sakila_ingestion ingests a SQLite database this way, and CI runs it on every change. The local runs guide covers the options, partial reprocessing, credentials and what runs only on Airflow.

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.orchestrator.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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…