Skip to main content

Zenlytic Adapters

Utilities for converting semantic layer YAML files to Zenlytic's format.

Steps for usage:

  1. Run pip install metricflow-to-zenlytic
  2. $ metricflow_to_zenlytic [DIRECTORY] from the command line, where [DIRECTORY] is the directory your dbt_project.yml file is in.

Usage in Python

To run the function in python you can do so like this:

from metricflow_to_zenlytic.metricflow_to_zenlytic import (
    load_mf_project,
    convert_mf_project_to_zenlytic_project,
)

# Load the metricflow project
metricflow_project = load_mf_project(metricflow_folder)

# Convert to Zenyltic models and views
models, views = convert_mf_project_to_zenlytic_project(metricflow_project, "my_model", "my_company")

# Save as yaml files
out_directory = '/save/to/here/'
zenlytic_views_to_yaml(models, views, out_directory)

Testing

$ pytest

Metadata

Release files for metricflow-to-zenlytic 0.1.5

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

Source distribution (sdist)

Source distribution for metricflow-to-zenlytic 0.1.5
File Size Uploaded Provenance Actions
metricflow_to_zenlytic-0.1.5.tar.gz 6.2 kB Without provenance Details for metricflow_to_zenlytic-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metricflow-to-zenlytic 0.1.5
File Interpreter ABI Platform Actions
metricflow_to_zenlytic-0.1.5-py3-none-any.whl Python 3 none any Details for metricflow_to_zenlytic-0.1.5-py3-none-any.whl

Total release size: 13.9 kB

Release files / metricflow_to_zenlytic-0.1.5.tar.gz

Download URL metricflow_to_zenlytic-0.1.5.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d10a07074caeb1727e1f51953e8be335ff062e736a3cecf313e5a87a8fbaa964
BLAKE2b-256 checksum
How to use checksums
6ba0cc7cc9dfd2a35c573fd2564e934760bbe3a377dcc2cf6b6d2369801db15d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.11 Darwin/23.4.0

Release files / metricflow_to_zenlytic-0.1.5-py3-none-any.whl

Download URL metricflow_to_zenlytic-0.1.5-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf532e14afc89b098a3324a65ee59759edd48d3644b684f18529f592cfffd312
BLAKE2b-256 checksum
How to use checksums
8b71b18b2c71d996340460ecafed4b57a39b2f1858f5a56803f758393f212a22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.11 Darwin/23.4.0

Security for metricflow-to-zenlytic 0.1.5

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