metricflow-to-zenlytic


Namemetricflow-to-zenlytic JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/Zenlytic/zenlytic-adapters
SummaryAdapter for Metricflow to Zenlytic
upload_time2024-03-30 17:07:32
maintainerNone
docs_urlNone
authorPaul Blankley
requires_python<3.14,>=3.8.1
licenseMIT
keywords metrics layer business intelligence analytics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Zenlytic/zenlytic-adapters",
    "name": "metricflow-to-zenlytic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.14,>=3.8.1",
    "maintainer_email": null,
    "keywords": "Metrics Layer, Business Intelligence, Analytics",
    "author": "Paul Blankley",
    "author_email": "paul@zenlytic.com",
    "download_url": "https://files.pythonhosted.org/packages/b3/26/20e39b350ad94825ee0d7f163337ca4e9d74b71a3ca597165abd21f8459a/metricflow_to_zenlytic-0.1.4.tar.gz",
    "platform": null,
    "description": "# Zenlytic Adapters\n\nUtilities for converting semantic layer YAML files to Zenlytic's format.\n\n## Steps for usage:\n1. Run `pip install metricflow-to-zenlytic`\n2. `$ metricflow_to_zenlytic [DIRECTORY]` from the command line, where `[DIRECTORY]` is the directory your `dbt_project.yml` file is in.\n\n## Usage in Python\n\nTo run the function in python you can do so like this:\n\n```\nfrom metricflow_to_zenlytic.metricflow_to_zenlytic import (\n    load_mf_project,\n    convert_mf_project_to_zenlytic_project,\n)\n\n# Load the metricflow project\nmetricflow_project = load_mf_project(metricflow_folder)\n\n# Convert to Zenyltic models and views\nmodels, views = convert_mf_project_to_zenlytic_project(metricflow_project, \"my_model\", \"my_company\")\n\n# Save as yaml files\nout_directory = '/save/to/here/'\nzenlytic_views_to_yaml(models, views, out_directory)\n\n```\n\n## Testing\n\n`$ pytest`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Adapter for Metricflow to Zenlytic",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://github.com/Zenlytic/zenlytic-adapters",
        "Homepage": "https://github.com/Zenlytic/zenlytic-adapters",
        "Repository": "https://github.com/Zenlytic/zenlytic-adapters"
    },
    "split_keywords": [
        "metrics layer",
        " business intelligence",
        " analytics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4078ca045a6f1d27a7d8954fc1c6c3f2954f79dbfdb4a37acbb69a5334352f3",
                "md5": "0a473b2521e468a25af578098c2d0cfd",
                "sha256": "fefde4a10e351bb9c3b237e593e60bae255efc100d848fdf5e8108ca7fe07ed4"
            },
            "downloads": -1,
            "filename": "metricflow_to_zenlytic-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a473b2521e468a25af578098c2d0cfd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.14,>=3.8.1",
            "size": 7604,
            "upload_time": "2024-03-30T17:07:31",
            "upload_time_iso_8601": "2024-03-30T17:07:31.159056Z",
            "url": "https://files.pythonhosted.org/packages/a4/07/8ca045a6f1d27a7d8954fc1c6c3f2954f79dbfdb4a37acbb69a5334352f3/metricflow_to_zenlytic-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b32620e39b350ad94825ee0d7f163337ca4e9d74b71a3ca597165abd21f8459a",
                "md5": "85f65fbbe62d821f5ddabca26cb4994f",
                "sha256": "9bb78121de2287e2fda71b7ad694fb6b79002a786f2d8729b9c7f62527e79187"
            },
            "downloads": -1,
            "filename": "metricflow_to_zenlytic-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "85f65fbbe62d821f5ddabca26cb4994f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.14,>=3.8.1",
            "size": 6212,
            "upload_time": "2024-03-30T17:07:32",
            "upload_time_iso_8601": "2024-03-30T17:07:32.898819Z",
            "url": "https://files.pythonhosted.org/packages/b3/26/20e39b350ad94825ee0d7f163337ca4e9d74b71a3ca597165abd21f8459a/metricflow_to_zenlytic-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-30 17:07:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Zenlytic",
    "github_project": "zenlytic-adapters",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "metricflow-to-zenlytic"
}
        
Elapsed time: 1.31826s