Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python bindings for Blocksat API

Project description


To import the Class and satellite APIs for mainnet and testnet:

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:

# 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):

# to check sent_orders
sent_orders = blocksat.sent_orders(sat_url=blocksat.SATELLITE_API)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for blocksat-api, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size blocksat_api-1.0.0-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size blocksat_api-1.0.0.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page