An unofficial, importable pip API
Maintained. Last release 3 months ago, commits in 8 of the last 26 weeks. Weaker on release cadence.
pip install pip-apiSince pip is a command-line-tool, it does not have
an official, supported, importable
API.
However, this does not mean that people haven't tried to import pip, usually
to end up with much headache when pip's maintainers do routine refactoring.
Goal
The goal of this project is to provide an importable pip API, which is fully
compliant with the recommended method of using pip from your program.
How? By providing an importable API that wraps command-line calls to pip,
this library can be used as a drop-in replacement for existing uses of pip's
internal API.
Scope
This goal means that any new API added here must have the following equivalents:
- some internal
pipAPI (or combination of internal APIs) - some CLI calls (or combination of CLI calls)
Any functionality that is not currently possible from internal pip API or
CLI calls is out of scope.
Installation
You can install pip-api with either or with .