py3-bitarray-3.8.0
efficiently handle arrays of Booleans
Back to search · Project homepage
Description
Bitarray 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 (endianness can be specified).
Methods for accessing the machine representation are provided, including
the ability to import and export buffers. This allows creating bitarrays
that are mapped to other objects, including memory-mapped files.
* Sequence methods: slicing (including slice assignment and deletion),
operations +, *, +=, *=, the 'in' operator, len()
* Bitwise operations: ~, &, |, ^, <<, >> (as well as their in-place
versions &=, |=, ^=, <<=, >>=).
* Fast methods for encoding and decoding variable bit length prefix codes.
* Bitarray objects support the buffer protocol
* Packing and unpacking to other binary data formats, e.g. numpy.ndarray.
* Pickling and unpickling of bitarray objects.
* Immutable frozenbitarray objects which are hashable
* Sequential search
Utility functions include conversion to/from hex strings and integers,
(de-)serialization, pretty printing, creating Huffman codes, compression
of sparse bitarrays, various count functions and more.
Package information
- Ports path
- devel/py-bitarray
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, lang/python
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Runtime
Build
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-setuptools py3-setuptools->=79v0
- devel/py-wheel
Test
Used by (4 dependency relationships)
Includes library, runtime, build and test relationships. Results load 100 at a time.