Use structs in Python (almost) like C If your project requires extensive read/write of binary data then structify is for you.