bindep
Binary dependency utility
What it is and what it does
Bindep is a command-line tool that validates whether system-level binary packages are installed on a machine. It reads a declarative requirements file (bindep.txt) listing Debian package names and outputs which packages are missing, making it easier to set up development and test environments where non-Python dependencies must be installed before pip can run. The tool supports profiles to handle different scenarios (e.g., test vs. production), platform-specific selectors to map Debian package names to RPM, Gentoo, or other package managers, and version constraints similar to pip's syntax.
Bindep is particularly useful in CI/CD pipelines and development setup documentation. It can output results in verbose or brief format (one package per line), making it easy to pipe missing packages directly to apt, yum, or other package managers. Exit codes indicate success (0), missing packages (1), or parse errors (2), allowing integration into automated workflows. The tool has been in production use since 2015 and supports modern Python versions.
Use it for:
- Validate that all system dependencies are installed before running tests in a CI pipeline, with brief output piped to apt-get or yum.
- Document system-level requirements in a project's bindep.txt file so developers can quickly set up a working environment.
- Handle platform-specific package names (e.g., libxml2-dev on Debian vs. libxml2-devel on RPM) in a single requirements file.
- Define test-specific system dependencies (e.g., database servers, development headers) using profiles without cluttering runtime requirements.
- Distinguish between Python 2 and Python 3 system packages using base-py2 and base-py3 labels on supported platforms.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Bindep checks for missing system binary packages needed by an application or library, reading requirements from a declarative file and reporting gaps in a format suitable for package managers.
Yes. Bindep is a stable, actively maintained tool with no known vulnerabilities, low install friction, and permissive licensing. It solves a real problem—declaratively specifying and validating system-level dependencies—that is difficult to handle otherwise, especially in multi-platform projects. Install it if your project has non-Python system dependencies or if you need to standardize dependency setup across a team.
Install
bindep on PyPI
pip
pip install bindepuv
uv add bindeppoetry
poetry add bindepInstalling bindep
Before you install
Low install friction with four straightforward runtime dependencies (distro, packaging, Parsley, pbr). Actively maintained with a release within the last 148 days and support across Python 3.8 through 3.13.
License in practice
Licensed under Apache Software License (permissive), allowing use in both open-source and proprietary projects without copyleft obligations.
Quickstart
pip install bindep
Create bindep.txt with your system package requirements:
libffi6
libffi-devel [test]
Run bindep to check for missing packages:
bindep
bindep test # with specific profile
bindep -b # brief output for piping to package managers
Verify before relying
- Whether the package mapping from Debian package names to other distros (RPM, Gentoo, etc.) covers your target platforms comprehensively.
- Performance characteristics when processing large or complex requirements files with many profiles and version constraints.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — distro, packaging, Parsley, pbr |
| Maintenance | actively maintained — 148 days since the last release |
| First released | |
| Downloads | 1,118,737/month — #4,343 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bindep-2.14.0-py3-none-any.whl
Keywords: binary, commandline, dependency, distribution, distro, package
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
deb-pkg-toolsBuilds, inspects, and manages Debian binary…
permissive · top 15,000 on PyPI
certifi-linuxRedirects certifi's certificate lookup to use…
permissive · top 15,000 on PyPI
debian-inspectorParses Debian package metadata, copyright…
permissive · top 15,000 on PyPI
distro2sbomGenerates a Software Bill of Materials (SBOM)…
permissive · top 15,000 on PyPI
distroDistro provides a reliable, machine-readable…
permissive · top 1,000 on PyPI
simplesatSolves package dependency resolution using…
permissive · top 15,000 on PyPI
extra-platformsDetects and exposes rich metadata about runtime…
permissive · top 15,000 on PyPI
version-utilsParses and compares package version strings in…
copyleft · top 15,000 on PyPI
xrootdProvides Python bindings to XRootD, a…
copyleft · top 5,000 on PyPI
xmlsecPython bindings for XML Security Library,…
permissive · top 5,000 on PyPI