Skip to main content

No project description provided

Project description

jolteon

Are you a Lightdash user? Have you ever had to change the name of a metric, dimension or model in your dbt project?

If so, you'd know for sure that adapting the Lightdash charts to these changes is a huge pain.

This python package aims to partially solve this issue automatically updating the Lightdash database.

It works pretty well most of the times, but there are still some corner cases when you'll find your charts a little bit different after the migration. Anyway, this package will still save you hours of manual updates.

How to install Jolteon

pip install jolteon

How to use Jolteon

  1. Create a .env file like the .env.example one you find in this repository and fill it with your Lightdash database connection parameters.

  2. Create a config.yaml file like the config_example.yaml one you find in this repository. This file should be structured as follows:

    • old_table should be filled with the previous name of your dbt model (if you have changed it) or with the current name of it (if you haven't changed it).

    • new_table should be filled with the current name of your dbt model only when you have changed it, otherwise it should be left empty.

    • fields_raw_mapping should be filled with the mapping of the metrics and the dimensions you have changed. If you haven't changed any metric or dimension, you can also leave it empty.

    • query_ids should be filled with the ids of the charts you want to affect when updating the database. If you don't known what are the ids of the charts (and you probably won't the first time), you can run jolteon get-ids. You will be presented with a table containing the id, the name and the workspace of all the charts of your Lightdash instance.

  3. Run jolteon update-db config.yaml.

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

jolteon-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

jolteon-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file jolteon-0.1.0.tar.gz.

File metadata

  • Download URL: jolteon-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.3 Darwin/20.6.0

File hashes

Hashes for jolteon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff25ae65d5df881b8309613a9d2a9e1b9497ff93dcd0a2b78e8ee6c73ccabb20
MD5 f0d3a81fc65ecc9f6213a87f05addb27
BLAKE2b-256 311eb08f25ce558801f1d5f030ade5d18d03c4bb14f25b9047daf6d9a510b319

See more details on using hashes here.

File details

Details for the file jolteon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jolteon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.3 Darwin/20.6.0

File hashes

Hashes for jolteon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48bcb105bdd09adbb5e446c6978471d7700e227c75cb0a89d52a0d1ac165ada7
MD5 0c4204d87c368aaacab2f23f6bb7475c
BLAKE2b-256 500ea7ef9e65c7a598f0009cd33eaaf9f0973f35f962ded990855014bf07cd0a

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