Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python binding to the iota-sdk library.
Rust
and Cargo
to compile the binding. Install
them here.(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
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
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
The following example will create a new Wallet Account using a StrongholdSecretManager, and then print the account's information.
examples/wallet/getting_started.py
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]
[example file]
is the file name from the example folder. For example:python3 examples/client/00_get_info.py
You can find the API reference for the Python bindings in the IOTA Wiki.
To learn more about Rust, see the Rust documentation.
FAQs
Python bindings for the IOTA SDK library
We found that iota-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.