Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

dfuse GraphQL Python Example

This simple program demonstrates how easy it is to query our GraphQL API over gRPC in Python. It:

  • Request a token from our authentication API
  • Creates a gRPC connection with credentials
  • Instantiates a GraphQL client
  • Executes a simple GraphQL query
  • Prints the response


You will need to have Python3 (>= 3.4+) as well as virtualenv and pip >= 15.0+.

We use a virtual environment for this example, all dependencies are listed in the requirements.txt at the root of this project.


First of all, visit to get a free API key for your project.

Setup the virtual environment and pull all dependencies:


Once your environment is setup properly, simply run the script:

You can’t perform that action at this time.