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
metricflow_to_zenlytic-0.1.5.tar.gz 6.2 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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