Skip to main content

Looker ML to Cube converter

Project description

lkml2cube

lkml2cube is a tool that converts LookML models into Cube data models.

Usage

There are two main commands, cubes and views. Both commands read all the files in the provided input parameter, including those referenced by the LookML keyword includes. The difference is that the cubes command only creates Cube's cube model definitions, while the views command creates cube and view model definitions. LookML syntax defines the join relationships at the explore level (equivalent to Cube's view). That's why explores need special treatment and why they are ignored in the lkml2cube cubes command.

Install

pip install lkml2cube

Convert LookML views into Cube YAML definition.

lkml2cube cubes path/to/file.view.lkml --outputdir examples/

Show Python dict representation of the LookerML object

lkml2cube cubes --parseonly path/to/file.view.lkml

Convert LookML Explores into Cube's views YAML definition.

lkml2cube views path/to/file.explore.lkml --outputdir examples/

Use the --rootdir parameter to prepend a path for all include: paths.

lkml2cube views ../my_lookml_project/views/countries.view.lkml --outputdir model/ --rootdir ../my_lookml_project/

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

lkml2cube-0.2.7.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

lkml2cube-0.2.7-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file lkml2cube-0.2.7.tar.gz.

File metadata

  • Download URL: lkml2cube-0.2.7.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lkml2cube-0.2.7.tar.gz
Algorithm Hash digest
SHA256 641b1a622c9df337b84f47b5de80cf1dd13b2adef13ea6c85ef7ab821a12c707
MD5 d49b975a2641d4d9f923c3c2920f16a6
BLAKE2b-256 04c9c05fbe3b3b119e21e275ef3b1386a6d0a7f96362c31b69115e6955c1abf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for lkml2cube-0.2.7.tar.gz:

Publisher: publish.yml on cube-js/lkml2cube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lkml2cube-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: lkml2cube-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lkml2cube-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c260ebbbae45f381368b91a8686ccc27f65c2c0c087ab93a3d1225a70a862d37
MD5 17d50e287ac7a120ff7a01b7a3344c45
BLAKE2b-256 40065563b872dcb44798358f249cd867cb25e2e7b4e41646bf69c9751cf36599

See more details on using hashes here.

Provenance

The following attestation bundles were made for lkml2cube-0.2.7-py3-none-any.whl:

Publisher: publish.yml on cube-js/lkml2cube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page