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


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.6.4.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

dbt_bouncer-1.6.4-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbt_bouncer-1.6.4.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dbt_bouncer-1.6.4.tar.gz
Algorithm Hash digest
SHA256 88e8244a13e94045d48b0b8ca7a580cddc672e7cda430c7edcec6ed13b2fe6e4
MD5 a782d9ec775a9ae31b01a0c84736f731
BLAKE2b-256 3bd300e452d04274c2fb54545b1f0f1ce7b8a13dd6a7336fcde65a666a02f628

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_bouncer-1.6.4.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.6.4-py3-none-any.whl.

File metadata

  • Download URL: dbt_bouncer-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dbt_bouncer-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0e15056021218bc6427bb63462283be61088a72351b37f152cd20f4a99155f95
MD5 5d9fb134935c93d29ac45bb3a0762c25
BLAKE2b-256 5d180e0ae564f7d1f7dadac10527b45d084449237c4caaf33d33b907842a7c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_bouncer-1.6.4-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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page