Python Struct Unpack String, … The Python struct module is used to create and pull packed binary data from strings.