BSD Ports

misc/py-immutables 0.21nb1 NetBSD

Immutable collections

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
apache-2.0
Categories
misc, python
Package size
45.4 KiB, 201.4 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
NetBSDmisc/py-immutables0.21nb1
DragonFlydevel/py-immutables0.21

Install

Binary package:

pkgin install py311-immutables

From pkgsrc:

cd /usr/pkgsrc/misc/py-immutables && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.21nb1
NetBSD 10.1 aarch640.21nb1
SmartOS / illumos x86_640.21nb1
macOS 15 arm640.21nb1

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-immutables-0.21nb1, py313-immutables-0.21nb1, py314-immutables-0.21nb1