Skip to main content

Python bindings for the IOTA wallet library

Project description

IOTA Wallet Library - Python binding

Python binding to the iota.rs wallet library.

Requirements

Python 3.x & pip

Rust and Cargo, to compile the binding. Install them here.

Installation

  • Go to wallet.rs/bindings/python

Create a virtual environment and use it (optional)

  • python3 -m venv iota_wallet_venv
  • source iota_wallet_venv/bin/activate; Windows: .\iota_wallet_venv\Scripts\activate

Install required dependencies and build the wheel

  • pip install -r requirements-dev.txt
  • pip install .

Run examples

python3 example/[example file]

Example:

  • python3 examples/0-create-account.py

To deactivate the virtual environment (optional)

  • deactivate

Getting Started

After you installed the library, you can create a IotaWallet instance and interact with it.

from iota_wallet import IotaWallet, StrongholdSecretManager

# This example creates a new database and account

wallet_options = {
    'nodes': ['https://api.testnet.shimmer.network'],
}

# Shimmer coin type
coin_type = 4219

secret_manager = StrongholdSecretManager("wallet.stronghold", "some_hopefully_secure_password")

wallet = IotaWallet('./alice-database', wallet_options, coin_type, secret_manager)

# Store the mnemonic in the Stronghold snapshot, this only needs to be done once
account = wallet.store_mnemonic("flame fever pig forward exact dash body idea link scrub tennis minute " +
          "surge unaware prosper over waste kitten ceiling human knife arch situate civil")

account = wallet.create_account('Alice')
print(account)

Generate API References

You can generate the python API reference with the following command from this directory:

pydoc-markdown

Customize the Output

Pydoc-markdown automatically loads its configuration from the pydoc-markdown.yml file. You can override it with the CLI, or alter the values.

loaders:
  - type: python
processors:
  - type: filter
    skip_empty_modules: true
  - type: smart
  - type: crossref
renderer:
  type: docusaurus
  docs_base_path: ../../documentation/docs/references/
  relative_output_path: python

  markdown:
    use_fixed_header_levels: true
    header_level_by_type:
      Module: 1
      Class: 2
      Method: 3
      Function: 3
      Data: 3

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

iota_wallet-1.0.0rc2-cp311-none-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

iota_wallet-1.0.0rc2-cp311-cp311-manylinux_2_35_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

iota_wallet-1.0.0rc2-cp311-cp311-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

iota_wallet-1.0.0rc2-cp311-cp311-macosx_10_14_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

iota_wallet-1.0.0rc2-cp310-none-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

iota_wallet-1.0.0rc2-cp310-cp310-manylinux_2_35_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

iota_wallet-1.0.0rc2-cp310-cp310-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

iota_wallet-1.0.0rc2-cp310-cp310-macosx_10_14_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

iota_wallet-1.0.0rc2-cp39-none-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

iota_wallet-1.0.0rc2-cp39-cp39-manylinux_2_35_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

iota_wallet-1.0.0rc2-cp39-cp39-manylinux_2_31_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

iota_wallet-1.0.0rc2-cp39-cp39-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

iota_wallet-1.0.0rc2-cp39-cp39-macosx_10_14_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

iota_wallet-1.0.0rc2-cp38-none-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

iota_wallet-1.0.0rc2-cp38-cp38-manylinux_2_35_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

iota_wallet-1.0.0rc2-cp38-cp38-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

iota_wallet-1.0.0rc2-cp38-cp38-macosx_10_14_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

