Snow2dbt
Command Line to reverse engineering a Snowflake Table to DBT model and SQL
Be careful this tool is under development. There's no stable release yet.
1. Installing
• From pip
pip install snow2dbt
• From Github repository
pip install https://github.com/tensor365/snow2dbt
2. Authentication
Dbt SSO
If you have already a Snowflake Connection in your profile.yml , snow2dbt will use this identity to connect to your Snowflake tenant. If you've multiple identity in your profile.yml, you can specify the profile you want by using the argument: --profile .
Standard Authentication
If you want to use a standard authentification to Snowflake, you can specify following arguments:
• Password Authentication
```bash
--account <snowflake_accountname>
--user <snowflake_user>
--password <snowflake_password>
```
• Keypair Authentication
Not available yet. Incoming soon
```bash
--account <snowflake_accountname>
--key <snowflake_private_key>
```
3. Reversing a Snowflake Table into model/contract
snow2dbt --target <databse>.<schema>.<table>
CLI arguments
| Option | Description |
|---|---|
-l, --lower |
Output type names as lowercase in YAML file |
--snake |
Convert field names to snake_case |
--prefix |
Prefix to add to columns names (default: None) |
--suffix |
Suffix to add to column names (default: None) |
--output |
Destination folder for scripts. (default: target/bq2dbt) |
--empty_description |
Add empty description property to YAML file if field description is empty (placeholder) |
--tabs |
Use tabs instead of 4 spaces in SQL file indentation |
--leading_comma |
Put comma at the start of line in SQL file column list instead of end of line |
Metadata
Release files for snow2dbt 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snow2dbt-0.2.2.tar.gz | 17.0 kB | Without provenance | Details for snow2dbt-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snow2dbt-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for snow2dbt-0.2.2-py3-none-any.whl |
Total release size: 34.7 kB
Release files / snow2dbt-0.2.2.tar.gz
| Download URL | snow2dbt-0.2.2.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f8ac8a35a786f8132d998942e3f5692e6db0b0975995bae3de6de16160cdbee
|
|
BLAKE2b-256 checksum How to use checksums |
f9c0227e5ec580dc902829c5357eddbee7462c8ac0d31046d47beb9f55563ed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / snow2dbt-0.2.2-py3-none-any.whl
| Download URL | snow2dbt-0.2.2-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a91d51a6841343db47dfccfe0cface7bd48c05aeaaaf3989c0f19a5aabf94a2a
|
|
BLAKE2b-256 checksum How to use checksums |
10e756036fa39d78a23f2e6dff58af4bc6fe97ac2ef1750939e2281abe4c5fbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for snow2dbt 0.2.2
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.