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.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

metricflow_to_zenlytic-0.1.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file metricflow_to_zenlytic-0.1.4.tar.gz.

File metadata

  • Download URL: metricflow_to_zenlytic-0.1.4.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

Hashes for metricflow_to_zenlytic-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9bb78121de2287e2fda71b7ad694fb6b79002a786f2d8729b9c7f62527e79187
MD5 85f65fbbe62d821f5ddabca26cb4994f
BLAKE2b-256 b32620e39b350ad94825ee0d7f163337ca4e9d74b71a3ca597165abd21f8459a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metricflow_to_zenlytic-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fefde4a10e351bb9c3b237e593e60bae255efc100d848fdf5e8108ca7fe07ed4
MD5 0a473b2521e468a25af578098c2d0cfd
BLAKE2b-256 a4078ca045a6f1d27a7d8954fc1c6c3f2954f79dbfdb4a37acbb69a5334352f3

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