ppc64le/linux/: rpds-py-0.22.3+ppc64le1 metadata and description

Simple index

Python bindings to Rust's persistent data structures (rpds)

author_email Julian Berman <[email protected]>
classifiers
  • Development Status :: 3 - Alpha
  • Intended Audience :: Developers
  • License :: OSI Approved :: MIT License
  • Operating System :: OS Independent
  • Programming Language :: Rust
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: Implementation :: CPython
  • Programming Language :: Python :: Implementation :: PyPy
  • Environment :: MetaData :: IBM Python Ecosystem
description_content_type text/x-rst; charset=UTF-8
keywords data structures,rust,persistent
license_file
  • LICENSE
project_urls
  • Documentation, https://rpds.readthedocs.io/
  • Funding, https://github.com/sponsors/Julian
  • Homepage, https://github.com/crate-py/rpds
  • Issues, https://github.com/crate-py/rpds/issues/
  • Source, https://github.com/crate-py/rpds
  • Tidelift, https://tidelift.com/subscription/pkg/pypi-rpds-py?utm_source=pypi-rpds-py&utm_medium=referral&utm_campaign=pypi-link
  • Upstream, https://github.com/orium/rpds
requires_python >=3.9
File Tox results History
rpds_py-0.22.3+ppc64le1-cp311-cp311-manylinux_2_34_ppc64le.whl
Size
489 KB
Type
Python Wheel
Python
3.11
rpds_py-0.22.3+ppc64le1-cp312-cp312-manylinux_2_34_ppc64le.whl
Size
488 KB
Type
Python Wheel
Python
3.12
rpds_py-0.22.3+ppc64le1-cp39-cp39-manylinux_2_34_ppc64le.whl
Size
489 KB
Type
Python Wheel
Python
3.9

PyPI version Supported Python versions Build status

Python bindings to the Rust rpds crate for persistent data structures.

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.:

$ 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).

>>> 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

Export Classification Notice

The software hosted on this website consists of publicly available open‑source packages. To the extent U.S. export regulations apply, software that is publicly available as described in 15 C.F.R. §§ 734.7 (for non-encryption software) or 742.15(b) (for encryption software) is not subject to the Export Administration Regulations (EAR). Users are responsible for complying with all applicable export laws and regulations.