Skip to main content
https://travis-ci.org/iotaledger/iota.py.svg?branch=master https://readthedocs.org/projects/pyota/badge/?version=latest

PyOTA

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.

If you encounter any issues while using PyOTA, please report them using the PyOTA Bug Tracker.

Dependencies

PyOTA is compatible with Python 3.7, 3.6, 3.5 and 2.7

Installation

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]

Optional Local Pow

To perform proof-of-work locally without relying on a node, you can install an extension module called PyOTA-PoW .

Specifiy the local_pow=True argument when creating an api instance, that will redirect all attach_to_tangle API calls to an interface function in the pow package.

To install this extension, use the following command:

pip install pyota[pow]

Alternativley you can take a look on the repository Ccurl.interface.py to install Pyota-PoW. Follow the steps depicted in the repo’s README file.

Installing from Source

  1. Create virtualenv (recommended, but not required).

  2. git clone https://github.com/iotaledger/iota.py.git

  3. 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 -p argument. This 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 tox command:

pip install -e .[test-runner]
tox -v -p all

Documentation

PyOTA’s documentation is available on ReadTheDocs.

If you are installing from source (see above), you can also build the documentation locally:

  1. Install extra dependencies (you only have to do this once):

    pip install .[docs-builder]
  2. Switch to the docs directory:

    cd docs
  3. Build the documentation:

    make html

Metadata

Release files for PyOTA 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyOTA 2.1.0
File Size Uploaded
PyOTA-2.1.0.tar.gz 5.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyOTA 2.1.0
File Interpreter ABI Platform
PyOTA-2.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 5.6 MB

Release files / PyOTA-2.1.0.tar.gz

Download URL PyOTA-2.1.0.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
af55ce47cfc35c89d439238d0e42566e39ecc54f14bfec1e67d4cd340d82f058
BLAKE2b-256 checksum
How to use checksums
4b6a6f3f039ea2a43c2e29a497ea78eb34eaf504f60e0995bbe93207f49d4e94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

Release files / PyOTA-2.1.0-py2.py3-none-any.whl

Download URL PyOTA-2.1.0-py2.py3-none-any.whl
Size 113.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9e05e0bf9f6b3ed7528ea25e5c5becfaccd6be08e7c0bb4ea1db41eb6d791016
BLAKE2b-256 checksum
How to use checksums
f73eb3c56dc39579d6f8d258e1cef35ceb76cd5463a99032e31ef63703996596
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page