/mx-sdk-erdpy-core

Core components of erdpy.

Primary LanguagePythonMIT LicenseMIT

sdk-erdpy-core

Core components of erdpy.

Distribution

  • GitHub: git+https://git@github.com/ElrondNetwork/mx-sdk-erdpy-core.git@v{Version}#egg=erdpy_core
  • PyPi

Documentation

docs.elrond.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 erdpy_core