IOTA API library for Python
This is the official Python library for the IOTA Core.
It implements both the official API, as well as newly-proposed functionality (such as signing, bundles, utilities and conversion).
Join the Discussion
If you want to get involved in the community, need help with getting setup, have any issues related with the library or just want to discuss Blockchain, Distributed Ledgers and IoT with other people, feel free to join our Discord.
You can also ask questions on our dedicated forum.
If you encounter any issues while using PyOTA, please report them using the PyOTA Bug Tracker.
PyOTA is compatible with Python 3.6, 3.5 and 2.7.
To install the latest version:
pip install pyota
Optional C Extension
PyOTA has an optional C extension that improves the performance of its cryptography features significantly (speedups of 60x are common!).
To install this extension, use the following command:
pip install pyota[ccurl]
Installing from Source
- Create virtualenv (recommended, but not required).
- git clone https://github.com/iotaledger/iota.lib.py.git
- pip install -e .
Running Unit Tests
To run unit tests after installing from source:
python setup.py test
PyOTA is also compatible with tox, which will run the unit tests in different virtual environments (one for each supported version of Python).
To run the unit tests, it is recommended that you use the detox library. detox speeds up the tests by running them in parallel.
Install PyOTA with the test-runner extra to set up the necessary dependencies, and then you can run the tests with the detox command:
pip install -e .[test-runner] detox -v
PyOTA’s documentation is available on ReadTheDocs.
If you are installing from source (see above), you can also build the documentation locally:
Install extra dependencies (you only have to do this once):
pip install '.[docs-builder]'
To install the CCurl extension and the documentation builder tools together, use the following command:
pip install '.[ccurl,docs-builder]'
Switch to the docs directory:
Build the documentation:
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|PyOTA-2.0.7-py2.py3-none-any.whl (109.2 kB) Copy SHA256 hash SHA256||Wheel||py2.py3|
|PyOTA-2.0.7.tar.gz (5.5 MB) Copy SHA256 hash SHA256||Source||None|