Skip to main content

A simple package to query GraphQL using Bitquery

Project description

bitquery-python

A simple package to query GraphQL using Bitquery

Installation

pip install bitquery-python

Obtaining API Key

You will need to create an account on the GraphQL IDE to be able to obtain an API key.

Running queries

Here is an example code to run a query

from bitquery import bitquery

API_KEY = "YOUR API KEY"

query = """
query{
  bitcoin{
    blocks{
      count
    }
   }
}
"""

result = bitquery.run_query(API_KEY, query)
print(result)

Authors

More information

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitquery-python-0.1.tar.gz (14.4 kB view hashes)

Uploaded Source

Built Distribution

bitquery_python-0.1-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

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