Efficient Arrays of Booleans
https://github.com/ilanschnell/bitarray
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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP4:FactoryCandidates/python-bitarray && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
bitarray-2.7.0.tar.gz | 0000167184 163 KB | |
python-bitarray.changes | 0000017812 17.4 KB | |
python-bitarray.spec | 0000002517 2.46 KB |
Revision 14 (latest revision is 26)
Dominique Leuenberger (dimstar_suse)
accepted
request 1064212
from
Dirk Mueller (dirkmueller)
(revision 14)
- update to 2.7.0: * add util.sc_encode() and util.sc_decode() for compression of sparse bitarrays * add util.any_and() * add util.intervals() * move functionality of the following utility functions entirely to C: hex2ba(), base2ba(), deserialize(), vl_decode(), zeros() * improve error checking for unpickling * add distance metrics
Comments 0