Skip to main content

dbtdiff

PyPI version PyPI - Python Version

A CLI tool to run dbt only on changed models with model+ chaining.

Installation

pip install dbtdiff

Features

The default behavior is to run dbt build on all downstream models that have changed since the last commit, using the HEAD reference. It supports:

  • Custom commands (e.g., dbt run, dbt test)
  • Custom targets
  • Custom number of downstream models to include
  • Ability to compare to main rather than your last commit.

Usage

dbtdiff                        # Compare against last commit
dbtdiff -m                     # Compare against origin/main
dbtdiff -c run                 # Swap `build` for `run`, dbt run -t dev
dbtdiff -n 1                   # Run only run 1 downstream model
dbtdiff -t prod                # Use the prod target, eg: dbt build -t prod
dbtdiff -fr                    # Include --full-refresh in the dbt command
dbtdiff -ff                    # Include --fail-fast in the dbt command

All options can be combined, or fully qualified with --command, --target, --number, --main, --fail-fast and --full-refresh.

Quick QOL Roadmap

  • Support for seeds
  • Support for snapshots
  • Only run modified tests from .yml
  • Custom branch names
  • Macro change support

Metadata

Release files for dbtdiff 0.2.2

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

Source distribution (sdist)

Source distribution for dbtdiff 0.2.2
File Size Uploaded Provenance Actions
dbtdiff-0.2.2.tar.gz 3.2 kB Without provenance Details for dbtdiff-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 7.0 kB

Release files / dbtdiff-0.2.2.tar.gz

Download URL dbtdiff-0.2.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
103e9a0f693e67534a16b7cf3f36467550bc65d2ad4cf89cb4c97155da579a43
BLAKE2b-256 checksum
How to use checksums
77d09d13c1098082e1b9370953c10ab84ce54e58ce6a368c1c06bc8f647d3a16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / dbtdiff-0.2.2-py3-none-any.whl

Download URL dbtdiff-0.2.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afa0251f496b00bdd0e904f88cd2a74ce944e2d316ca67163186606186bbb017
BLAKE2b-256 checksum
How to use checksums
2c6a83400cc18a74b6086d313d6a90c6f0279bd892a01f828ad1aa1399213e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for dbtdiff 0.2.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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