bitstring is a Python module that makes the creation, manipulation and analysis of binary data as simple and natural as possible. Bitstrings can be constructed from integers, floats, hex, octal, binary, bytes or files. They can also be created and interpreted using flexible format strings. Bitstrings can be sliced, joined, reversed, inserted into, overwritten, etc. with simple methods or using sli