Skip to main content

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)
  .filter(
    paths=['marts/'],
    tags=['cube'],
    names=['my_table', 'my_table_2']
  )
)
print(dbt.models)

# For use in Jinja templates:
print(dbt.model('name').as_cube())
print(dbt.model('name').as_dimensions(skip=['id']))
print(dbt.model('name').column('name').as_dimension())

Development

Run tests:

pdm run test

Metadata

Release files for cube_dbt 0.5.2

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

Source distribution (sdist)

Source distribution for cube_dbt 0.5.2
File Size Uploaded Provenance Actions
cube_dbt-0.5.2.tar.gz 46.3 kB Without provenance Details for cube_dbt-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cube_dbt 0.5.2
File Interpreter ABI Platform Actions
cube_dbt-0.5.2-py3-none-any.whl Python 3 none any Details for cube_dbt-0.5.2-py3-none-any.whl

Total release size: 50.5 kB

Release files / cube_dbt-0.5.2.tar.gz

Download URL cube_dbt-0.5.2.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1129bafe4241969e126d5f8d3f2c0db0221e5a6f287035c13446fde0af2f199c
BLAKE2b-256 checksum
How to use checksums
34ed3f72dd5e49700aae0f26b6e2149921ac578075a3365afe14d0f6206ea369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.2 CPython/3.11.5

Release files / cube_dbt-0.5.2-py3-none-any.whl

Download URL cube_dbt-0.5.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d9676e0696e6dd992edaccb16eba9466c35e56f03ef7e30f11d9d163bdfc1e0
BLAKE2b-256 checksum
How to use checksums
a004fe36e26058d47a63f0fdd60625fd9963cc88ed2513338d0572a387eb4257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.2 CPython/3.11.5

Security for cube_dbt 0.5.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.

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