Python bindings for Alloy's dyn-abi library.
- Initialize python env:
python -m venv .env - Active env:
source .env/bin/activate - Install
maturin:pip install maturin - Compile python package:
maturin develop(Note: For full performance check the Running The Benchmark instructions) - Run simple python example:
python py-test/decode.py
- To get the full performance compile the optimized build:
maturin build -r - This should generate a wheel under
target/wheelsof the repo, install the optimized build into your environment using (wheel file name may be different based on version and OS)pip install --force-reinstall target/wheels/py_alloy-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl - Run the benchmark
python py-test/bench.py