Python package for parsing ar archive file.
pip install ar
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())
Samuel Carlsson