struct.unpack()

struct.unpack()

Unpack the string containing packed C structure data, according to fmt. Requires len(string) == calcsize(fmt).