Skip to main content

Python bindings for the IOTA SDK library

Project description

IOTA SDK Library - Python binding

Python binding to the iota-sdk library.

Table of contents

Requirements

Getting Started

Install the IOTA SDK

  1. Move to the Python bindings directory:

    cd iota-sdk/bindings/python
    
  2. (optional) Create a virtual environment and use it. On Linux and macOS, you can run the following commands:

    '''bash python3 -m venv iota_sdk_venv source iota_sdk_venv/bin/activate '''

    If you are using Windows, you should run the following instead:

    .\iota_sdk_venv\Scripts\activate`
    
  3. Install the required dependencies and build the wheel by running the following commands:

    pip install -r requirements-dev.txt
    pip install .
    
  4. (optional) If you want to deactivate the virtual environment, run the following command:

    deactivate
    

Client Usage

The following example creates a Client instance connected to the Shimmer Testnet, and retrieves the node's information by calling Client.get_info(), and then print the node's information.

examples/client/getting_started.py

Wallet Usage

The following example will create a new Wallet Account using a StrongholdSecretManager, and then print the account's information.

examples/wallet/getting_started.py

Examples

You can use the provided code examples to acquainted with the IOTA SDK. You can use the following command to run any example:

python3 example/[example file]
  • Where [example file] is the file name from the example folder. For example:
python3 examples/client/00_get_info.py

API Reference

You can find the API reference for the Python bindings in the IOTA Wiki.

Learn More

To learn more about Rust, see the Rust documentation.

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_sdk-1.1.0-cp311-none-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

iota_sdk-1.1.0-cp311-cp311-manylinux_2_35_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

iota_sdk-1.1.0-cp311-cp311-manylinux_2_31_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.31+ x86-64

iota_sdk-1.1.0-cp311-cp311-macosx_11_0_arm64.whl (7.6 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

iota_sdk-1.1.0-cp311-cp311-macosx_10_14_x86_64.whl (8.1 MB view hashes)

Uploaded CPython 3.11 macOS 10.14+ x86-64

iota_sdk-1.1.0-cp310-none-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

iota_sdk-1.1.0-cp310-cp310-manylinux_2_35_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

iota_sdk-1.1.0-cp310-cp310-manylinux_2_31_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

iota_sdk-1.1.0-cp310-cp310-macosx_11_0_arm64.whl (7.6 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

iota_sdk-1.1.0-cp310-cp310-macosx_10_14_x86_64.whl (8.1 MB view hashes)

Uploaded CPython 3.10 macOS 10.14+ x86-64

iota_sdk-1.1.0-cp39-none-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

iota_sdk-1.1.0-cp39-cp39-manylinux_2_35_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

iota_sdk-1.1.0-cp39-cp39-manylinux_2_31_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

iota_sdk-1.1.0-cp39-cp39-macosx_11_0_arm64.whl (7.6 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

iota_sdk-1.1.0-cp39-cp39-macosx_10_14_x86_64.whl (8.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

iota_sdk-1.1.0-cp38-none-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

iota_sdk-1.1.0-cp38-cp38-manylinux_2_35_x86_64.whl (8.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

iota_sdk-1.1.0-cp38-cp38-macosx_11_0_arm64.whl (7.6 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

iota_sdk-1.1.0-cp38-cp38-macosx_10_14_x86_64.whl (8.1 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

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