Skip to main content

LookML to ZenML

Library for translating LookML configuration into ZenML for easy onboarding to Zenlytic. You can find a web-hosted version here.

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

Metadata

Release files for lookml-zenml 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lookml-zenml 0.3.2
File Size Uploaded
lookml_zenml-0.3.2.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lookml-zenml 0.3.2
File Interpreter ABI Platform
lookml_zenml-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 34.9 kB

Release files / lookml_zenml-0.3.2.tar.gz

Download URL lookml_zenml-0.3.2.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fbacc337eb2d5b414edc0c5b3e72260884bb1c7b5b1c5d323525160ba0d2f2db
BLAKE2b-256 checksum
How to use checksums
f52095a531c3caf748b5515d45bc55b361e5b69306f7e306d6eadc58a3fb0cd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/24.6.0

Release files / lookml_zenml-0.3.2-py3-none-any.whl

Download URL lookml_zenml-0.3.2-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef4a711ae4c61ee45dd42a0bf647126f4ddaa6e77709160425d37ee9b3d9d278
BLAKE2b-256 checksum
How to use checksums
aa49bbcde99c17352b5963edf0e07c1513dc3ad448ac7827270a78b8373e09c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page