Python binding to the iota.rs client library.
Rust and Cargo, to compile the binding. Install them here.
- Go to
iota.rs/bindings/python
python3 -m venv iota_client_venvsource iota_client_venv/bin/activate; Windows:.\iota_client_venv\Scripts\activate
pip install -r requirements-dev.txtpip install .
python3 examples/[example file]
Example:
python3 examples/00_get_info.py
deactivate
After you installed the library, you can create a IotaClient instance and interface with it.
from iota_client import IotaClient
# Create an IotaClient instance
client = IotaClient({'nodes': ['https://api.testnet.shimmer.network']})
# Get the node info
node_info = client.get_info()
print(f'{node_info}')pydoc-markdown -p iota_client > ../../../documentation/docs/libraries/python/api_reference.md