Skip to main content

AR file handling

Project description

unix_ar

PyPI version fury.io Build Status Read The Docs

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


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)

Uploaded Source

Built Distribution

unix_ar-0.2-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page