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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file metricflow-to-zenlytic-0.1.2.tar.gz.

File metadata

  • Download URL: metricflow-to-zenlytic-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.11 Darwin/22.6.0

File hashes

Hashes for metricflow-to-zenlytic-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0ae273372cbeebaff8b6a262bb5a12400d3c2e75b6dad7c4390c6cf73779c4de
MD5 e24a15018e228fe0f1b519b64de02f8a
BLAKE2b-256 73f07b8a7f77ee619d209c62744fe3da0c9a84e24c52aaea581958c6701ed10b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metricflow_to_zenlytic-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f49c2a0ace69e2eec4e55301e592b28bd02578363d227dfc2f00e18974de1718
MD5 f2ca8c37f2bc99fa1bc48dd07062299d
BLAKE2b-256 e8166c087b2d80297f37ed67b8fad338a6eaa561bdb1fbfd083f9a8dacceb043

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