bitstring
A Python module to help you manage your bits
A sleek Python library for binary data: fast bit arrays, bitfields and bitsets.
A Python library for creating and parsing binary formats.