Skip to main content

Access ar archive files (.a)

Project description

Build Status

python-3.8 python-3.7 python-3.6 python-3.5

ar

Python package for parsing ar archive file.

Installation

pip install ar

Usage

List files inside file.a

with open('file.a') as f:
  archive = Archive(f)
  for entry in archive:
    print(entry.name)

Read content of file.txt contained within file.a.

with open('file.a') as f:
  archive = Archive(f)
  print(archive.open('file.txt').read())

Author

Samuel Carlsson

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

ar-0.3.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

ar-0.3.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded 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