THIS PROJECT IS DEPRECATED, PLEASE USE INSTEAD: dune-client PyPI package: https://pypi.org/project/dune-client/
This is a python client to use the Dune API to execute queries and read the results. The Dune API is currently in Beta. And this client is also under active development.
-
If you don’t have Python installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd duneapi-client-python
-
Create a new virtual environment
$ python -m venv venv $ . venv/bin/activate
-
Install the requirements
$ pip install -r requirements.txt
-
Add your Dune API key to your local environement.
$ export DUNE_API_KEY="YOUR_API_KEY"
-
Run the
duneapi.py
script, pass the ID of the query you would like to execute and get results from as an command line argument. We have added an example query ID for reference.$ python duneapi.py 1258228
You should now be able to see the status of your query being executed on the command line.