./devel/py-bitarray, Efficient arrays of booleans

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.5.1, Package name: py39-bitarray-2.5.1, Maintainer: pkgsrc-users

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.


Master sites:

Filesize: 100.13 KB

Version history: (Expand)


CVS history: (Expand)


   2022-05-14 06:56:19 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.5.1

2.5.1:
* optimize `.reverse()`
* allow negative (byte) indices in `.bytereverse()`
   2022-05-10 15:01:05 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.5.0

2.5.0:
* add calculating of canonical Huffman codes `util.canonical_huffman()`
  and decoding thereof `util.canonical_decode()`
* allow creating "Huffman codes" from frequency maps with a single symbol
  in `util.huffman_code()` and `util.canonical_huffman()`
* allow bytes-like argument in `.frombytes()` and `.pack()` - previously,
  the arguments were limited to the `bytes` object
* allow bytes-like arguments in `util.deserialize()`
* add official [pyodide](https://pyodide.org/) support
* add [DEFLATE decompression](../examples/puff/) example
* optimize `.bytereverse()`
* optimize `delslice()` for cases like `del a[1:17:2]` when `a` is large
* fix `examples/huffman/compress.py` to handle files with 0 or 1 characters,
* add `skipIF` decorator for skipping tests
* add tests
   2022-04-03 15:56:18 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-bitarray: fix PLIST for python 2.7
   2022-03-30 09:22:20 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.4.1

2.4.1:
* improve `resize()`
* optimize `copy_n()` by avoiding loops
* `.bytereverse()` no longer sets unused bits to zero

2.4.0:
* enable building wheels for multiple platforms and Python versions using
  pypa/cibuildwheel
* use setuptools instead of distutils in `setup.py`
* add missing type hinting for `.count()` step argument
   2022-02-22 09:36:15 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.3.7

2.3.7:
* add optional step argument to `.count()` method
* add tests
   2022-02-08 09:54:22 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.3.6

2.3.6:
* add optional value parameter to `util.count_n()`
* determine machine endianness at build time when possible, by using
  the `PY_LITTLE_ENDIAN` macro, in order to optimize `shift_r8()`
* add official Python 3.11 support
   2022-01-19 18:50:48 by Thomas Klausner | Files touched by this commit (25)
Log message:
*: fix for python 3.x
   2022-01-14 18:52:07 by Thomas Klausner | Files touched by this commit (146)
Log message:
*: python2 egg files are back, add them to the PLISTs