FreeBSD.software
Home/devel/py311-bitarray

py311-bitarray

3.0.0devel

Efficient arrays of booleans

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 contiguous block of memory. The user can select between two representations; little-endian and big-endian. Most 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.

$pkg install py311-bitarray
pypi.org/project/bitarray
Origin
devel/py-bitarray
Size
1.69MiB
License
PSFL
Maintainer
sbz@FreeBSD.org
Dependencies
1 packages
Required by
2 packages

Dependencies (1)

Required By (2)