Skip to main content

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


Download files

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

Source Distribution

dbt_schema_generator-0.1.1a2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

dbt_schema_generator-0.1.1a2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file dbt_schema_generator-0.1.1a2.tar.gz.

File metadata

File hashes

Hashes for dbt_schema_generator-0.1.1a2.tar.gz
Algorithm Hash digest
SHA256 17d3285ac57ed36edd5fab9c4562ff63c72451a5bd2cdc3eb210fd298f93c0a8
MD5 72f6e5220ca8689ac28ae922217c2d38
BLAKE2b-256 95af1c8262ba694ff65a1223d74b8b604a8e1bb5eeb91b2ff962df29e57803b6

See more details on using hashes here.

File details

Details for the file dbt_schema_generator-0.1.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for dbt_schema_generator-0.1.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 8859bd4f7ffc911dcea355998330a4bb52391067d9464f66d835bc596da0686d
MD5 35c5de5ad3b9ee6975a4a50c07a28897
BLAKE2b-256 4d4dc9f32247d2e61f5a87ce104eee35701a0ef08ad64683a72821ab5545d3e6

See more details on using hashes here.

Supported by

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