rpds-py

Python bindings to Rust's persistent data structures library

brewmacoslinux
Try with needOr install directly
Source

About

Python bindings to Rust's persistent data structures

Commands

rpds-py

Examples

Import and use persistent list in Python code$ python -c "from rpds import List; lst = List([1, 2, 3]); print(lst.push_front(0))"
Create and manipulate persistent map with immutable semantics$ python -c "from rpds import Map; m = Map({'a': 1}); m2 = m.insert('b', 2); print(m2)"
Use persistent vector for efficient structural sharing$ python -c "from rpds import Vector; v = Vector([1, 2, 3]); v2 = v.push(4); print(len(v2))"