Build Status Crates.io PyPI

Python Wrapper for Rust Persistent Data Structures

pyrpds is a library which provides CPython bindings to Rust's rpds library.

The project has 2 goals: - Allow packages that are built on top of rpds to expose Python bindings easily. - Provide faster drop-in replacements for pyrsistent data structures.

Python API will be exactly the same as pyrsistent API.

Installation Instructions

For Users

Python

bash pip install pyrpds

Rust

Add following lines to Cargo.toml: toml [dependencies.pyrpds] version = "0.0.1"

For Contributors

Installing Dependencies

Install Rust and Conda.

Installing nightly Rust

bash rustup install nightly rustup override set nightly

Installing Conda environment

bash conda env create -f environment.yaml

Installing pyrpds

bash conda activate pyrpds maturin build

Testing pyrpds

bash conda activate pyrpds pytest