/ar

Pure python implementation of the ar archive format

Primary LanguagePython

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