Multi-format archive library based on libarchive . Forked from pyarchive
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 !
- (wheels) Upgrade bundled libarchive to v3.6.1
- Fix SIGSEGV when received ARCHIVE_FATAL error
- (wheels) Upgrade bundled libarchive to v3.4.3
- (wheels) Upgrade bundled libarchive to v3.4.1
- Add support for libarchive's
ARCHIVE_FAILED
error - use PyMem_Malloc & PyMem_Free instead of alloca
- Fix binary wheels for macOS
- 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