Skip to main content

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

Release files for bitquery-python 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitquery-python 0.1
File Size Uploaded
bitquery-python-0.1.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bitquery-python 0.1
File Interpreter ABI Platform
bitquery_python-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.2 kB

Release files / bitquery-python-0.1.tar.gz

Download URL bitquery-python-0.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0dc8ebb68f9153d0b1191cb9ea813fcd22253282779a4eeb09aaa98c0907eeb0
BLAKE2b-256 checksum
How to use checksums
f63804856a22fa7af520bb6112669dd20ac0a8079daf5094ca2213df2104fe90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

Release files / bitquery_python-0.1-py3-none-any.whl

Download URL bitquery_python-0.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32e469e64034939579f22f3127fe38f84bc33f137242d21894c0966f94db1dc3
BLAKE2b-256 checksum
How to use checksums
bb3b0f27f4b16fc061d8c1797af757bdc82885ac1d6468b277cb225556b8e8db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page