skip to navigation
skip to content

dirstore 0.1.0

dirstore - generic access to archive formats

This module provides a generic object (DirStore) to access files stored in a directory, tar, rar, or zip archive. You can read data from the archive as a string or a file-like object without worrying about the underlying archive format.

It also provides a MetaStore object which contains multiple DirStores, but acts as a single one. When a name is requested from a MetaStore it returns the first object it finds in its stores with that name.

It supports the following formats:
(This information is inaccurate if dirstore is not currently in use)
- Directories in a local filesystem hierarchy. (Enabled)
- ZIP compressed archives. (Enabled)
- Tar compressed archives (gzip or bzip2). (Enabled)
- RAR archives. (Enabled)
Note that RAR support comes via your unrar binary and popen,
and so can be very fragile. The RAR format is not recommended.