--- id: ar version: "1.0.1" license: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) license_treatment: permissive maintenance: aging --- # ar — Access ar archive files (.a)! License: permissive · Maintenance: aging · Downloads: 109.5K/mo ## What it is and what it does ar is a pure-Python parser for Unix ar archive files (.a), commonly used in build systems and static libraries. It provides a simple interface to iterate over archive entries, read individual file contents, and extract files to disk without requiring external tools or compiled dependencies. The package exposes an Archive class that wraps a binary file handle and supports iteration over entries, opening and reading specific files by name, and extracting all contents. It supports Python 3.8 through 3.11 and has no external runtime dependencies, making it lightweight for build automation, static library inspection, or archive manipulation in pure Python environments. Use it for: - Extract object files or metadata from static libraries (.a) in build pipelines. - Inspect the contents of ar archives without invoking system tools like ar or tar. - Read embedded files from ar archives in cross-platform Python applications. - Automate library analysis or dependency inspection in CI/CD workflows. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Parses and reads ar archive files (.a), allowing you to list, extract, and read individual files from Unix ar archives without external dependencies. Yes, if you need to parse ar archives in Python without system dependencies. The package is straightforward, has no external runtime dependencies, and covers a narrow but real use case. Maintenance is aging but not abandoned; the code is stable and suitable for build automation or library inspection tasks where ar format support is needed. ## Install pip install ar uv add ar poetry add ar ## Installing ar Before you install: Low friction installation with no runtime dependencies. Maintenance status is aging—last commit was 2025-12-18, but the repository is not archived and the package remains functional. License in practice: Licensed under Apache License Version 2.0, a permissive license that allows commercial and derivative use with minimal restrictions, requiring only attribution and notice of modifications. Quickstart: pip install ar from ar import Archive with open('file.a', 'rb') as f: archive = Archive(f) for entry in archive: print(entry.name) Requires Python 3.8 or later; ar archives must be opened in binary mode. Verify before relying: - Whether the package handles all ar archive variants (GNU, BSD, etc.) or has known format limitations. - Performance characteristics when working with large archives or many files. ## Package facts - License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 109.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ar archive parser, read .a files python, extract ar archives, unix ar library, ar file format, archive extraction python, archive-format, build-tools [View on SkillFed](https://skillfed.io/packages/ar) · [View on PyPI](https://pypi.org/project/ar/)