Efficient Arrays of Booleans

Edit Package python-bitarray
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.

Refresh
Refresh
Source Files
Filename Size Changed
bitarray-3.0.0.tar.gz 0000177808 174 KB
python-bitarray.changes 0000023815 23.3 KB
python-bitarray.spec 0000002479 2.42 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1218794 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 28)
- update to 3.0.0:
  * see Bitarray 3 transition
  * remove Python 2.7 support
  * .decode() now returns iterator (equivalent to past
    .iterdecode())
  * .search() now returns iterator (equivalent to past
    .itersearch())
  * remove .iterdecode() and .itersearch()
  * remove util.rindex(), use .index(..., right=1) instead,
    deprecated since 2.9
  * remove util.make_endian(), use bitarray(..., endian=...)
    instead, deprecated since 2.9
  * remove hackish support for bitarray() handling unpickling,
    see detailed explaination in #207 - closes #206
  * add official Python 3.13 support
  * update cibuildwheel to 2.21.3
  * minor simplifications
  * fix some typos
Comments 0
openSUSE Build Service is sponsored by