A command-line tool to generate schema.yml files for specified dbt models
Project description
dbt Schema Generator
A command-line tool to generate schema.yml files for specified dbt models.
Installation
Install the package using pip:
pip install dbt_schema_generator
Usage
You can use the dbt_schema_generator command-line tool with the following options:
-m, --models: A comma-separated list of model names to include in the schema.yml file. -p, --path: A path to include models in the schema.yml file.
Examples:
dbt_schema_generator -m model1,model2,model3
dbt_schema_generator --models model1,model2,model3
# Using this format, dbt_schema_generator would generate a schema.yml file for all models within your_folder
dbt_schema_generator -path models/your_folder
dbt_schema_generator --path models/your_folder
NOTE: When using path the format should always be models/ the folder unless you have changed the model-paths in your dbt_project.yml
NOTE: When using the --path
option, the format should always be models/your_folder
unless you have changed the model-paths
in your dbt_project.yml
.
!!!!IMPORTANT!!!!: Be very careful when using the --path method as this would overwrite any schema.yml currently within the folder
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
Built Distribution
Hashes for dbt_schema_generator-0.1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4111aee9d00686719e0896418563f08c9962b6bc264b876ae5125b6cd4ae4288 |
|
MD5 | 8aaedb53d8d3607899cd4da329a511d9 |
|
BLAKE2b-256 | 651bddb92aacbee7384bde0494c73103ff5bd2366347297253d5bc9e7af0167a |
Hashes for dbt_schema_generator-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 988508a0424486f1f01fb81cb34ef113061c2e410b43f59854e76fca27fb0949 |
|
MD5 | 95e1da2ddcbeb1c9e8eb895977592731 |
|
BLAKE2b-256 | 0c28ec2f1e8b743f44b82558fa3faccdae3c1aee9a809dc4555a7b8372dc483a |