Projects / python-bitstring

python-bitstring

bitstring is a Python module that helps to make the creation and analysis of binary data as simple and natural as possible. Objects can be constructed from integers (big and little endian), floats, hex, octal, binary, byte data, iterables, or files. They can be sliced, joined, reversed, packed, unpacked, inserted into, overwritten, and otherwise operated upon with simple functions or slice notation. They can also be parsed, searched, and navigated in, similar to a file or stream. Internally the data is efficiently stored as byte arrays. It is available for Python 2.6 and later (including Python 3).

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  19 Apr 2013 21:52

Release Notes: This release has a fix for a problem where unpacked bytes could be eight times too long.

  •  22 Mar 2013 21:24

Release Notes: This release fixes a bug in which bitstrings could be modified by being used in an append.

  •  28 Feb 2013 14:02

Release Notes: This is a minor update that contains a couple of new features and a few bugfixes. A new 'pad' token is introduced for skipping unwanted bits, and clear and copy methods have been added to mutable classes.

  •  09 Feb 2012 22:31

Release Notes: This is a minor update that contains a few bugfixes.

  •  21 Nov 2011 15:50

Release Notes: This is a major update which breaks compatibility in a couple of areas. It removes the leading 0x, 0o, 0b for hex, oct, and bin properties, renames ConstBitArray to Bits, changes stepping in slices to a more conventional meaning, and adds a new readto method.

Screenshot

Project Spotlight

AjaXplorer

A Web-based file explorer with a rich GUI.

Screenshot

Project Spotlight

jDependency

An API and application for analyzing Java package dependencies.