BSD Ports

devel/py-bitarray 2.8.1_1 DragonFly

Efficient arrays of booleans

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PSFL
Categories
devel, python
Package size
234.7 KiB, 1748.3 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 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.

In the other systems

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

Install

Binary package:

pkg install py311-bitarray

From DPorts:

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

Dependencies

Run dependencies 1