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.0.tar.gz
(12.1 kB
view hashes)
Built Distribution
dbt2looker-0.5.0-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for dbt2looker-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e914a0c78472c0c6c7331a7cd8865b45dedb5ae4dbbf8990f5a1e0e6ceec3302 |
|
MD5 | bd0ca4c9db323d337921fc7cdf8dd633 |
|
BLAKE2b-256 | 9cf8cea577c7d97ad09d74240ccc76903363303358d82a09813fbda2d33b9b68 |