BSD Ports

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

SystemPortVersion
DragonFlydevel/py-immutables0.21
FreeBSDdevel/py-immutables0.21
NetBSDmisc/py-immutables0.21nb1
HardenedBSDdevel/py-immutables0.21
GhostBSDdevel/py-immutables0.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.