Details for the file iota_wallet-1.0.0rc2-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 34dccdfcbedaf83a348843894d281218e565c299aa316d8bc320082653a2289a
MD5 1b4a611fce5fe647d00d581407408636
BLAKE2b-256 971555f81497d3eedc7f587b99d3ce560d908e847d836b87e05e4857acc610d3

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 45aca6219ce90880d319be5c039d81b287b23f00352ce0256c3cb06a0921eabf
MD5 5784e21898607e8c916fd31273f2163e
BLAKE2b-256 246f0f65c173d705ee4d78c3fe4a0182bd08e90d530df9950dd502a5bb9e76f7

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 123c565029d5267806b01be6cc302db4e351fec29abb80158399402f06ca9792
MD5 b5772398806e1322f0880aa102f83730
BLAKE2b-256 d54b08c9b1de953ff6a9bf4851809934dea9d3daa2d45e1dec2add92ee4ad5e0

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b1272a2a07876c991a2fb30b4ddf02c14039709fd20c238b27a0f3424cc44a38
MD5 ece4cef22400e03ee74d02b7f0f1aec3
BLAKE2b-256 78244363d575dc8dae4af8ee436e90e8862e57ef023b7fe56b2eb7e4feb200a9

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 caea1bdd6415a9b6ee4f2f75345c853ac222a52fbe76bb04e380cf97e86f68c1
MD5 d6e13d9d4b4154a64eaedc3bf3752f77
BLAKE2b-256 da64716667644d72c6771321a656288f8a469511a65b7d5e7c73cd2bcd4a86f6

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 95b5874446a5221d21e781a9e43e377e99d3ffd70440441a6861ae31d40ecd0e
MD5 11695eed7ac3d430721171f61dbfb940
BLAKE2b-256 3c1bec2dda2d2cf8b1b239a245b80251d46d87d4d3c1d361ff81cd47299953ae

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eee1573c2de07da5ea8c8c616979edd12a91cffb73c0bec041f452102bc1cec4
MD5 e97d9fe725bf942370901f0ea5552f05
BLAKE2b-256 a2915bca2f5fdeccdd14d8778d81e2d0c5473381113025a1f151454e8f29574e

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 50f7a5aa5e5c5237557b12367ebce863345ac9eee946305ff3955c5b3b0f7cf1
MD5 321aa097161c8ba3e30d5e3043b4f073
BLAKE2b-256 012f56a1abe9cd417e03197164d3d133acdaeed2ce176a79ccf3b457cd73a44d

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb63cb95a391b4b862f6c1696abf3d2b08e86f4eda467513631cb09cdd0c1267
MD5 6c6d680f70290e88744a9b935447de1c
BLAKE2b-256 52568ab5c8933e1e039e6351adc0ee1715d84cec9288966a70617f74a50b95da

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 f51a558a6747131aa110b216c4ac40679a1b0f01f23988f8b8233fc6a0070d15
MD5 a50af71f991d51f862178f99a7c34182
BLAKE2b-256 859dad1d9058eb3d1b32076e6b28ae1cd8155f7a8bed81127bbc4daff54d4082

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1d305a5bc6e82cf8fbd4433a930455a0cb2a386d07c31d7bd33c153d93bbf4de
MD5 78865f84fbaff7c3a47e15297778328e
BLAKE2b-256 ad84f414e3fa4cf88892d8b47e033c2ce1e4d41617d97273bfafab17e0faae93

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f17c2c7c7aee585947735d1d90a59ed57afcd559ce4bcfc146c5257e3bd3617
MD5 7dda351f22ad7ee2759b1dc06f79609c
BLAKE2b-256 593690027197cd6e2698986a83166b8a924a9a22ef237995c2567fe96e32e635

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 817d11b9354c938b32f7789ef04497b0bfdfe2d3b715773c742621cc8d79d237
MD5 bfca78836aa79999b03f6e44e08b7f2b
BLAKE2b-256 21885117c0201c3aecb0391786ca4cd27ed6c917bb7637333834dbf36610f31a

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 bc3d1f3d9474631f284252e6f534264b52a78c83c1932da85b1b9a2adc9ea932
MD5 b2d73d03ebea4eab062b08608f5bc7e1
BLAKE2b-256 1cc906361ace9243d121e61a3786e9300727613d8809dd3dc1450688ae9bf7af

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp38-cp38-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 bdd52dc9fb1f3922cea6eb5532e9146e58de3e2933be8ebd1671a87eb7029de8
MD5 65688b5ac2505c32d07d48ed87ac9d8b
BLAKE2b-256 e43df228d8df048dc6944dd65f719d1237054b1d550b02a73ae235d8eba2b789

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d74de11098692995637cf8e3c6c2e5271aa94ef5418ab79f6c155fa647a5c04
MD5 a4fa44434849e9519ea2995c8393405d
BLAKE2b-256 8e5906c8a7f8095485665bee79f887c4f7633642520883d713a1db39eacdd999

See more details on using hashes here.

File details

Details for the file iota_wallet-1.0.0rc2-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for iota_wallet-1.0.0rc2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2e9440b912e6e62a67fdb7634ee555fe63e86b960fbc7978446a7791ab370945
MD5 03e750b980d70e3d205f992c8c5db29b
BLAKE2b-256 1e879236b2f61f260c8e4661b707e0ea99df48f6918781b8235887935fa43a1d

See more details on using hashes here.

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