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.1.tar.gz
(12.1 kB
view hashes)
Built Distribution
dbt2looker-0.5.1-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for dbt2looker-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56ac10969c75f2f8bd2c151221094b3ef094127868f111b0e0b9b5e72351baf |
|
MD5 | 439c99d325c9fbd75390f559bc54f008 |
|
BLAKE2b-256 | f41bb9ccbbee5597cec4581f2324b093d6ec3a656bab24f581f4e3db5827b755 |