Python Forum

Full Version: tools for writing and reading binary data in files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if i just ask for tools to read and write binary files i'm sure people will point me to including the 'b' option when opening the file. i already know about that. what i really am looking for are tools to construct and interpret binary data in both definitive forms and dynamic forms. in some cases such data may also be encoded (not really binary in the file in most cases, such as hex encoding) and/or compressed. and sometimes the data may include subchannel streams that also need to be constructed or interpreted.

i could build all this code myself. i understand binary forms (have programmed in Assemply and C since 1973 and 1982). but that would take a lot of time.

what i am asking for are suggestions of good libraries and modules for constructing and interpreting binary files, streams, and buffers that can work in Python 3.6.