{"id":13703837,"url":"https://github.com/lightdash/dbt2looker","last_synced_at":"2025-12-14T00:03:43.063Z","repository":{"id":36959396,"uuid":"357486004","full_name":"lightdash/dbt2looker","owner":"lightdash","description":"Generate lookml for views from dbt models","archived":false,"fork":false,"pushed_at":"2024-08-20T13:04:11.000Z","size":690,"stargazers_count":187,"open_issues_count":33,"forks_count":45,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-04T04:07:34.285Z","etag":null,"topics":["dbt","looker"],"latest_commit_sha":null,"homepage":"https://lightdash.com","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/lightdash.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2021-04-13T08:51:48.000Z","updated_at":"2025-04-04T19:35:50.000Z","dependencies_parsed_at":"2024-06-21T15:34:27.214Z","dependency_job_id":"ee24213e-122d-418d-8796-3a03e51a18d0","html_url":"https://github.com/lightdash/dbt2looker","commit_stats":null,"previous_names":["hubble-data/dbt2looker"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightdash%2Fdbt2looker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightdash%2Fdbt2looker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightdash%2Fdbt2looker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightdash%2Fdbt2looker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightdash","download_url":"https://codeload.github.com/lightdash/dbt2looker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252458496,"owners_count":21751051,"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":["dbt","looker"],"created_at":"2024-08-02T21:01:00.640Z","updated_at":"2025-12-14T00:03:43.031Z","avatar_url":"https://github.com/lightdash.png","language":"Python","funding_links":[],"categories":["Packages","Python"],"sub_categories":[],"readme":"# dbt2looker\n\nUse `dbt2looker` to generate Looker view files automatically from dbt models.\n\nWant a deeper integration between dbt and your BI tool? You should also checkout [Lightdash - the open source alternative to Looker](https://github.com/lightdash/lightdash)\n\n**Features**\n\n* **Column descriptions** synced to looker\n* **Dimension** for each column in dbt model\n* **Dimension groups** for datetime/timestamp/date columns\n* **Measures** defined through dbt column `metadata` [see below](#defining-measures)\n* Looker types\n* Warehouses: BigQuery, Snowflake, Redshift (postgres to come)\n\n[![demo](https://raw.githubusercontent.com/hubble-data/dbt2looker/main/docs/demo.gif)](https://asciinema.org/a/407407)\n\n## Quickstart\n\nRun `dbt2looker` in the root of your dbt project *after compiling looker docs*.\n\n**Generate Looker view files for all models:**\n```shell\ndbt docs generate\ndbt2looker\n```\n\n**Generate Looker view files for all models tagged `prod`**\n```shell\ndbt2looker --tag prod\n```\n\n## Install\n\n**Install from PyPi repository**\n\nInstall from pypi into a fresh virtual environment.\n\n```\n# Create virtual env\npython3.7 -m venv dbt2looker-venv\nsource dbt2looker-venv/bin/activate\n\n# Install\npip install dbt2looker\n\n# Run\ndbt2looker\n```\n\n**Build from source**\n\nRequires [poetry](https://python-poetry.org/docs/) and python \u003e=3.7\n\nFor development, it is recommended to use python 3.7:\n\n```\n# Ensure you're using 3.7\npoetry env use 3.7  \n# alternative: poetry env use /usr/local/opt/python@3.7/bin/python3\n\n# Install dependencies and main package\npoetry install\n\n# Run dbtlooker in poetry environment\npoetry run dbt2looker\n```\n\n## Defining measures\n\nYou can define looker measures in your dbt `schema.yml` files. For example:\n\n```yaml\nmodels:\n  - name: pages\n    columns:\n      - name: url\n        description: \"Page url\"\n      - name: event_id\n        description: unique event id for page view\n        meta:\n           measures:\n             page_views:\n               type: count\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightdash%2Fdbt2looker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightdash%2Fdbt2looker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightdash%2Fdbt2looker/lists"}