MagicStack/immutables
A high-performance immutable mapping type for Python. observed · 2026-08-28
Health v2 · maintenance only
33/100
- Activity 22
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3078
- days_rel: 693
- days_push: 470
- n_releases_24m: 1
Adoption not part of the score
1204 stars · 59 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A high-performance immutable mapping type for Python based on a Hash Array Mapped Trie (HAMT). It is the implementation used in CPython's contextvars module and offers O(log N) set/get operations with hashable, pickleable Map objects.
Use cases
- immutable dictionary for python
- hamt mapping implementation
- hashable frozen mapping type
- efficient copy-on-write dict alternative
- immutable data structures for functional python
- thread-safe immutable map
When to choose
- you need immutable, hashable mappings with fast O(log N) updates
- you want efficient structural sharing instead of dict copy-on-write
- you need bulk mutation APIs that produce new derived maps
When to avoid
- you only need plain mutable dicts
- you need immutable lists or sets rather than mappings
- you require strict O(1) updates for very large mappings
Facets
library · maturity stable
serialization concurrency programming-languages developer-tools python cross-platform immutable-collections hamt functional-datastructures persistent-data-structures cpython algorithms
1 source
- readme: https://github.com/MagicStack/immutables · fetched 2026-08-28 · e5decdfa08c3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MagicStack/immutables | main | 33 |
For agents
markdown · JSON · MCP: product_card(name="MagicStack/immutables")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem