Socket
Socket
Sign inDemoInstall

unix-ar

Package Overview
Dependencies
0
Maintainers
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    unix-ar

AR file handling


Maintainers
2

Readme

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.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc