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
Built Distribution
File details
Details for the file lkml2cube-0.2.5.tar.gz
.
File metadata
- Download URL: lkml2cube-0.2.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.4 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a943247c328b4407dc7b4b75bcec91952f08ca1e2c3876e65012f28abe2b56c |
|
MD5 | 4e8363d348ab365c340f097e470cf93d |
|
BLAKE2b-256 | b36f0888a0b917902c0538f8bbe7b2e7d4f83a2ed3997b1f7b0a2675723797a3 |
File details
Details for the file lkml2cube-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: lkml2cube-0.2.5-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.4 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f421ca87c42872286f58f4a6602bbd22ff86dcc15f1ae8a8156b79a4d13435 |
|
MD5 | 80cc0c678611c24b357be7eda92c4b92 |
|
BLAKE2b-256 | 6565fb169510d1f4d3ef72b868e74e4a4c0e23f4c5e63abbb5c772a9aec050cf |