<aside> 👨🏼‍💻 Python supports a range of types to store sequences. Bytes and bytearray objects contain single bytes.

</aside>

Support my work buying me a coffee ☕

Martí Grau is R&D and IA engineer


base64

This module provides functions for encoding binary data to printable ASCII characters and decoding such encodings back to binary data.

The interface supports:

# Example
import base64
encoded = base64.b64encode(b'data to be encoded')
encoded
b'ZGF0YSB0byBiZSBlbmNvZGVk'
data = base64.b64decode(encoded)
data
b'data to be encoded'

io (Core tools for working with streams)

The io module provides Python’s main facilities for dealing with various types of I/O.

Types:

Base casses: