Skip to main content

dbt integration for Cube

Project description

cube_dbt

cube_dbt is the dbt integration for Cube that helps define the data model of the semantic layer on top of dbt models.

Installation

pip install cube_dbt

Usage

manifest_url = 'https://bucket.s3.amazonaws.com/manifest.json'
dbt = Dbt().from_url(manifest_url)
print(dbt.models)

# For use in Jinja templates:
print(dbt.model('name').as_cube())
print(dbt.model('name').as_dimensions())
print(dbt.model('name').column('name').as_dimension())

Development

Run tests:

pdm run test

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

cube_dbt-0.2.0.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cube_dbt-0.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file cube_dbt-0.2.0.tar.gz.

File metadata

  • Download URL: cube_dbt-0.2.0.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.2 CPython/3.11.5

File hashes

Hashes for cube_dbt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e4b87c5113a04e0356959c85eb7b39a5e688d321de8f74bf306381eccaa34271
MD5 39f1ad70c2f7805e4a80970aa11456ce
BLAKE2b-256 802aecf933d3ca1eb505ce92deb1b4830b2bcde33d7caa9be794aef91e768e46

See more details on using hashes here.

File details

Details for the file cube_dbt-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cube_dbt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.2 CPython/3.11.5

File hashes

Hashes for cube_dbt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28c9d0259756abc06ad8ddc047dabc96d9402699671101e953f66cc8b0ea9acc
MD5 b89b855470246bd1ef18c711172dd0b6
BLAKE2b-256 49bcd98bd4f9999ddc4c5fb873b4da3802c133ec9274b31b0fa64bfdcc0e00f5

See more details on using hashes here.

Supported by

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