Skip to main content

Adapter for Metricflow to Zenlytic

Project description

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

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

metricflow_to_zenlytic-0.1.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

metricflow_to_zenlytic-0.1.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for metricflow_to_zenlytic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 81df65dcbc1416f1707f4ebec39594df716cde23f4f9ef7e07a5a66a1afe591f
MD5 19eb9369130826311f6d15f696e3b074
BLAKE2b-256 3f37a4f3fe0cd0e383d61d0e2299429215e6ac3747bb4733bf6c7c3142b253fc

See more details on using hashes here.

File details

Details for the file metricflow_to_zenlytic-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for metricflow_to_zenlytic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eb214021ece4abe023e666a8f9298179921ab780fdd3b9a89910c6dcdc806e9c
MD5 6eca20ddcdb919230fd1732a01af03de
BLAKE2b-256 7c3a36ffecb7e30951854418a4f5d6e2abdacfda964c053a5ace92be494f9a43

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page