--- id: abxpkg version: "1.12.72" license: MIT license_treatment: permissive maintenance: active --- # abxpkg — System package manager interfaces with Python type hints License: permissive · Maintenance: active · Downloads: 182.6K/mo ## What it is and what it does abxpkg is a Python library and CLI that abstracts away the differences between multiple package managers, letting you install and manage binaries and dependencies at runtime without hardcoding which package manager to use. Instead of writing separate logic for apt, brew, pip, npm, docker, and others, you define a Binary with a list of providers to try in order—the library handles detection, installation, versioning, and execution across all of them. It's designed for applications that need to fetch and run external tools dynamically: ArchiveBox uses it to install chrome, wget, and other extractors on macOS, Linux, and Docker. You can bake dependency installation into your app, use it as a CLI tool to manage binaries in a dedicated cache directory, or integrate it into Django projects to build UIs and APIs around package management. The library defaults to safe behavior (7-day minimum release age, no post-install scripts) and isolates installed packages to avoid polluting the host system. Use it for: - Detect and auto-install external tools (chrome, ffmpeg, yt-dlp) at runtime without requiring users to install them manually. - Build a CLI tool that works across macOS, Linux, and Docker by abstracting away platform-specific package managers. - Serialize and persist dependency metadata to a database or config file for reproducible deployments. - Search package indexes across multiple managers to find the best available version of a binary. - Integrate package management into a Django application to provide a UI or API for managing system dependencies. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Unified interface for detecting, installing, and managing binary and source dependencies across multiple package managers (apt, brew, pip, npm, docker, cargo, and others) from Python code or CLI. Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem for applications that need to manage cross-platform runtime dependencies. It's most valuable if you're building tools that must work across multiple operating systems or package ecosystems; less critical for single-platform projects with static dependencies. ## Install pip install abxpkg uv add abxpkg poetry add abxpkg ## Installing abxpkg Before you install: Low friction: pure Python wheel with four lightweight runtime dependencies (platformdirs, pydantic, rich-click, typing-extensions). Active maintenance with a release on 2026-08-14. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects. Quickstart: pip install abxpkg from abxpkg import Binary, env, npm, brew prettier = env.load('prettier') or npm.install('prettier') or brew.install('prettier') # or: prettier = Binary(name='prettier', binproviders=[env, npm, brew]).install() print(prettier.abspath, prettier.version) Requires Python 3.12 or later (3.12, 3.13, or 3.14). Actual package installation depends on target package managers being available on the host system. Verify before relying: - Whether the library can reliably detect and install binaries across all listed package managers in mixed environments. - Performance characteristics when searching large package indexes or installing many dependencies in parallel. - Extent of Django integration (classifiers list Django 4.0–6.0 but description mentions optional django-ninja/django-jsonform usage). ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 182.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags multi-package manager interface, runtime dependency installation, cross-platform binary management, package manager abstraction, automated dependency resolution, system package detection, cli package manager wrapper, package-manager-abstraction, devops-automation, runtime-dependency-management [View on SkillFed](https://skillfed.io/packages/abxpkg) · [View on PyPI](https://pypi.org/project/abxpkg/)