BSD Ports

devel/py-bitarray 3.11.0 NetBSD

Efficient arrays of booleans

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
d24dd4b882
License
python-software-foundation
Categories
devel, python
Package size
294.7 KiB, 2203.1 KiB installed

Description

This module provides an object type which efficiently represents an array of booleans. Bitarrays are sequence types and behave very much like usual lists. Eight bits are represented by one byte in a contiguous block of memory. The user can select between two representations: little-endian and big-endian. All of the functionality is implemented in C. Methods for accessing the machine representation are provided. This can be useful when bit level access to binary files is required, such as portable bitmap image files (.pbm). Also, when dealing with compressed data which uses variable bit length encoding, you may find this module useful.

In the other systems

SystemPortVersion
NetBSDdevel/py-bitarray3.11.0
FreeBSDdevel/py-bitarray3.8.2
OpenBSDdevel/py-bitarray3.12.2
DragonFlydevel/py-bitarray2.8.1_1

Install

Binary package:

pkgin install py311-bitarray

From pkgsrc:

cd /usr/pkgsrc/devel/py-bitarray && make install clean

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-bitarray-3.11.0, py313-bitarray-3.11.0, py314-bitarray-3.11.0

Commit history 1

DateCommitCreditsLog message
d24dd4b882 adam py-bitarray: updated to 3.11.0
3.11.0 * add run-length codec: `util.rl_encode()` and `util.rl_decode()` * add `util.sc_stat()` * add [Comparison of bitarray codecs](codecs.rst) documentation * optimize sparse block selection for trailing zeros * preserve bitarrays when buffer reallocation fails * consistent input validation for large `util.sum_indices()` inputs * improve sparse-compression and debug-mode tests, including new tests for slice adjustment `adjust_slice()` * move private `sysinfo()` and `ssqi()` out of the top-level namespace