dbt-init
A tool to create dbt projects for consulting. dbt-init will create a project as a subdirectory within the target directory you provide it, and populate as much of the dbt project as possible
Installation & usage
- Install using
pip install dbt-init - To create a new client project run a command like following:
$ dbt-init --client jaffle_shop --warehouse snowflake --target_dir ~/clients/
You can also check the available arguments with dbt-init --help
Once you've created your project
- Update
sample.profile.ymlto contain the correct profile details for your client, excluding the actual credentials – e.g. username and password:
- You can often pre-fill the host and database name.
- You may want to use an alternate connection method (e.g. OAuth) and update the sample file to reflect this.
- Ensure that the users/groups/roles within a warehouse match the grant
statements in the post-run hooks (defined in
dbt_project.yml).
Building out the starter project
If you're interested in helping build out the starter project, here is a list of variables you can use – a lot of them have defaults based on the client name.
{{ project.name }}: The name of the project, as defined in `dbt_project.yml`, e.g. jaffle_shop.
{{ project.warehouse }}: The warehouse that a client is using.
{{ project.client_name }}: The name of the client, e.g. jaffle_shop.
{{ project.dir_name }}: The name of the directory this project is in, e.g. jaffle-shop-dbt.
{{ project.profile_name }}: The name of the profile used by this project, e.g. jaffle_shop.
To-do:
- Configure a new profile as part of init process
Metadata
Release files for dbt-init 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbt_init-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for dbt_init-0.2.7-py3-none-any.whl |
Release files / dbt_init-0.2.7-py3-none-any.whl
| Download URL | dbt_init-0.2.7-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e411cc9cea71dc2fd33422191fe22f9c6d173edeef90695b6ecec1507d7bdce7
|
|
BLAKE2b-256 checksum How to use checksums |
d59042bc86b246c4829cbe28bdeaaa2a6b509738d424aae7962318ea91ea7598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5
|
Security for dbt-init 0.2.7
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.