Generate lookml view files from dbt models
Project description
dbt2looker
Use dbt2looker
to generate Looker view files automatically from dbt models.
Features
- Auto-generates a Looker view per dbt model
- Supports dbt model and column-level descriptions
- Automatically maps raw column types to looker types
- Creates dimension groups for datetime/timestamp/date types
- Currently supports: BigQuery (snowflake, postgres to come)
Usage
Run dbt2looker
in the root of your dbt project after compiling looker docs.
Generate Looker view files for all models:
dbt compile
dbt docs generate
dbt2looker
Generate Looker view files for all models tagged prod
dbt2looker --tag prod
Install
Install from PyPi repository
Install from pypi into a fresh virtual environment.
# Create virtual env
python3.7 -m venv dbt2looker-venv
source dbt2looker-venv/bin/activate
# Install
pip install dbt2looker
# Run
dbt2looker
Build from source
Requires poetry and python >=3.7
# Install
poetry install
# Run
poetry run dbt2looker
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbt2looker-0.5.2.tar.gz
(12.1 kB
view details)
Built Distribution
File details
Details for the file dbt2looker-0.5.2.tar.gz
.
File metadata
- Download URL: dbt2looker-0.5.2.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce9e063de14e421bd691a0dea2b1c85a531e391fff4b2273f513749b6d4df71 |
|
MD5 | 77975d6c8f84ca30ef0da3a305225048 |
|
BLAKE2b-256 | 51b04775390959bde4c105be106f5d354e6523d2ea4daa1f9396f0c038bff701 |
File details
Details for the file dbt2looker-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: dbt2looker-0.5.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea83b75210b08f5c7b7b8f4ceb3a4953dc1170ee3ec2c18d42de7481f83454b |
|
MD5 | cd0b8880c97c1df2f225111ce0e30cf0 |
|
BLAKE2b-256 | 13cc1e0af96a1e6967ea01bb382df93b76a23427e143b250b9ddd0f2874c3b26 |