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
File details
Details for the file dbt_schema_generator-0.1.1a1.tar.gz
.
File metadata
- Download URL: dbt_schema_generator-0.1.1a1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad59e5ea447de6fb33bfdb060ba7a0d841cd2580057f088349441a443f885aac |
|
MD5 | db5fe8984ddd5cd13e96e4e55d458919 |
|
BLAKE2b-256 | 2fd99aa872854b6b99474fa93eafa3096d3add6299a4a7366913389b82408cb6 |
File details
Details for the file dbt_schema_generator-0.1.1a1-py3-none-any.whl
.
File metadata
- Download URL: dbt_schema_generator-0.1.1a1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dbd769187a4a6727ca1ae901e32f363173f9e004f8d2cef7c52d9b7e2c6a7bf |
|
MD5 | 9a730c7c81c4a139359854112183ac28 |
|
BLAKE2b-256 | c4a60d77fb0be7e904e3dc88a9b4c59f068a661dbf98068be7bd0184497f38ae |