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
File details
Details for the file dbt2looker-0.3.1.tar.gz
.
File metadata
- Download URL: dbt2looker-0.3.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a287609497fbd663783053835a490165a95682d81160a7782d6888592a11de |
|
MD5 | 4d875451ea05f64e940242c81d15a0de |
|
BLAKE2b-256 | 488f15a61459ff65fead0586d515e081f8ca1529040d513a7dca37479de0c7c1 |
File details
Details for the file dbt2looker-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: dbt2looker-0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e29c673cd11cd8f6633a61207e0477d5af30142bf63cf667f6fe37c9da9ad1 |
|
MD5 | 8540196b584cd3f99d276565c69ff095 |
|
BLAKE2b-256 | b78223e064dac1371d1db401507a4f96ebf4af0fa8fef4681ecc450e3be8d293 |