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.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e29c673cd11cd8f6633a61207e0477d5af30142bf63cf667f6fe37c9da9ad1 |
|
MD5 | 8540196b584cd3f99d276565c69ff095 |
|
BLAKE2b-256 | b78223e064dac1371d1db401507a4f96ebf4af0fa8fef4681ecc450e3be8d293 |