Port variant | py310 |
Summary | Bindings to Rust persistent data structures (3.10) |
Package version | 0.10.3 |
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 | 22 SEP 2023, 22:57:13 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:standard python-maturin:single:py310 python-pip:single:py310 autoselect-python:single:standard |
Build and Runtime | python310:single:standard |
Runtime (only) | ravensys-gcc:libs:standard (single subpackage) |
main | mirror://PYPI/r/rpds-py |
cr01 | mirror://CRATES/archery:1.0.0 |
cr02 | mirror://CRATES/autocfg:1.1.0 |
cr03 | mirror://CRATES/bitflags:1.3.2 |
cr04 | mirror://CRATES/cfg-if:1.0.0 |
cr05 | mirror://CRATES/indoc:1.0.9 |
cr06 | mirror://CRATES/libc:0.2.147 |
cr07 | mirror://CRATES/lock_api:0.4.10 |
cr08 | mirror://CRATES/memoffset:0.9.0 |
cr09 | mirror://CRATES/once_cell:1.18.0 |
cr10 | mirror://CRATES/parking_lot:0.12.1 |
cr11 | mirror://CRATES/parking_lot_core:0.9.8 |
cr12 | mirror://CRATES/proc-macro2:1.0.66 |
cr13 | mirror://CRATES/pyo3:0.19.2 |
cr14 | mirror://CRATES/pyo3-build-config:0.19.2 |
cr15 | mirror://CRATES/pyo3-ffi:0.19.2 |
cr16 | mirror://CRATES/pyo3-macros:0.19.2 |
cr17 | mirror://CRATES/pyo3-macros-backend:0.19.2 |
cr18 | mirror://CRATES/quote:1.0.31 |
cr19 | mirror://CRATES/redox_syscall:0.3.5 |
cr20 | mirror://CRATES/rpds:1.0.1 |
cr21 | mirror://CRATES/scopeguard:1.1.0 |
cr22 | mirror://CRATES/smallvec:1.11.0 |
cr23 | mirror://CRATES/static_assertions:1.1.0 |
cr24 | mirror://CRATES/syn:1.0.109 |
cr25 | mirror://CRATES/target-lexicon:0.12.9 |
cr26 | mirror://CRATES/unicode-ident:1.0.11 |
cr27 | mirror://CRATES/unindent:0.1.11 |
cr28 | mirror://CRATES/windows-targets:0.48.1 |
cr29 | mirror://CRATES/windows_aarch64_gnullvm:0.48.0 |
cr30 | mirror://CRATES/windows_aarch64_msvc:0.48.0 |
cr31 | mirror://CRATES/windows_i686_gnu:0.48.0 |
cr32 | mirror://CRATES/windows_i686_msvc:0.48.0 |
cr33 | mirror://CRATES/windows_x86_64_gnu:0.48.0 |
cr34 | mirror://CRATES/windows_x86_64_gnullvm:0.48.0 |
cr35 | mirror://CRATES/windows_x86_64_msvc:0.48.0 |
python-jsonschema:py310 | Alternate implementation of JSON Schema (3.10) |
python-referencing:py310 | JSON Referencing + Python (3.10) |