bitstring · PyPI
https://pypi.org/project/bitstring20.07.2021 · bitstring is a pure Python module designed to help make the creation 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.