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.2.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

ar-0.3.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page