Registry / devops / pip2pi

pip2pi

JSON →
library0.8.2pypypiunverified

pip2pi is a tool for building a PyPI-compatible package repository from pip requirements. It takes a requirements.txt file and downloads packages and their dependencies to a local directory that can be served via a web server. Current version is 0.8.2, works with Python 3.8+. Release cadence is infrequent; last release was August 2023.

pip install pip2pi
INSTALL
IMPORT
SIG · PIP2PI
P
pip2pi
devopspythonv0.8.2
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

package_name
from libpip2pi import package_name
from pip2pi import package_name

Build a package repository from requirements.txt into /tmp/packages.

pip2pi /tmp/packages -r requirements.txt
pip2pi --version
Debug
Known issues
breakingVersion 0.8.0+ removed support for pip<10.0.0. Old downloads from pip's --download option are no longer used.
fix
Upgrade pip to version 10.0.0 or later.
affects: >=0.8.0
deprecatedThe --download flag with pip install has been removed; pip2pi now uses pip download.
fix
Use pip2pi 0.8.0+ which uses pip download internally.
affects: >=0.8.0
breakingPython 2 support dropped. Version 0.8.2 only supports Python 3.8+.
fix
Use Python 3.8+ or pin to pip2pi <0.8.2 for Python 2 compatibility (not recommended).
affects: >=0.8.2
gotchaIf your requirements.txt includes packages that require compilation (e.g., numpy, scipy), pip2pi may fail because it cannot download precompiled wheels for the target platform.
fix
Use --wheel-dir or --find-links options to include pre-built wheels.
affects: all
Upgrade
Version history
0.8.2latest on PyPI · released Aug 4, 2021
Audit
Dependencies
piprequiredpip2pi internally calls pip commands; specific versions of pip may cause compatibility issues. Version 18.0+ recommended.
Agent activity
2 hits · last 30 days
node
2
Resources
pip2pi — pip install pip2pi · libregistry