Skip to main content

Configure and enforce conventions for your dbt project.

Project description

dbt-bouncer logo

dbt-bouncer

Configure and enforce conventions for your dbt project.


Documentation

All documentation can be found on dbt-bouncer documentation website.

TLDR

  1. Install dbt-bouncer:

    pip install dbt-bouncer
    
  2. dbt-bouncer requires a manifest.json file. If not already present, run:

    dbt parse
    
  3. Create a dbt-bouncer.yml config file:

    manifest_checks:
      - name: check_model_directories
        include: ^models
        permitted_sub_directories:
          - intermediate
          - marts
          - staging
      - name: check_model_names
        include: ^models/staging
        model_name_pattern: ^stg_
    
  4. Run dbt-bouncer:

    $ dbt-bouncer
    
    [...]
    Running checks... |################################| 20/20
    Done. SUCCESS=19 WARN=0 ERROR=1
    Failed checks:
    | Check name               | Severity | Failure message                                                                       |
    |--------------------------|----------|---------------------------------------------------------------------------------------|
    | check_model_directories: | error    | AssertionError: `model` is located in `utilities`, this is not a valid sub-directory. |
    

Reporting bugs and contributing code

  • Want to report a bug or request a feature? Let us know and open an issue.
  • Want to help us build dbt-bouncer? Check out the Contributing Guide.

Code of Conduct

Everyone interacting in dbt-bouncer's codebase, issue trackers, chat rooms, and mailing lists is expected to follow the Code of Conduct.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbt_bouncer-1.20.0.tar.gz (42.9 kB view details)

Uploaded Source

Built Distribution

dbt_bouncer-1.20.0-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file dbt_bouncer-1.20.0.tar.gz.

File metadata

  • Download URL: dbt_bouncer-1.20.0.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbt_bouncer-1.20.0.tar.gz
Algorithm Hash digest
SHA256 0214ff6e1367b5e877306ca11e9f6e2347e0a80ad19b700b086b9bf8e4314f93
MD5 5eeeeb03d0c33de4dc510f28fad841f9
BLAKE2b-256 76afb7c84098debf3a4998d5aac49aba63a07dc3511356d33ab4e157f9f2dc92

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_bouncer-1.20.0.tar.gz:

Publisher: release_pipeline.yml on godatadriven/dbt-bouncer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dbt_bouncer-1.20.0-py3-none-any.whl.

File metadata

  • Download URL: dbt_bouncer-1.20.0-py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbt_bouncer-1.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4678176f1f2f5a2bfc8528708d1f6188221b89685c32743fb56c6decf4cccf8c
MD5 7cca086faf3abb96de21548a740d6d86
BLAKE2b-256 521cf9bf03cacbc079d3b78f03cf12e0cd21b61d57662445214b295bebe59a43

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_bouncer-1.20.0-py3-none-any.whl:

Publisher: release_pipeline.yml on godatadriven/dbt-bouncer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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