Crates.io | didppy |
lib.rs | didppy |
version | 0.8.0 |
source | src |
created_at | 2023-02-20 21:30:42.940145 |
updated_at | 2024-06-07 19:15:06.565259 |
description | Python interface for Dynamic Programming Description Language (DyPDL) and DyPDL solvers. |
homepage | https://didp.ai |
repository | https://github.com/domain-independent-dp/didp-rs |
max_upload_size | |
id | 790177 |
size | 1,862,258 |
DIDPPy is a Python interface for DyPDL, implemented in Rust with PyO3.
If you just want to use DIDPPy, install it from PyPI.
pip install didppy
There are some examples in examples
.
If you want to develop DIDPPy, clone this repository.
git clone https://github.com/domain-independent-dp/didp-rs
cd didp-rs/didppy
python3 -m venv .venv
source .venv/bin/activate
pip install maturin
maturin develop
didppy
will be installed in .venv
.
cargo test --no-default-features
pytest
pip install -r docs/requirements.txt
sphinx-build docs docs/_build
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.