codemp/dist/py
2024-09-11 01:17:03 +02:00
..
src/codemp feat(python): build wheels with manual specified __init__.py 2024-09-10 19:09:54 +02:00
.python-version feat: added maturin wheel building config as completely separate "project", 2024-08-06 23:28:09 +02:00
pyproject.toml ci(python): bump and ci back to stable only 2024-09-11 01:17:03 +02:00
README.md docs: improved cargo docs, rewrote readme 2024-09-05 01:45:48 +02:00

Python bindings

Python allows directly importing properly formed shared objects, so the glue can live mostly on the Rust side.

Our Python glue is built with PyO3.

To get a usable shared object just cargo build --release --features=python, however preparing a proper python package to be included as dependency requires more steps.

PyPI

codemp is directly available on PyPI as codemp.

Building

To distribute the native extension we can leverage python wheels. It will be necessary to build the relevant wheels with maturin. After installing with pip install maturin, run maturin build to obtain an importable package.