Skip to main content

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


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.0a2.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

artefacts-1.0.0a2-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

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