nickdesaulniers / ar

Pure python implementation of the ar archive format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Pure python implementation of the ar archive format


Languages

Language:Python 98.9%Language:Shell 1.1%