Python

SmashTable for Python

pip install smashtable 1.0.0-rc.1 · c4d34add

Topics

Quickstart1The wheel ships type stubs, so an editor completes the container methods and a checker rejects a misspelled isolation level or key layout before the call ever runs.
Containers48SortedMap and SortedSet keep their keys in order, which is what iteration, scan and slice erase rest on.
Transactions18watch makes a transaction fail rather than overwrite a key someone else touched first.
Isolation1
Stored TypesValues are int, float, bool, str and bytes, deep-copied into memory the library owns, so a stored value outlives the object it came from.