Multi-format archive library based on libarchive
Project description
Archi
Multi-format archive library based on libarchive . Forked from pyarchive
Usage
import archi
with open("test.tgz", "rb") as f:
archive = archi.Archive(f)
for file in archive:
print(file.filename)
print(file.read())
Keep in mind that you can't store Entry
s, they're freed as soon as the loop moves on to the next or ends. So this won't do:
archi = archi.Archive('file.zip')
files = [f for f in archi]
files[0].filename # Address boundary error !
TODO
- compression
- build wheels for Windows: https://discuss.python.org/t/need-auditwheel-like-utility-for-other-platforms/2028 , https://discuss.python.org/t/packaging-dlls-on-windows/1401
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
archi-0.1.0.zip
(54.4 kB
view hashes)
Built Distributions
Close
Hashes for archi-0.1.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7b7b19dfc9ab563a51c7caf7e7981780d7754ac2be71b3f31c3258c0a59796 |
|
MD5 | 64b5f70ff3b2826331594542667f6ee6 |
|
BLAKE2b-256 | b2ec67012c4a8106174a17f057a24adec05549282d157af5fca939ef53107d7e |
Close
Hashes for archi-0.1.0-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b78aa44b552e747b0b8ad313dbe8846bc3392324c9446e85f3b08be0c577b11 |
|
MD5 | 61f7794c469bb62d6c45d91acee2a4eb |
|
BLAKE2b-256 | 5cd77e3bdcec4aabacd46ebd67e66ec635d7a4f451c16fb6f01b9caca7114f28 |
Close
Hashes for archi-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2263e30d31c06ccec5a61b614801c0c17719caeccbbcea084b8b9b845f45fb |
|
MD5 | f2914fb2628777dd9e098bdf98aaf6db |
|
BLAKE2b-256 | 17d6b14b7956dcd7e01ca49111806a86080ef127d96491e6d963157b19dd4cfa |
Close
Hashes for archi-0.1.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c270ce6ad7da8e830d8d84cc8157f3abe4138215463342b1ac9de9f2b1ca34 |
|
MD5 | 835400f5d782429cef2fb004f22a3bb7 |
|
BLAKE2b-256 | 23b26f146c342aff77ed405b216f5b5ccfc2aed6bae64265c2354cb44addc64d |
Close
Hashes for archi-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3518dbc4d5150725ad9389d99d747c301a7db7aa86f7ba31d90959cb0e33f8d |
|
MD5 | 07e49fb423a8b3c63d2f90966220f828 |
|
BLAKE2b-256 | 00695c52e667a6eb58d08372a6147fdd08011c00b90231c34d55429ec64c21b4 |
Close
Hashes for archi-0.1.0-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc0b8d04fadb9fe41434049ffca1f5108fc8e41cd4b0b0f8f0aca23a9d20de2 |
|
MD5 | 36a6cd44ba0609b0e834e42664da9f70 |
|
BLAKE2b-256 | 45b4e30cda46d1e1757a0cf81ddbdaffb9ce7a08ee893637c29c7dd2a5965ca5 |
Close
Hashes for archi-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d4e8be541eb9138da47d7926b802380cd33ca75706c46f489b2070a8a21654 |
|
MD5 | ab31a16490b8a1a89551e6c1a84fddd9 |
|
BLAKE2b-256 | ef3e0c2b2235a1b92434c9d60a23afa390970c81c88d95468ac89cd4b06d5d1b |
Close
Hashes for archi-0.1.0-cp35-cp35m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee16e55baf67fc4c2ed899aeec3604212b1dcf33a9d268c93b02d611b1a05b8 |
|
MD5 | 3bd67dc5ee6aec6181034aef6a092fde |
|
BLAKE2b-256 | e91d1019f2e9567b3c5cdd72871543dea554132c89fbec1fe3d62986c18c47e9 |