Looker ML to Cube converter
Project description
lkml2cube
lkml2cube is a tool to convert 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. In LookML syntax, the join relationships are defined at the explore level (equivalent to Cube's view
). That's the reason explores need special treatment and also the reason for explores to be 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/
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
Hashes for lkml2cube-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbe775c8335736c286a9929655af3f10783006ced1ab2a79309ba89545698878 |
|
MD5 | 8345270e1cd4abb0ab1d343788bafa11 |
|
BLAKE2b-256 | 74321d9bcc1c280c7c62ac5bfd944a19357de001b8d33f43efac9b17f191858d |