unix_ar
This packages allows the reading and writing of AR archive files
.
It is inspired by the tarfile
and zipfile
that are part of Python's standard library (unfortunately the name arfile
was taken on PyPI).
Features
The package provides a ArFile
partially implementing the interface of
tarfile.TarFile
>>> import unix_ar
>>> import tarfile
>>> ar_file = unix_ar.open('mypackage.deb')
>>> tarball = ar_file.open('data.tar.gz/')
>>> tar_file = tarfile.open(fileobj=tarball)
>>> tar_file.extractfile('usr/local/mypackage/bin/mybinarycontent.sh')
Credits
This package was created by Remi Rampin, that does not want to maintain it anymore.