Very Low Activity

Project Summary

  Analyzed about 24 hours ago based on code collected about 24 hours ago.

bitstring is a pure Python module designed to help make the creation, manipulation and analysis of binary data as simple and natural as possible.

BitStrings can be constructed from integers (big and little endian), 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 replaced, 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 excellent code coverage is given by over 300 unit tests. It is available for Python 2.4 / 2.5 and for Python 2.6 / 3.x.

To get updates on new releases you can subscribe to the project on freshmeat.

NewsMarch 18th 2010: Version 1.3.0 for Python 2.6 and 3.x releasedFor details see the ReleaseNotes.

View the Documentation HereIt contains a walk-through of all the features and a complete reference section.

ExamplesCreation:

>>> a = BitString(bin='00101')
>>> b = BitString(a_file_object)
>>> c = BitString('0xff, 0b101, 0o65, uint:6=22')
>>> d = pack('intle:16, hex=a, 0b1', 100, a='0x34f')
>>> e = pack('>> c.delete(4, 12)See the Wiki and the user manual for more examples.

Share

In a Nutshell, python-bitstring...

 

Activity

30 Day Summary Apr 21 2013 — May 21 2013

12 Month Summary May 21 2012 — May 21 2013

  • 18 Commits Down -37 (67%) from previous 12 months
  • 1 Contributors Down 0 (0%) from previous 12 months

Community

Ratings

1 user rates this project:
5.0
 
5.0/5.0
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.