Skip to content

duneanalytics/duneapi-client-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dune API Python Client

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.

Setup

  1. If you don’t have Python installed, install it from here

  2. Clone this repository

  3. Navigate into the project directory

    $ cd duneapi-client-python
  4. Create a new virtual environment

    $ python -m venv venv
    $ . venv/bin/activate
  5. Install the requirements

    $ pip install -r requirements.txt
  6. Add your Dune API key to your local environement.

    $ export DUNE_API_KEY="YOUR_API_KEY"
  7. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published