devel/py-immutables 0.21 DragonFly
Immutable collections
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- APACHE20, MIT
- Categories
- devel, python
- Package size
- 42.4 KiB, 200.9 KiB installed
Description
An immutable mapping type for Python.
The underlying datastructure is a Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other functional languages. This implementation is used in CPython 3.7 in the contextvars module (see PEP 550 and PEP 567 for more details).
Immutable mappings based on HAMT have O(log N) performance for both set() and get() operations, which is essentially O(1) for relatively small mappings.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-immutables | 0.21 |
| FreeBSD | devel/py-immutables | 0.21 |
| NetBSD | misc/py-immutables | 0.21nb1 |
| HardenedBSD | devel/py-immutables | 0.21 |
| GhostBSD | devel/py-immutables | 0.21 |
Install
Binary package:
pkg install py311-immutables
From DPorts:
cd /usr/dports/devel/py-immutables && make install clean
Dependencies
Run dependencies 1
No port depends on this one.