BitPacket is a Python module to represent bit field structures in an easy object-oriented way. BitPacket provides three classes: BitField, BitStructure and BitVariableStructure which represent simple bit fields, and fixed and variable structures of bit fields respectively. BitStructure and BitVariableStructure are BitField themselves and all of them can be used together in order to build packets. That is, we can add any BitField subclass into a BitStructure or BitVariableStructure.
BitPacket uses the BitVector module for internal bit representation.
BitPacket is freely available for download under the terms of the GNU General Public License (GPL).
The latest version 0.1.0 (2007/06/10) can be found on
BitPacket is distributed using Distutils, so to install type (as root):
python setup.py install
BitPacket source code is stored in a Mercurial repository.
hg clone http://hg.hacks-galore.org/aleix/BitPacket
Browse the repository online.
Browse the documentation online.
You can reach the author at aleix ([at]) member ([dot]) fsf ([dot]) org.