aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info')
-rw-r--r--.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/INSTALLER1
-rw-r--r--.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/METADATA99
-rw-r--r--.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/RECORD10
-rw-r--r--.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/WHEEL4
-rw-r--r--.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/licenses/LICENSE19
5 files changed, 133 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/INSTALLER b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/INSTALLER
new file mode 100644
index 00000000..a1b589e3
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/INSTALLER
@@ -0,0 +1 @@
+pip
diff --git a/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/METADATA b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/METADATA
new file mode 100644
index 00000000..795cd236
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/METADATA
@@ -0,0 +1,99 @@
+Metadata-Version: 2.4
+Name: rpds-py
+Version: 0.23.1
+Classifier: Development Status :: 3 - Alpha
+Classifier: Intended Audience :: Developers
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Rust
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
+License-File: LICENSE
+Summary: Python bindings to Rust's persistent data structures (rpds)
+Keywords: data structures,rust,persistent
+Author-email: Julian Berman <Julian+rpds@GrayVines.com>
+License: MIT
+Requires-Python: >=3.9
+Description-Content-Type: text/x-rst; charset=UTF-8
+Project-URL: Documentation, https://rpds.readthedocs.io/
+Project-URL: Homepage, https://github.com/crate-py/rpds
+Project-URL: Issues, https://github.com/crate-py/rpds/issues/
+Project-URL: Funding, https://github.com/sponsors/Julian
+Project-URL: Tidelift, https://tidelift.com/subscription/pkg/pypi-rpds-py?utm_source=pypi-rpds-py&utm_medium=referral&utm_campaign=pypi-link
+Project-URL: Source, https://github.com/crate-py/rpds
+Project-URL: Upstream, https://github.com/orium/rpds
+
+===========
+``rpds.py``
+===========
+
+|PyPI| |Pythons| |CI|
+
+.. |PyPI| image:: https://img.shields.io/pypi/v/rpds-py.svg
+ :alt: PyPI version
+ :target: https://pypi.org/project/rpds-py/
+
+.. |Pythons| image:: https://img.shields.io/pypi/pyversions/rpds-py.svg
+ :alt: Supported Python versions
+ :target: https://pypi.org/project/rpds-py/
+
+.. |CI| image:: https://github.com/crate-py/rpds/workflows/CI/badge.svg
+ :alt: Build status
+ :target: https://github.com/crate-py/rpds/actions?query=workflow%3ACI
+
+.. |ReadTheDocs| image:: https://readthedocs.org/projects/referencing/badge/?version=stable&style=flat
+ :alt: ReadTheDocs status
+ :target: https://referencing.readthedocs.io/en/stable/
+
+
+Python bindings to the `Rust rpds crate <https://docs.rs/rpds/>`_ for persistent data structures.
+
+What's here is quite minimal (in transparency, it was written initially to support replacing ``pyrsistent`` in the `referencing library <https://github.com/python-jsonschema/referencing>`_).
+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 <https://github.com/bowtie-json-schema/bowtie/blob/e77fd93598cb6e7dc1b8b1f53c00e5aa410c201a/implementations/python-jsonschema/Dockerfile#L1-L8>`_.
+
+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
+
diff --git a/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/RECORD b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/RECORD
new file mode 100644
index 00000000..5b729387
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/RECORD
@@ -0,0 +1,10 @@
+rpds/__init__.py,sha256=w3MgXW7lpTCICw0KXbw20QX573_kbsEnWIeMsCAugvM,99
+rpds/__init__.pyi,sha256=-hd1A1d1BqGxL3XZGI9SpW1-xZe2iJcDMU6CpiejgV4,2570
+rpds/__pycache__/__init__.cpython-312.pyc,,
+rpds/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+rpds/rpds.cpython-312-x86_64-linux-gnu.so,sha256=Qh9bUXMEyXgATTfV1vHaoEMnCV7hZeTbzPkvMRN7b9Y,1050112
+rpds_py-0.23.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
+rpds_py-0.23.1.dist-info/METADATA,sha256=Zd3laUKyXGhwvJ24nkirOpIcIsdC-rlgjpYfw5sInaw,4132
+rpds_py-0.23.1.dist-info/RECORD,,
+rpds_py-0.23.1.dist-info/WHEEL,sha256=9eG-9PXVCQLiac52aWp6XMAtXo7kmcaYenxGAZuDM9c,129
+rpds_py-0.23.1.dist-info/licenses/LICENSE,sha256=MU5Okb47qpPA-0vMyeTpfNZD64ObBlr5IXgsIXX-mQk,1057
diff --git a/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/WHEEL b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/WHEEL
new file mode 100644
index 00000000..889d7b1d
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/WHEEL
@@ -0,0 +1,4 @@
+Wheel-Version: 1.0
+Generator: maturin (1.8.2)
+Root-Is-Purelib: false
+Tag: cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64
diff --git a/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/licenses/LICENSE b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/licenses/LICENSE
new file mode 100644
index 00000000..119a1f20
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/rpds_py-0.23.1.dist-info/licenses/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2023 Julian Berman
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.