Deserialization for dbt artifacts
Project description
artefacts
A deserialization library for dbt artifacts.
Usage
The simplest way to use artefacts is by importing the api
.
>>> import artefacts.api
The api
provides convenient methods for interacting with your dbt project's compiled artifacts.
artefacts.api.models()
>>> models = artefacts.api.models()
>>> len(models) > 0
True
artefacts.api.tests()
>>> tests = artefacts.api.tests()
>>> len(tests) > 0
True
Development Setup
Open this repository in a Github Codespace. (Click the green Code
button in the repository's Github page and select New Codespace
).
Testing
poetry run pytest
By default, pytest will test against the dbt project located at DBT_PROJECT_DIR
. To test against a different dbt project, update that environment variable and build the project.
export DBT_PROJECT_DIR=$PWD/dbt_projects/dbt-starter-project
poetry run dbt build --project-dir $DBT_PROJECT_DIR
poetry run pytest
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
artefacts-1.0.0a1.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for artefacts-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31daafda423f133a61fa6298386e8e32c5cb17eb07b025d3b6ff918ed1a9d60 |
|
MD5 | 7d48ed46975048846413d2ee1ff051df |
|
BLAKE2b-256 | 060f2a18bb98901b0354666937d2395a43d3ea28afd82a8f84076f86ef6b470c |