Skip to main content

AR file handling

Project description

unix_ar

PyPI version 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.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

unix_ar-0.2.1-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file unix_ar-0.2.1.tar.gz.

File metadata

  • Download URL: unix_ar-0.2.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.19.5 CPython/3.6.5

File hashes

Hashes for unix_ar-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bf9328ec70fa3a82f94dc26dc125264dbf62a2d8ffb1a3c8c8a8230175e72c4e
MD5 e51b681d8ef849f4a7c1dd0b5d23b8b0
BLAKE2b-256 3e3765cb206bd7110887248fe041e00e61124abdcd23de8f19418898a51363fc

See more details on using hashes here.

File details

Details for the file unix_ar-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: unix_ar-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.19.5 CPython/3.6.5

File hashes

Hashes for unix_ar-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2acb718bc1308bf80e5b9da2614d8242cc2fe3be4cd8b2fd4719bce189aafcf1
MD5 e814b1f9897472d2ab191c1b7c1f793a
BLAKE2b-256 b6a1847695f96c37cdd57233e6e0f76c4637332acb06a6e0258160f0062c1a85

See more details on using hashes here.

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