skillfed

pip-compile-multi

Compile multiple requirements files to lock dependency versions

pip-compile-multi v3.3.1 138.3K downloads/30d#11,332 on PyPI152
Permissive license MIT Active released

What it is and what it does

pip-compile-multi is a command-line wrapper around pip-tools that extends its capabilities to handle multiple requirements files in a single run. Instead of manually running pip-compile on each file, you point the tool at a directory or configuration and it resolves all transitive dependencies across files, outputting locked versions to corresponding .txt files. It uses click for CLI handling and toposort to manage file dependencies, and can optionally delegate resolution to uv instead of pip-tools for faster compilation.

The tool is designed for projects with layered or environment-specific requirements—such as base.txt, dev.txt, and test.txt—where you need consistent locked versions across all layers. It supports features like autoresolve for conflict-free compilations, configuration via pyproject.toml, and pass-through flags for pip-tools options like backtracking and build isolation.

Use it for:

  • Lock dependencies for a multi-environment project (base, dev, test, prod) in one command.
  • Maintain consistent transitive dependency versions across separate requirements files.
  • Integrate pip-compile into CI/CD pipelines to regenerate locked files on dependency updates.
  • Use uv resolver for faster compilation when pip-tools is too slow on large dependency trees.
  • Configure requirements compilation rules in pyproject.toml for team-wide consistency.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Compiles multiple requirements files into locked dependency versions using pip-tools or uv, resolving transitive dependencies across files.

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem for projects with multiple requirements files. It is stable (Production/Stable status) and widely used (top 15000 on PyPI). Install it if you manage multiple requirements files and want to lock versions across them efficiently.

Install

pip-compile-multi on PyPI

pip

pip install pip-compile-multi

uv

uv add pip-compile-multi

poetry

poetry add pip-compile-multi

Installing pip-compile-multi

Before you install

Low install friction with just three runtime dependencies (click, pip-tools, toposort). Actively maintained with recent releases; last commit 2026-08-12. Supports Python 3.10–3.14.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install pip-compile-multi
pip-compile-multi

Requires Python ~=3.10 and pip-tools as a runtime dependency.

Verify before relying

  • Whether the tool handles circular dependencies or conflicting version constraints across files.
  • Performance characteristics when compiling very large numbers of requirements files.
  • How the uv resolver integration (added in 3.2.0) compares to pip-tools in speed and compatibility.

Package facts

License MIT (permissive)
Python support supports the current Python release (~=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — click, pip-tools, toposort
Maintenance actively maintained — 116 days since the last release
Last repo commit
First released
Downloads 138,333/month — #11,332 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pip_compile_multi-3.3.1-py2.py3-none-any.whl

Keywords: pip-compile-multi

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Utilities

Tags

lock multiple requirements filespip-tools wrapper multi-filedependency resolution multiple filesfreeze requirements across projectsbatch pip-compilerequirements.txt locking toolmulti-environment dependency lock
dependency-lockingrequirements-managementcli-tool

More Utilities packages