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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file bitquery-python-0.1.tar.gz.

File metadata

  • Download URL: bitquery-python-0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bitquery-python-0.1.tar.gz
Algorithm Hash digest
SHA256 0dc8ebb68f9153d0b1191cb9ea813fcd22253282779a4eeb09aaa98c0907eeb0
MD5 c199a1b73e21cbde46ba413d2b319257
BLAKE2b-256 f63804856a22fa7af520bb6112669dd20ac0a8079daf5094ca2213df2104fe90

See more details on using hashes here.

File details

Details for the file bitquery_python-0.1-py3-none-any.whl.

File metadata

  • Download URL: bitquery_python-0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bitquery_python-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32e469e64034939579f22f3127fe38f84bc33f137242d21894c0966f94db1dc3
MD5 17147a7f59cc4036721a5d2058e5c4db
BLAKE2b-256 bb3b0f27f4b16fc061d8c1797af757bdc82885ac1d6468b277cb225556b8e8db

See more details on using hashes here.

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