Skip to main content

dbt-schema-builder

PyPI GitHub CI Codecov Supported Python versions License

The Schema Builder tool is used to create dbt schema files, sql models, and default PII / non-PII views for tables in the given Snowflake schemas.

For each specified application schema, the script will generate dbt models for a <SCHEMA> and <SCHEMA>_PII schema. We refer to these schemas as a “trifecta”.

  • <SCHEMA>_<RAW_SUFFIX> contains the original source tables.

  • <SCHEMA>_PII contains views on the _RAW tables that have un-redacted PII.

  • <SCHEMA> contains views on the _RAW tables sensitive data redacted.

Application schemas can be sourced from multiple raw schemas. This allows you to specify which tables should be pulled from which raw schema to construct the “trifecta”.

Schema Builder ensures that all three schemas provide the same interface to the data (number and order of columns match what is present in the _RAW schema).

Once the script is successfully run, you can execute a dbt run to create or update the views in <SCHEMA> and <SCHEMA>_PII. If your source data in the <SCHEMA>_<RAW_SUFFIX> schema changes you should run Schema Builder frequently to keep up with changes in the tables and columns stored there.

Schema Builder will also automatically create sources in one or more other dbt projects so that they can use the results of these models as sources.

See the docs for more information.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome. Please read The Contribution Guide for details. Even though they were written with edx-platform in mind, the guidelines should be followed for all Open edX projects.

The pull request description template should be automatically applied if you are creating a pull request from GitHub. Otherwise you can find it at PULL_REQUEST_TEMPLATE.md.

The issue report template should be automatically applied if you are creating an issue on GitHub as well. Otherwise you can find it at ISSUE_TEMPLATE.md.

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.org.

Getting Help

If you’re having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack team.

For more information about these options, see the getting assistance page.

Metadata

Release files for dbt-schema-builder 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbt-schema-builder 0.6.0
File Size Uploaded
dbt_schema_builder-0.6.0.tar.gz 39.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbt-schema-builder 0.6.0
File Interpreter ABI Platform
dbt_schema_builder-0.6.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 72.9 kB

Release files / dbt_schema_builder-0.6.0.tar.gz

Download URL dbt_schema_builder-0.6.0.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c2294d2ecdc5aca18e10e90922fc94cb54a9ea13be0dda78df1ae824330dcae7
BLAKE2b-256 checksum
How to use checksums
1b924a55fd821f3cc8e59dc71a20e18699f896dd08a434795d6fb9e4a0b28947
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / dbt_schema_builder-0.6.0-py2.py3-none-any.whl

Download URL dbt_schema_builder-0.6.0-py2.py3-none-any.whl
Size 33.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e92584d027e4c0c5ce3ee20266a4285fa2fb17b95e8e8cc0c17845185d6bc661
BLAKE2b-256 checksum
How to use checksums
2f84ad3760ee459bfaa65f3b283499bd9911892d14244d8c9404fe2afe5507ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.13

2 release files

0.4.12

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page