Metadata-Version: 2.1
Name: bitquery-python
Version: 0.1
Summary: A simple package to query GraphQL using Bitquery
Home-page: https://github.com/alb2001/bitquery-python
Author: alb2001
Author-email: alb2001@outlook.es
License: UNKNOWN
Project-URL: Bitquery Website, https://bitquery.io
Project-URL: Bug Tracker, https://github.com/alb2001/bitquery-python/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9.2
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](https://graphql.bitquery.io/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
* [alb2001](https://github.com/alb2001)


## More information
* [GraphQL APIs using Python](https://bitquery.io/blog/graphql-with-python-javascript-and-ruby#GraphQL_APIs_using_Python)
* [GraphQL IDE](https://graphql.bitquery.io/ide)


