Metadata-Version: 2.4
Name: unix_ar
Version: 0.2.1
Summary: AR file handling
Home-page: https://github.com/getninjas/unix_ar
Author: Remi Rampin
Author-email: remirampin@gmail.com
Maintainer: Alan Justino
Maintainer-email: alan.justino@yahoo.com.br
License: BSD
Keywords: ar,archive,unix,deb
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: System :: Archiving
Classifier: Topic :: Utilities
Requires-Python: ~=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: requires-python
Dynamic: summary

unix_ar
=======

[![PyPI version](https://badge.fury.io/py/unix-ar.svg)](https://pypi.python.org/pypi/unix_ar/)
[![Build Status](https://travis-ci.com/getninjas/unix_ar.svg?branch=master)](https://travis-ci.org/getninjas/unix_ar)
[![Read The Docs](https://readthedocs.org/projects/unix_ar/badge/?version=latest)](https://unix_ar.readthedocs.io/en/latest/?badge=latest)


This packages allows the reading and writing of [`AR archive files`](https://en.wikipedia.org/wiki/Ar_(Unix)).

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`](https://docs.python.org/3/library/tarfile.html#tarfile-objects)

```python
>>> 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.
