unix-ar-0.2.1
توضیحات
AR file handling
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | unix-ar-0.2.1 |
| نام | unix-ar |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | ['Alan Justino'] |
| ایمیل نگهدارنده | ['alan.justino@yahoo.com.br'] |
| نویسنده | Remi Rampin |
| ایمیل نویسنده | remirampin@gmail.com |
| آدرس صفحه اصلی | https://github.com/getninjas/unix_ar |
| آدرس اینترنتی | https://pypi.org/project/unix-ar/ |
| مجوز | BSD |
unix_ar
=======
[](https://pypi.python.org/pypi/unix_ar/)
[](https://travis-ci.org/getninjas/unix_ar)
[](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.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| ~=3.6 | Python |
نحوه نصب
نصب پکیج whl unix-ar-0.2.1:
pip install unix-ar-0.2.1.whl
نصب پکیج tar.gz unix-ar-0.2.1:
pip install unix-ar-0.2.1.tar.gz