Seamless reading of nested archives
Project description
Allows simplified access to files in nested archives.
Example
Given an archive placed in /tmp/foobar/foo.tar
with this structure:
foo.tar
- foo1
- foo2
- bar.tar
- bar1
- bar2
- foo3.tar.gz
- foo4
- foo5
- foo6.tar.gz
- foo7
- foo8
- abc/
- def
- ghi
This library will allow reading the contents of the files in this nested archive in the following "seamless" manner:
nestedarchive.get("/tmp/foobar/foo.tar/foo1")
nestedarchive.get("/tmp/foobar/foo.tar/abc/def")
nestedarchive.get("/tmp/foobar/foo.tar/bar.tar/bar1")
nestedarchive.get("/tmp/foobar/foo.tar/bar.tar/foo3.tar.gz/foo4")
Globs are also supported - all matches are tried until one is found that (eventually) contains the expected file, e.g.:
- nestedarchive.get("/tmp/foobar/foo.tar/bar.tar/foo*.tar.gz/foo7")
Will first silently try foo3.tar.gz
and fail because it does not contain foo7
, then it will try foo6.tar.gz
and
succeed because foo6.tar.gz
contains foo7
Currently supported extensions:
- tar
- tar.gz
Currently tested operating systems:
- linux
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nestedarchive-0.2.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for nestedarchive-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b098fd176716703acf6632789f4bea669fbe82346b7ed7b77dc34af20a9de269 |
|
MD5 | cfd8ecef7956e7cb0f39a2dac54fe9aa |
|
BLAKE2b-256 | c39529a9e00e739ef1cb3f01e80029afb230a0b0da927bd03427d2e74758200c |