rpds-py

0.30.0 · active · verified Sat Mar 28

rpds-py provides Python bindings to Rust's persistent data structures (rpds), offering immutable collections with efficient structural sharing. The current version is 0.30.0, released on March 28, 2026. The library has a regular release cadence, with multiple updates per year.

Warnings

Install

Imports

Quickstart

Demonstrates creating a HashTrieMap, inserting a key-value pair, and retrieving a value.

from rpds import HashTrieMap

# Create an empty HashTrieMap
map = HashTrieMap()

# Insert a key-value pair
map = map.set('key', 'value')

# Retrieve a value
value = map.get('key')
print(value)  # Output: 'value'

view raw JSON →