Skip to main content

NIOTA

Make IOTA to be an integrity chain.

Niota registers Asset history records to the integrity chain.

Installation

python3 -m pip install niota

Unit Testing

make test

Usage

Iota Client

The IotaClient class is a client to interact with IOTA REST API.

Below is a minimal example for connecting to an IOTA hornet node with JWT authentication enabled, and create a message.

from niota import IotaClient

iota = IotaClient(base_url='https://example.iota.hornet.node', jwt_token='enter JWT token here')
create_message_resp = iota.create_message('example-index', 'example-data')
message_id = create_message_resp.data.messageId

Niota client

The Niota class can be used as a client to interact with IOTA Tangle messages with Numbers Protocol integrity record format.

example_integrity_info = {
    'raw_cid': 'bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku',
    'ida_cid': 'bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku',
    'ida_mid': 'c7dfa6e5-346d-4b4d-a663-a421e7f9171f',
    'ida_sha256sum': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
    'metadata_cid': 'bafkreidgkmzpzvot7a5r2iy44tmcojuvoyjgbwi5udldfisbvn4lnfrmoq',
    'service_message': 'Create test data',
}

niota = Niota(
    base_url='https://example.iota.hornet.node',
    jwt_token='enter JWT token here'
    private_key=private_key,
    public_key=public_key,
)
message_id, index = niota.create_message(**message_data_fixture)

Metadata

Release files for niota 0.8.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 niota 0.8.0
File Size Uploaded Provenance Actions
niota-0.8.0.tar.gz 7.5 kB Without provenance Details for niota-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / niota-0.8.0.tar.gz

Download URL niota-0.8.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f75e85330c75e1a4634183487352e194b49754a14c9785dbe2669510c802bb0c
BLAKE2b-256 checksum
How to use checksums
0150abd1f139e21f7045e2a873fbd58fa10f1b68ed80a7d63b8c2d07ef87149c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / niota-0.8.0-py3-none-any.whl

Download URL niota-0.8.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3bf9a0f9383e3d04d8eff3f45ffac5b66ef02f04643a7ed01dbdbf222fe06ab
BLAKE2b-256 checksum
How to use checksums
f7bbb8aa91be22b9b29af4ec82a015156f62362b8e0d1819491face81df43c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Security for niota 0.8.0

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