unix-ar
AR file handling
What it is and what it does
unix_ar is a pure-Python library for reading and writing AR archive files—the Unix static library format used in .deb packages and other contexts. It provides an ArFile class that mirrors the interface of Python's standard tarfile.TarFile, making it familiar to developers who have worked with tar or zip archives. The package has no runtime dependencies and installs as a simple wheel.
The main use case is extracting contents from .deb files or other AR archives without external tools. Because the package is abandoned (last updated in 2019, creator no longer maintaining), it should be treated as stable but not actively developed. It works with modern Python versions and carries no known security vulnerabilities.
Use it for:
- Extract files from Debian .deb packages programmatically without calling external ar or dpkg commands.
- Read AR archive metadata and member files in build or deployment scripts.
- Parse static library archives (.a files) on Unix systems.
- Integrate AR file handling into package management or system tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Reads and writes AR archive files (Unix static library format), with an interface modeled on Python's standard tarfile and zipfile libraries.
Yes, if you need to read or write AR archives and don't want an external dependency. The package is stable, has no runtime dependencies, carries no known vulnerabilities, and uses a permissive license. The main caveat is that it is abandoned—no active maintenance—so it is suitable only for stable, well-understood use cases where you are comfortable with no upstream support.
Install
unix-ar on PyPI
pip
pip install unix-aruv
uv add unix-arpoetry
poetry add unix-arInstalling unix-ar
Before you install
Low install friction and no runtime dependencies. However, the package is abandoned—last release was 2019-06-12, last commit 2022-06-09, and the original author has stated they no longer maintain it. Use only if the codebase is stable enough for your needs.
License in practice
BSD license (permissive) means you can use, modify, and distribute the package freely in commercial and private projects, provided you retain the license notice.
Quickstart
import unix_ar
ar_file = unix_ar.open('mypackage.deb')
data_archive = ar_file.open('data.tar.gz/')
ar_file.close()
Requires Python ~=3.6 (Python 3.6 or later in the 3.x line).
Verify before relying
- Whether the package correctly handles all AR format edge cases or only common cases.
- Whether it works reliably with modern .deb files or only older formats.
- Performance characteristics when handling large archives.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (~=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,620 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 859,309/month — #4,879 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: unix_ar-0.2.1-py2.py3-none-any.whl
Keywords: ar, archive, unix, deb
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
arParses and reads ar archive files (.a),…
permissive · top 15,000 on PyPI
pyunpackUnpacks archive files in Python with support…
permissive · top 15,000 on PyPI
arpyArpy reads and extracts files from ar archives…
permissive · top 15,000 on PyPI
rpmfileInspect and extract files from RPM archive…
permissive · top 5,000 on PyPI
rarfileReads RAR archive files (RAR3 and RAR5 formats)…
permissive · top 5,000 on PyPI
securetarSecure Tar wraps Python's tarfile module to add…
permissive · top 15,000 on PyPI
harfileWrites HTTP Archive (HAR) files in Python with…
permissive · top 5,000 on PyPI
backports.tarfileProvides a backport of Python's tarfile module…
permissive · top 1,000 on PyPI
extractcodeExtracts a wide range of archive formats (tar,…
permissive · top 15,000 on PyPI
fastarFastar provides high-performance tar archive…
permissive · top 1,000 on PyPI