Is there a Python library that packs binary data into one file?

Larry Bates lbates at swamisoft.com
Mon Apr 26 17:46:42 EDT 2004


zipfile.py works pretty well and you get compression
as well.

Larry Bates
Syscon, Inc.

"Jacob H" <jacobsmail at postmark.net> wrote in message
news:85b54e91.0404261301.69d5c1e9 at posting.google.com...
> Hello all,
>
> Today I began writing a utility script that takes given binary files
> and puts them all into one datafile. My idea is to be able to access
> any binary data I want by indexing the datafile, e.g.
> wanted_image_data = datafileobj[IMAGE_DATA]. The purpose is to hide
> external image files from the user in a simple game I'm writing.
>
> Though I have a good idea of how to implement this, before I begin I
> am curious to know if some Python master out there has already come
> out with a library that does the same. Anyone? :)





More information about the Python-list mailing list