DIDPPy is a Python interface for DyPDL, implemented in Rust with PyO3.
If you just want to use DIDPPy, install it from PyPI.
bash
pip install didppy
There are some examples in examples.
If you want to develop DIDPPy, clone this repository.
bash
git clone https://github.com/domain-independent-dp/didp-rs
cd didp-rs/didppy
bash
python3 -m venv .venv
source .venv/bin/activate
pip install maturin
bash
maturin develop
didppy will be installed in .venv.
bash
cargo test --no-default-features
pytest
bash
maturin build --release
This will create the Python wheel. Install the wheel in a Python environment you want to use (this should be different from .venv).
bash
pip install --force-reinstall ../target/wheels/didppy-{x}.whl
{x} depends on your environment.