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

Sia bindings for Python 2 & 3

Project description

PySia Documentation Status Updates

Sia API bindings for Python 2 & 3.

This library is built using code-generation, to exactly match the endpoints, docs and responses maintained by Sia. This library will not attempt to improve on, or resist, any API changes made upstream to siad.

This version targets siad >= 1.2.2.


pip install pysia


>>> from pysia import Sia
>>> sc = Sia() # Optionally, pass host & port.  Defaults to localhost & 9980

>>> consensus = sc.get_consensus()
>>> consensus['height']

backup_made = sc.get_wallet_backup(destination=r'd:\siadwallet.dat')
# True

backup_made = sc.get_wallet_backup(destination=r'error causing input?@#$!`')
>>> {'message': 'error when calling /wallet/backup: destination must be an absolute path'}

>>> {'peers': [{'netaddress': '', 'version': '0.5.2', 'inbound': False, 'local': False},...]}

>>> print(sc.set_gateway_connect(''))

>>> print(sc.set_gateway_disconnect(''))

>>> print(sc.set_gateway_disconnect(''))
{'message': 'not connected to that node'}


  • Exposes a method for each API endpoint of siad, matching Siad API docs 1-to-1
  • User-friendly autocomplete (GET -> getters, POST -> setters)
  • Pure python responses
  • User-friendly key-words called out for url-parameters GET-methods





  • Free software: MIT license


Coming soon, here:

See Also

There are python 3 bindings for Sia, maintained by humans which might be or become more pythonic. See siapy.


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History (2017-05-28)

  • First code-gen produced version, targetting python 2 & 3 & siad 1.2.2

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 pysia, version
Filename, size File type Python version Upload date Hashes
Filename, size pysia- (13.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