blocksat-api-1.0.0
توضیحات
Python bindings for Blocksat API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | blocksat-api-1.0.0 |
| نام | blocksat-api |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Will Clark |
| ایمیل نویسنده | will8clark@gmail.com |
| آدرس صفحه اصلی | https://github.com/willcl-ark/blockstream_blocksat |
| آدرس اینترنتی | https://pypi.org/project/blocksat-api/ |
| مجوز | - |
Usage
----
To import the Class and satellite APIs for mainnet and testnet:
```python
from blocksat_api import blocksat
```
-----
Create a new order object to place a new order, increase an order bid, get an order status or delete an order:
```python
# create a new order object with optional message and network
o = blocksat.Order(message='Hello, world.', network='mainnet')
```
Methods called will return nothing upon success, storing the API status_code and a json-encoded response.text in the appropriate object attribute.
------
To check pending orders, queued orders, sent orders or the satellite lightning node info use the external methods which return a successful result as a json of response.text and a failure as a tuple of (response.status_code, response.reason, response.text):
```python
# to check sent_orders
sent_orders = blocksat.sent_orders(sat_url=blocksat.SATELLITE_API)
```
------
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl blocksat-api-1.0.0:
pip install blocksat-api-1.0.0.whl
نصب پکیج tar.gz blocksat-api-1.0.0:
pip install blocksat-api-1.0.0.tar.gz