No project description provided
Project description
LookML to ZenML
Library for translating LookML configuration into ZenML for easy onboarding to Zenlytic.
To install the package run
$ pip install lookml-zenml
To convert a entire project run the following command from your command line interface after installing the package. Note: make sure you specify your LookML project as the first argument, and you create a directory for the ZenML output.
$ lookml_zenml convert ./my_lookml_project --out_directory ./my_new_zenml_project
This is the standard way to convert a LookML project. This will convert dashboards, views, and models into the ZenML equivalent.
You can also use this library to convert objects on a one-off basis. This is not as robust as converting the whole project due to loss of information for the dashboards and logic about joins in found in the explores that we add to the views.
To convert a model run the following command. Note: if you specify --out_directory
the library will write a yml file to that directory, otherwise it will return the converted code to stdout.
$ lookml_zenml model ./my_lookml_project/my_model.model.lkml --out_directory ./my_new_dir
To convert a view run the following command. Note: if you specify --out_directory
the library will write a yml file to that directory, otherwise it will return the converted code to stdout.
$ lookml_zenml view ./my_lookml_project/my_view.view.lkml --out_directory ./my_new_dir
To convert a dashboard run this command. Note: for dashboards the directory is required. If you do not have the directory of lookml files, you can point to an empty directory and the conversion will run, but will put all metrics on a dashboard into the slice_by
heading because it will be unable to determine the field type of the fields. You'll then have to correct those manually.
$ lookml_zenml dashboard ./my_lookml_project/my_dashboard.dashboard.lookml --directory ./my_lookml_project
Project details
Release history Release notifications | RSS feed
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
Hashes for lookml_zenml-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ab1e7d2f8f192d8375d0dba7f6a7b1b10577c4305e0229c1783d208b0fbf67 |
|
MD5 | 809d3388748d7cd72c80535bec24995e |
|
BLAKE2b-256 | 747d890a2124cd514266743b1f7711318d4f347996f503e3294695f426447611 |