this package leverages josh temples looker parser [https://github.com/joshtemple/lkml] so that you can generate lookml from BigQuery metadata
Project description
bq_lookml_generator v.0.1.1
This automatic generator is buit over Josh Temples looker parser [https://github.com/joshtemple/lkml]. Building out lkml, it allows you to generate lookml from BigQuery metadata.
getting started
-
make sure you are working in a venv.
-
pip install lookml_gen
-
config params
- run lookml_gen_init
- head to .lookml_gen and input your wh credentials
- warehouse configs
- either input big_query or red_shift (current support warehouses) under warehouse_name
- input schema name
- input project name
- security
- big_query
- input your keyfile path
- red_shift
- input you credentials
- big_query
- warehouse configs
- head to .lookml_gen and input your wh credentials
- run lookml_gen_init
-
input your warehouse schema target in here lookml/bq_lookml_gen/warehouse_target.py
-
type lookml_gen into terminal and watch the base explore generate...
troubleshooting
- run pip install -r requirements.txt if you are running into dependency issues
- you can run bq_lookml_gen.py from terminal if needed
to update
twine upload
--skip-existing dist/*
to develop
- add new features to setup tools using: python setup.py develop
rebuild the wheel
python setup.py sdist bdist_wheel
pip install -e /Users/lewisbaker/Documents/GitHub/kaplan_data_warehouse/lookml/lookml_gen/lookml_gen.py
pip freeze > requirements.txt
cat requirements.txt
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
wh_lookml_gen-0.1.6.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for wh_lookml_gen-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38cc6a538c2effd76c9e2d9c99169113e975a7d53f67f3749395336f8134c080 |
|
MD5 | fbfb7c2e6c0e3ee8e6b6be7bc9d1acb0 |
|
BLAKE2b-256 | 3c7abe975e7f61aae58cf7942ef10fc76a01cdee142c2d966eec3c5a452a5f9b |