AR file handling
Project description
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/') # default interest location on .deb files
>>> tar_file = tarfile.open(fileobj=tarball) # handles gz decompression internally
>>> 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unix_ar-0.2.1.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for unix_ar-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acb718bc1308bf80e5b9da2614d8242cc2fe3be4cd8b2fd4719bce189aafcf1 |
|
MD5 | e814b1f9897472d2ab191c1b7c1f793a |
|
BLAKE2b-256 | b6a1847695f96c37cdd57233e6e0f76c4637332acb06a6e0258160f0062c1a85 |