bitquery-python-0.1
توضیحات
A simple package to query GraphQL using Bitquery
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bitquery-python-0.1 |
| نام | bitquery-python |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | alb2001 |
| ایمیل نویسنده | alb2001@outlook.es |
| آدرس صفحه اصلی | https://github.com/alb2001/bitquery-python |
| آدرس اینترنتی | https://pypi.org/project/bitquery-python/ |
| مجوز | - |
# 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)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9.2 | Python |
نحوه نصب
نصب پکیج whl bitquery-python-0.1:
pip install bitquery-python-0.1.whl
نصب پکیج tar.gz bitquery-python-0.1:
pip install bitquery-python-0.1.tar.gz