This replicates the functionality of the command-line crypto-rs module as a python module.
It uses the maturin and py03 crates for creating rust-implemented python modules.
Firstly, you need a working rust installation, and the crypto-rs repo installed alongside this one (i.e. both have same parent directory).
Then install the python dependencies (virtualenv recommended):
pip install maturin
Build locally:
maturin develop
Test:
pytest.py