{"id":20127605,"url":"https://github.com/cube-js/lkml2cube","last_synced_at":"2025-05-06T18:31:38.230Z","repository":{"id":187092332,"uuid":"676303402","full_name":"cube-js/lkml2cube","owner":"cube-js","description":"lkml2cube is a tool to convert LookML models into Cube data models.","archived":false,"fork":false,"pushed_at":"2025-04-16T22:34:27.000Z","size":47,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-17T02:53:20.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cube-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-08T22:45:43.000Z","updated_at":"2025-04-16T22:34:31.000Z","dependencies_parsed_at":"2024-11-13T20:26:55.492Z","dependency_job_id":"a5e1516f-61c5-4939-a57b-0e217ec1166e","html_url":"https://github.com/cube-js/lkml2cube","commit_stats":null,"previous_names":["pacofvf/lkml2cube","cube-js/lkml2cube"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Flkml2cube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Flkml2cube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Flkml2cube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Flkml2cube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cube-js","download_url":"https://codeload.github.com/cube-js/lkml2cube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252744504,"owners_count":21797634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T20:22:44.565Z","updated_at":"2025-05-06T18:31:37.904Z","avatar_url":"https://github.com/cube-js.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lkml2cube\n\nlkml2cube is a tool that converts LookML models into Cube data models.\n\n## Usage\n\nThere 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`.\nThe 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.\n\n### Install\n\n```sh\npip install lkml2cube\n```\n\n### Convert LookML views into Cube YAML definition.\n\n```sh\nlkml2cube cubes path/to/file.view.lkml --outputdir examples/\n```\n\n### Show Python dict representation of the LookerML object\n\n```sh\nlkml2cube cubes --parseonly path/to/file.view.lkml\n```\n\n### Convert LookML Explores into Cube's views YAML definition.\n\n```sh\nlkml2cube views path/to/file.explore.lkml --outputdir examples/\n```\n\n### Use the `--rootdir` parameter to prepend a path for all `include:` paths.\n```sh\nlkml2cube views ../my_lookml_project/views/countries.view.lkml --outputdir model/ --rootdir ../my_lookml_project/\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcube-js%2Flkml2cube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcube-js%2Flkml2cube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcube-js%2Flkml2cube/lists"}