Adapter for Metricflow to Zenlytic
Project description
Zenlytic Adapters
Utilities for converting semantic layer YAML files to Zenlytic's format.
Steps for usage:
- Run
pip install metricflow-to-zenlytic
$ metricflow_to_zenlytic [DIRECTORY]
from the command line, where[DIRECTORY]
is the directory yourdbt_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
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
Built Distribution
File details
Details for the file metricflow_to_zenlytic-0.1.3.tar.gz
.
File metadata
- Download URL: metricflow_to_zenlytic-0.1.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.11 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81df65dcbc1416f1707f4ebec39594df716cde23f4f9ef7e07a5a66a1afe591f |
|
MD5 | 19eb9369130826311f6d15f696e3b074 |
|
BLAKE2b-256 | 3f37a4f3fe0cd0e383d61d0e2299429215e6ac3747bb4733bf6c7c3142b253fc |
File details
Details for the file metricflow_to_zenlytic-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: metricflow_to_zenlytic-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.11 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb214021ece4abe023e666a8f9298179921ab780fdd3b9a89910c6dcdc806e9c |
|
MD5 | 6eca20ddcdb919230fd1732a01af03de |
|
BLAKE2b-256 | 7c3a36ffecb7e30951854418a4f5d6e2abdacfda964c053a5ace92be494f9a43 |