Binary Data Services#
The modules described in this chapter provide some basic services operations for manipulation of binary data. Other operations on binary data, specifically in relation to file formats and network protocols, are described in the relevant sections.
In addition, see the documentation for Python’s built-in binary data types in Binary Sequence Types — bytes, bytearray, memoryview.
struct— Interpret bytes as packed binary data
codecs— Codec registry and base classes
- Codec Base Classes
- Encodings and Unicode
- Standard Encodings
- Python Specific Encodings
encodings.idna— Internationalized Domain Names in Applications
encodings.mbcs— Windows ANSI codepage
encodings.utf_8_sig— UTF-8 codec with BOM signature