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 Entrys, 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 !
Changelog
v0.2.3
- (wheels) Upgrade bundled libarchive to v3.4.3
v0.2.2
- (wheels) Upgrade bundled libarchive to v3.4.2
- (wheels) Build macOS wheels on macOS 10.14 (https://github.com/whtsky/archi/pull/6)
v0.2.1
- (wheels) Upgrade bundled libarchive to v3.4.1
v0.2.0
- Add support for libarchive's
ARCHIVE_FAILEDerror - use PyMem_Malloc & PyMem_Free instead of alloca
v0.1.1
- Fix binary wheels for macOS
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archi-0.2.3.tar.gz.
File metadata
- Download URL: archi-0.2.3.tar.gz
- Upload date:
- Size: 52.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f70f7f3dfcd1ecc82101f475d8a68550637b70205c48f08405c1489ae5fba5e
|
|
| MD5 |
f2736dd5556388fe51e459c961d64078
|
|
| BLAKE2b-256 |
535243e765a975eb5735a21a0704c72d210e738b0ab02c1edc0dcbba52f700fe
|
File details
Details for the file archi-0.2.3-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: archi-0.2.3-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4e08ff13877d53d9ea33d9a6d2d3c0c072a81f97c430dbbb0c750749fc50c19
|
|
| MD5 |
e8ec3603f130e9a9a924991b4c28d3bd
|
|
| BLAKE2b-256 |
8405f6320ec8cc4728570c7ea638e4eb0a251976b2bccd8439177ac335190037
|
File details
Details for the file archi-0.2.3-cp38-cp38-manylinux2010_i686.whl.
File metadata
- Download URL: archi-0.2.3-cp38-cp38-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
982325df90a18f995870d0da1d18934d8f93d6e8289a812420d3cd51cad48a53
|
|
| MD5 |
7b8c33c4d2c0e99b30f3457b5f0b1344
|
|
| BLAKE2b-256 |
60731d4c7ca269576b9517deb8663375e4250fcc5a53ac328d1ab6d039544c0e
|
File details
Details for the file archi-0.2.3-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: archi-0.2.3-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 808.4 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9da8c8348eec37f3ea70650397326518a4aed7f46f7de055336a2690c6a58ad
|
|
| MD5 |
49681ea906c1561ba1ba24cc3ef44e49
|
|
| BLAKE2b-256 |
b94041a8d98dae51b5597c18a3eb051030003daf667130a804c9dd64e6b09e0e
|
File details
Details for the file archi-0.2.3-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: archi-0.2.3-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cc86982800a1ac07be3254570243651a0eed5051568b082146568f464b3d954
|
|
| MD5 |
054ccade837d95a5f7efda2b6bcf0ac3
|
|
| BLAKE2b-256 |
fed5490afc1d6e6950bf03c2958c7fdc8586769d07edcb9b5fdcd65ce7baffe7
|
File details
Details for the file archi-0.2.3-cp37-cp37m-manylinux2010_i686.whl.
File metadata
- Download URL: archi-0.2.3-cp37-cp37m-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
271dfb919a1f8124cf461cd19939be34f1474cd81dedcfddbdfef1953c8e02d3
|
|
| MD5 |
6d3be48595eaad49d2851e22cc34f3c8
|
|
| BLAKE2b-256 |
f69c28fbd8d8cdd1556d17f45d312ed351f11625d43ecf533d39ed5641111e31
|
File details
Details for the file archi-0.2.3-cp37-cp37m-macosx_10_6_intel.whl.
File metadata
- Download URL: archi-0.2.3-cp37-cp37m-macosx_10_6_intel.whl
- Upload date:
- Size: 840.3 kB
- Tags: CPython 3.7m, macOS 10.6+ Intel (x86-64, i386)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59421182da128abacb26012f2601f1bdc868f2ed024f12f334ee6e2f0a2f17a6
|
|
| MD5 |
763db8349a4d7e19360f7645dd22f041
|
|
| BLAKE2b-256 |
5742be4fefbb4fd7b5bff0afbcaa2afd5443ae685e74e9c9148c41b37a50dc0e
|
File details
Details for the file archi-0.2.3-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: archi-0.2.3-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a63233723bebfd477b4617e13a59788d156d2cbd5b54a0baf52dea384b2e9d4f
|
|
| MD5 |
ee19e183e4ea12259085b210523be64a
|
|
| BLAKE2b-256 |
878f20c9ed57fbc8cdd06f10177342abd2696e1b0b894b4584a6c04dc5dcd4f3
|
File details
Details for the file archi-0.2.3-cp36-cp36m-manylinux2010_i686.whl.
File metadata
- Download URL: archi-0.2.3-cp36-cp36m-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82b280d34b2b398ba9ded29444d9b2ea0046980927589b6908a9a61a4167c03d
|
|
| MD5 |
0364c742b352ed969e9c5a9171d05200
|
|
| BLAKE2b-256 |
c9f258e37612c6aad0bca1c2bd7dbafe4b817b1c0ad9b830e47aa5a48f3acae1
|
File details
Details for the file archi-0.2.3-cp36-cp36m-macosx_10_6_intel.whl.
File metadata
- Download URL: archi-0.2.3-cp36-cp36m-macosx_10_6_intel.whl
- Upload date:
- Size: 842.1 kB
- Tags: CPython 3.6m, macOS 10.6+ Intel (x86-64, i386)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76b1de7f06d279eb66ff2888f018cdc9af0ce6249e9257362cf8a538d1bdf878
|
|
| MD5 |
d9e3415faa2115e3e10fc87ba0644bd6
|
|
| BLAKE2b-256 |
88127ca13b748945a4594ce0ed1c1f1aa60ffeab6314f149c84a59deb8fecd4c
|
File details
Details for the file archi-0.2.3-cp35-cp35m-manylinux2010_x86_64.whl.
File metadata
- Download URL: archi-0.2.3-cp35-cp35m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f73bdb6e66a5e333446bbc2d865c233f6f62ce5e1436a8f9a7c8ce290ad978fc
|
|
| MD5 |
2a415470104949b4e4dde9d4ad5c8154
|
|
| BLAKE2b-256 |
3f0de227649ee23d5114319ff007e79eb8962b18810bb164358d8881bb90de44
|
File details
Details for the file archi-0.2.3-cp35-cp35m-manylinux2010_i686.whl.
File metadata
- Download URL: archi-0.2.3-cp35-cp35m-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1e85b1f07f2e5f9658295a59eb73533816b94552b05bdd0250303ecee9303c0
|
|
| MD5 |
083adf6a490a0764ab1891160555fd0c
|
|
| BLAKE2b-256 |
5ecd189cc1c2188b443293b35d0b0aa47b375cf5dd18bdb0451825de4235f266
|
File details
Details for the file archi-0.2.3-cp35-cp35m-macosx_10_6_intel.whl.
File metadata
- Download URL: archi-0.2.3-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 839.2 kB
- Tags: CPython 3.5m, macOS 10.6+ Intel (x86-64, i386)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8859d127cb2e9cce61290f311758192e141c3978eecd9af76517076652036fc8
|
|
| MD5 |
ecb81057286d4f4576f4393f2e8a58b8
|
|
| BLAKE2b-256 |
464c8f0654f0b2faccf031ac27f12090e5d10af612252a958eedb4f5eef35ea7
|