15 unstable releases (6 breaking)

0.7.3 Apr 5, 2024
0.7.2 Mar 10, 2024
0.7.1 Jan 24, 2024
0.6.1 Dec 24, 2023
0.3.3 Mar 21, 2023

#281 in Development tools

Download history 1/week @ 2023-12-25 3/week @ 2024-01-22 32/week @ 2024-02-19 16/week @ 2024-02-26 119/week @ 2024-03-04 78/week @ 2024-03-11 5/week @ 2024-03-18 127/week @ 2024-04-01 9/week @ 2024-04-08

142 downloads per month

MIT/Apache

4.5MB
91K SLoC

PyPi version crates.io minimum rustc 1.65 License License: MIT

DIDPPy -- Python Interface for DyPDL

DIDPPy is a Python interface for DyPDL, implemented in Rust with PyO3.

Docs

Quick Start

If you just want to use DIDPPy, install it from PyPI.

pip install didppy

There are some examples in examples.

Development

If you want to develop DIDPPy, clone this repository.

git clone https://github.com/domain-independent-dp/didp-rs
cd didp-rs/didppy

Create Python Environment

python3 -m venv .venv 
source .venv/bin/activate
pip install maturin

Build Development Version

maturin develop

didppy will be installed in .venv.

Run Test

cargo test --no-default-features
pytest

Build Documents

pip install -r docs/requirements.txt
sphinx-build docs docs/_build

Build Release Version

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).

pip install --force-reinstall ../target/wheels/didppy-{x}.whl

{x} depends on your environment.

Dependencies

~6–13MB
~134K SLoC