Skip to main content

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
  • 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


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.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

wh_lookml_gen-0.1.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file wh_lookml_gen-0.1.5.tar.gz.

File metadata

  • Download URL: wh_lookml_gen-0.1.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3

File hashes

Hashes for wh_lookml_gen-0.1.5.tar.gz
Algorithm Hash digest
SHA256 400166d6d9de6cbe556946bdaa47b8f5595f553ef3ffef3f568af784d5e7fe6f
MD5 fdba9f10dd4b923e82f8380aaa87b3aa
BLAKE2b-256 53fe18d5ea117e51098ca248fe9f9cc4b23b3373a5c9688b21cb2be6045e23dc

See more details on using hashes here.

File details

Details for the file wh_lookml_gen-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: wh_lookml_gen-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3

File hashes

Hashes for wh_lookml_gen-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f982e422d5dcdac67fef6d154328b4a97179e2098baf1c98b7d086b813ae9220
MD5 0178786d1aa922d859433fa04cfae04a
BLAKE2b-256 14fbd6af67850f8c509f474cfd70626aa058f990992907192e601613482731a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page