Skip to main content

Python library for Hyperledger Iroha

This is a source repository for HL Iroha Python library.

Currently, latest HL Iroha release 1.6 is supported. It can be used with one of official docker images:

  • hyperledger/iroha:latest
  • hyperledger/iroha-burrow:latest with Hyperledger-Burrow support (smart contracts).

The library works in Python 3 environment (Python 2 is not supported).

Installation

pip install iroha

Usage Example

from iroha import Iroha, IrohaCrypto, IrohaGrpc

iroha = Iroha('alice@test')
net = IrohaGrpc('127.0.0.1:50051')

alice_key = IrohaCrypto.private_key()
alice_tx = iroha.transaction(
    [iroha.command(
        'TransferAsset', 
        src_account_id='alice@test', 
        dest_account_id='bob@test', 
        asset_id='bitcoin#test',
        description='test',
        amount='1'
    )]
)
IrohaCrypto.sign_transaction(alice_tx, alice_key)
net.send_tx(alice_tx)

for status in net.tx_status_stream(alice_tx):
    print(status)

Please explore examples directory for more usage examples.

All the library methods have docstrings in its source iroha.py.

The links above are broken outside the hyperledger/iroha-python GitHub repository.

If you are interested in different HL Iroha client libraries you can check our Wiki.

Metadata

Release files for iroha 1.6.0.2

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

Source distribution (sdist)

Source distribution for iroha 1.6.0.2
File Size Uploaded Provenance Actions
iroha-1.6.0.2.tar.gz 24.7 kB Without provenance Details for iroha-1.6.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iroha 1.6.0.2
File Interpreter ABI Platform Actions
iroha-1.6.0.2-py3-none-any.whl Python 3 none any Details for iroha-1.6.0.2-py3-none-any.whl

Total release size: 53.7 kB

Release files / iroha-1.6.0.2.tar.gz

Download URL iroha-1.6.0.2.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bc9a2f05d0ed0b75406486b314b1872a38aa0d3ac1b46a6c5b862eada435b062
BLAKE2b-256 checksum
How to use checksums
cba5eefa2c6ddc76e79afeb9954fcac20e6354b5bd3ca3cf036beb5fb9e0d43e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.10

Release files / iroha-1.6.0.2-py3-none-any.whl

Download URL iroha-1.6.0.2-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14803a3698c5e353499735b07f918ce197f572f60e0a60cf7bae9e24c2b4e9df
BLAKE2b-256 checksum
How to use checksums
40b5436238e16c97cbc9e688f0a1f0aa1c3db5d466d0a72255be8116ed7adf7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.10

Security for iroha 1.6.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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