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.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for unix_ar-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04cc6fbb249deaadc4d2c8e01449b99bef5c01a058865be88a7f7f3d4319dc91 |
|
MD5 | f3ebfd77574454f60cac00d20e3d581a |
|
BLAKE2b-256 | 175e7c88801fe977844d6d265017473ad85bf50bb2e8a56f5b25f89b0e55aa4d |