Skip to main content

No project description provided

Project description

Iroha python

Python library for Hyperledger Iroha 2.

Version

If you are using the latest iroha release, iroha2 MVP, then you should use the main branch. If you are using rc20 then you should use the 'stable' branch.

Install

To build, use the nightly-2024-09-09 version of the rust toolchain. Set it as the default before executing the build steps. TODO, complete list of dependencies.

maturin build
pip install --break-system-packages target/wheels/iroha-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl

The exact path to the .whl file may vary. After an installation, do a small test to check the installation was successful. Normally, this test will display the library's contents:

python -c "import iroha; print(dir(iroha))"
['Account', 'AccountId', 'Asset', 'AssetDefinition', 'AssetDefinitionId', 'AssetId', 'AssetType', 'BlockHeader', 'Client', 'DomainId', 'Instruction', 'KeyPair', 'Mintable', 'NewAccount', 'NewAssetDefinition', 'PrivateKey', 'PublicKey', 'Role', 'SignedTransaction', 'TransactionQueryOutput', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'hash', 'iroha']

If there was no error, you should be able to use iroha-python library. You may also see an error that ends like this:

ModuleNotFoundError: No module named 'iroha'

This means that the pip install did not work properly.

Running the tests

Running the tests requires you to have a running local test network of iroha. In the main iroha repository you must run 'scripts/test_env.py setup'. Then you can run the following command to run the python library test suite.

poetry run python -m pytest tests/

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

iroha2-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (36.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

iroha2-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl (36.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

File details

Details for the file iroha2-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for iroha2-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5df6af061a0f55c360dc76b1971533e211fca64c0eee3f53b27da6a400173b32
MD5 7a2a78b18538a99b2c29e39eb0029ae5
BLAKE2b-256 c3bb7df7150b6600fb7ce20d7503aa1538ca73c2bfa0e6e7af3ee0094b948541

See more details on using hashes here.

File details

Details for the file iroha2-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for iroha2-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 369b731d414b407cd2fd1c8a1720e50a0c602a1650a4dd8615956a9e33d835f4
MD5 aff68be72a69b551f3e85cc97dc503ab
BLAKE2b-256 8c676a396702e34aabd4b81aaa98f0b51995597a4a37382d46e7a1e8986b3eb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for iroha2-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl:

Publisher: main.yml on hyperledger-iroha/iroha-python

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page