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
- Python 3.10+
- pip ^21.x
Rust
andCargo
to compile the binding. Install them here.
Getting Started
Install IOTA SDK via pip
-
(optional) Create a virtual environment and use it. On Linux and macOS, you can run the following commands:
python3 -m venv env source env/bin/activate
If you are using Windows, you should run the following instead:
python3 -m venv env .\env\Scripts\activate
-
Install the IOTA-SDK using pip:
pip install iota-sdk
-
(optional) If you want to deactivate the virtual environment, run the following command:
deactivate
Install the IOTA SDK
-
Move to the Python bindings directory:
cd iota-sdk/bindings/python
-
(optional) Create a virtual environment and use it. On Linux and macOS, you can run the following commands:
python3 -m venv env source env/bin/activate
If you are using Windows, you should run the following instead:
python3 -m venv env .\env\Scripts\activate
-
Install the required dependencies and build the wheel by running the following commands:
pip install -r requirements-dev.txt pip install .
-
(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 using a StrongholdSecretManager, and then print the wallet'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/how_tos/client/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for iota_sdk-2.0.0b1-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f034965c6dad1a93ed3ed947b3b78ece8e7eacbc08091f86583717b05802fd |
|
MD5 | de0d53dd87843cbf91101f317bdfc842 |
|
BLAKE2b-256 | dba903bc9e0677add6356f4873da380fc6e35f56ff256a2bbfb3422778323386 |
Hashes for iota_sdk-2.0.0b1-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2d947b313b82037ba030912fd5cae15d45e60fb9518b0074c49d5a3d2286857 |
|
MD5 | bacfb09f4e98c4ab7b97d3a5e274fb09 |
|
BLAKE2b-256 | 8ac2b4baf202135f580458c8ba279a081baa67a5a76d37480a157d3cc93704d1 |
Hashes for iota_sdk-2.0.0b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c9c24e96266fa29170afe861c024539bfdc307f15154c84dee0f264c4120bc |
|
MD5 | f4fda1d037678e615b98e102d33be3cd |
|
BLAKE2b-256 | c47e910272f74c95518ada1f7f30660f3560e6d304f4333eac1afc4d98a345fe |
Hashes for iota_sdk-2.0.0b1-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60929f3629121b7a3f0206b276dce1a601f380a7294f313447244171cd62459e |
|
MD5 | 5281fe2ecd9d2ffe216f5f6e6e8cca15 |
|
BLAKE2b-256 | 0002108a7362a80cec83cb7c4a7ebc2b70e0f1e5ab23356e01c7d8ccff6d40e0 |
Hashes for iota_sdk-2.0.0b1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651a394e557ae5405ec2d46b07fec78761e5173f0f2e67f88b29d308af00e04a |
|
MD5 | b6148cd3daf8d00737c157fd0ef23b31 |
|
BLAKE2b-256 | a037fb6c4de69364107fca01f6e43937261a1cdbbc359166ebd17e858c876ec6 |
Hashes for iota_sdk-2.0.0b1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c076f8054bfec94976ab908617000e6a1ca19ac6f8a0f7a184891e8741e10317 |
|
MD5 | 39056b26ec42da49c06ce5824b57a48a |
|
BLAKE2b-256 | e5ddfa96ba1d3779eb36cf66aeb3d45b3848e529421b4f6ab7774d9a7b6ca8e6 |
Hashes for iota_sdk-2.0.0b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89db4f6567181f73eac830b6da12c15de4d49c8b474513ea1cf9738b9d95042 |
|
MD5 | 353e3ee2cb2d2b7080489cc27db77eaa |
|
BLAKE2b-256 | b6ed79e7aafb34f9e6f7f1819d58794026ad70d314418721e870a7d5aef12a91 |
Hashes for iota_sdk-2.0.0b1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452d5be822944288f24ed614672c099d08b03fd67bef7f570883ecfe627188e0 |
|
MD5 | b109c9feeefcda3f8eca36c04f4d684d |
|
BLAKE2b-256 | ff75bfb6f07a9a6e0a9ddccb804d53351eca994463c6aa4b8ae3fefab8feeba6 |
Hashes for iota_sdk-2.0.0b1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bc9a840bc5e4b936a2cee3bc788458d66b4456b405eb72998d8fa1bec4e4e4c |
|
MD5 | ad2329d46b5cc5e1b311b3df9eae2764 |
|
BLAKE2b-256 | b967f0284576e4177301f66096f88e246ae0b743bcbc192f7695f0bc7dabe4f6 |
Hashes for iota_sdk-2.0.0b1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9329cf7f58fa8a5aaba9e56dee55cbba3f7a0bdb5bf4f9c766c9d60b370baeb |
|
MD5 | a0ceade6abae121f7b48d00e78fc80d9 |
|
BLAKE2b-256 | 244139f0a3e05904f42b7ef2de0b07d1543648c5cbec1f6603f48a6091467976 |
Hashes for iota_sdk-2.0.0b1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1fab24af653f5fed9ce2e2103e231739500bc1894703b6fc98288ee8d620f6 |
|
MD5 | 9992e8ce3aa44d4e7f5a612ee567cd77 |
|
BLAKE2b-256 | d35f418683f351ef3633eba3915e1c1ba525d4fa755882cc6d77f17a542b7c09 |