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.ymlfile 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metricflow_to_zenlytic-0.1.5.tar.gz.
File metadata
- Download URL: metricflow_to_zenlytic-0.1.5.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.11 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d10a07074caeb1727e1f51953e8be335ff062e736a3cecf313e5a87a8fbaa964
|
|
| MD5 |
ccdf17bfc9b9bb06bba27d292eab2ffd
|
|
| BLAKE2b-256 |
6ba0cc7cc9dfd2a35c573fd2564e934760bbe3a377dcc2cf6b6d2369801db15d
|
File details
Details for the file metricflow_to_zenlytic-0.1.5-py3-none-any.whl.
File metadata
- Download URL: metricflow_to_zenlytic-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.11 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf532e14afc89b098a3324a65ee59759edd48d3644b684f18529f592cfffd312
|
|
| MD5 |
67025b332a45b43102d710f668f0de8f
|
|
| BLAKE2b-256 |
8b71b18b2c71d996340460ecafed4b57a39b2f1858f5a56803f758393f212a22
|