.env
file and github action secrets (name it DUNE_API_KEY
). You can create a key under your Dune team settings. The api key must be from a plus plan for this repo to work.
queries.yml
file. The id can be found from the link https://dune.com/queries/<query_id>/...
. If you’re creating this for a dashboard, go to the dashboard you want to create a repo and click on the “github” button in the top right of your dashboard to see the query ids.
pull_from_dune.py
to bring in all queries into /query_{id}.sql
files within the /queries
folder. Directions to setup and run this python script are below.
push_to_dune.py
will save your changes into Dune directly. You can run this manually too if you want.
/uploads
folder. upload_to_dune.py
will run on commit, or can be run manually. The table name in Dune will be dune.team_name.dataset_<filename>
.
dune.com/queries/<query_id>/<visualization_id>
.pull_from_dune.py
anytime to update the repo with any changes from the app.