multiversx-sdk-core

Core components of the MultiversX Python SDK.


License
MIT
Install
pip install multiversx-sdk-core==0.8.0

Documentation

mx-sdk-py-core

Core components of the MultiversX Python SDK.

Distribution

  • GitHub: git+https://git@github.com/multiversx/mx-sdk-py-core.git@v{Version}#egg=multiversx_sdk_core
  • PyPi

Documentation

docs.multiversx.com

Development setup

Virtual environment

Create a virtual environment and install the dependencies:

python3 -m venv ./venv
source ./venv/bin/activate
pip install -r ./requirements.txt --upgrade

Install development dependencies, as well:

pip install -r ./requirements-dev.txt --upgrade

Above, requirements.txt should mirror the dependencies section of pyproject.toml.

If using VSCode, restart it or follow these steps:

  • Ctrl + Shift + P
  • Select Interpreter
  • Choose ./venv/bin/python.

Tests

Run the tests as follows:

pytest .

Linting

First, install pyright as follows:

npm install --global pyright

Run pyright:

pyright

Run flake8:

flake8 multiversx_sdk_core