Port variant | v12 |
Summary | Bindings to Rust persistent data structures (3.12) |
BROKEN | |
Package version | 0.20.0 |
Homepage | https://github.com/crate-py/rpds |
Keywords | python |
Maintainer | Python Automaton |
License | MIT |
Other variants | v11 |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 09 SEP 2024, 22:41:03 UTC |
Port created | 07 JUL 2023, 18:56:52 UTC |
single | =========== ``rpds.py`` =========== |PyPI| |Pythons| |CI| Python bindings to the Rust rpds crate. What's here is quite minimal (in transparency, it was written initially to support replacing pyrsistent in the [referencing library]). If you see something missing (which is very likely), a PR is definitely welcome to add it. Installation ------------ The distribution on PyPI is named ``rpds.py`` (equivalently ``rpds-py``), and thus can be installed via e.g.: .. code:: sh $ pip install rpds-py Note that if you install ``rpds-py`` from source, you will need a Rust toolchain installed, as it is a build-time dependency. An example of how to do so in a Dockerfile can be found [here]. If you believe you are on a common platform which should have wheels built (i.e. and not need to compile from source), feel free to file an issue or pull request modifying the GitHub action used here to build wheels via maturin. Usage ----- Methods in general are named similarly to their rpds counterparts (rather than pyrsistent\ 's conventions, though probably a full drop-in pyrsistent\ -compatible wrapper module is a good addition at some point). .. code:: python >>> from rpds import HashTrieMap, HashTrieSet, List >>> m = HashTrieMap({"foo": "bar", "baz": "quux"}) >>> m.insert("spam", 37) == HashTrieMap({"foo": "bar", "baz": "quux", "spam": 37}) True >>> m.remove("foo") == HashTrieMap({"baz": "quux"}) True >>> s = HashTrieSet({"foo", "bar", "baz", "quux"}) >>> s.insert("spam") == HashTrieSet({"foo", "bar", "baz", "quux", "spam"}) True >>> s.remove("foo") == HashTrieSet({"bar", "baz", "quux"}) True >>> L = List([1, 3, 5]) >>> L.push_front(-1) == List([-1, 1, 3, 5]) True >>> L.rest == List([3, 5]) True |
Build (only) |
rust:single:std python-maturin:single:v12 python-pip:single:v12 python312:dev:std autoselect-python:single:std |
Build and Runtime | python312:primary:std |
Runtime (only) | ravensys-gcc:libs:std (single subpackage) |
main | mirror://PYPI/r/rpds-py |
cr01 | mirror://CRATES/archery:1.2.0 |
cr02 | mirror://CRATES/autocfg:1.3.0 |
cr03 | mirror://CRATES/cc:1.0.90 |
cr04 | mirror://CRATES/cfg-if:1.0.0 |
cr05 | mirror://CRATES/heck:0.5.0 |
cr06 | mirror://CRATES/indoc:2.0.5 |
cr07 | mirror://CRATES/libc:0.2.155 |
cr08 | mirror://CRATES/memoffset:0.9.1 |
cr09 | mirror://CRATES/once_cell:1.19.0 |
cr10 | mirror://CRATES/portable-atomic:1.6.0 |
cr11 | mirror://CRATES/proc-macro2:1.0.86 |
cr12 | mirror://CRATES/pyo3:0.22.2 |
cr13 | mirror://CRATES/pyo3-build-config:0.22.2 |
cr14 | mirror://CRATES/pyo3-ffi:0.22.2 |
cr15 | mirror://CRATES/pyo3-macros:0.22.2 |
cr16 | mirror://CRATES/pyo3-macros-backend:0.22.2 |
cr17 | mirror://CRATES/python3-dll-a:0.2.10 |
cr18 | mirror://CRATES/quote:1.0.36 |
cr19 | mirror://CRATES/rpds:1.1.0 |
cr20 | mirror://CRATES/static_assertions:1.1.0 |
cr21 | mirror://CRATES/syn:2.0.69 |
cr22 | mirror://CRATES/target-lexicon:0.12.14 |
cr23 | mirror://CRATES/triomphe:0.1.13 |
cr24 | mirror://CRATES/unicode-ident:1.0.12 |
cr25 | mirror://CRATES/unindent:0.2.3 |
python-jsonschema:v12 | Alternate implementation of JSON Schema (3.12) |
python-referencing:v12 | JSON Referencing + Python (3.12) |