CARVIEW |
python-bitstring
The bitstring module helps to make the creation and analysis of binary data in Python as painless as possible. BitString objects can be constructed from integers, hex, octal, binary, strings, or files. They can be sliced, joined, reversed, inserted into, overwritten, etc. with simple functions or slice notation. They can also be read from, searched, and navigated in, similar to a file or stream. Internally the data is efficiently stored as byte arrays, the module has been optimized for speed, and (almost) 100% code coverage is given by over 250 unit tests. It is available for Python 2.4, 2.5, and 2.6, with a separate version for Python 3.0.
Tags | Python Software Development Libraries Python Modules |
---|---|
Licenses | MIT/X |
Implementation | Python |
Recent releases
Changes: New flexible read and peek functions that can parse multiple elements in one statement. More flexibile initializations are possible through the 'auto' parameter. hex(), oct(), readue() and readse() have been removed. The default for the bytealigned parameter has been changed to False for all functions that use it.
Changes: A minor update. A new 'cut' function has been introduced to cut the BitString into equal chunks. The findall and split functions have had small interface changes, and a couple of minor bugs have been fixed.
Changes: The use of the step parameter (also known as the stride) in slices has been added. Its use is a little non-standard, as it effectively gives a multiplicative factor to apply to the start and stop parameters, rather than skipping over bits. A new option for the automatic initializer is to pass it a list or tuple. The items in the list or tuple are evaluated as booleans and the bits in the BitString are set to 1 for True items and 0 for False items.
Heartbeat
- Popularity Score
- 150.36
- Vitality Score
- 10.57
- Subscriptions
- 7