Generate lookml view files from dbt models
Project description
dbt2looker
Requires python >=3.7
Use dbt2looker
to generate Looker view files automatically from dbt models.
Usage
Run dbt2looker
in the root of your dbt project:
Generate Looker view files for all models:
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
Usage
Generate lookml views for all dbt models in a project.
Within your dbt project, run:
dbt2looker
The lookml views will be saved in:
your_dbt_project_name/lookml
Generate lookml views for a specific set of models.
This is basically the same as above, except you list the specific models you're interested in. Each model name should be separated by a space:
dbt2looker olivers_cool_model kts_cooler_model
The lookml views for olivers_cool_model
and kts_cooler_model
will be saved in:
your_dbt_project_name/lookml
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
Built Distribution
Hashes for dbt2looker-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36d428f85f53c95f98422de1570ef6301251a973b33e7620c18af5c0f1d7514 |
|
MD5 | f40486c33dcb3e11b633c32605318a19 |
|
BLAKE2b-256 | 8f957cff45a99f5a48ff69388698a31b9794effc5eafbeb14e46f70078c34017 |