Use proxypypi to set up a caching proxy to PyPI (https://pypy.python.org/) to:
make your installs reslilient against Internet/PyPI issues,
speed up your installs significantly (after the first one),
prevent problems installing packages that are removed from distribution by the author,
allow installation of packages from within a firewalled environment where the host performing the installation does not have Internet access, and
allow hosting and installation of private packages.
Usage
Setup of proxypypi requires:
“pip install proxypypi”
cd to some directory you would like files to be cached in
proxypypi run
There are some command-line arguments (see “proxypypi -h”) that allow some run-time behaviour control. Notably “-d” which can configure the directory to cache in.
Additionally the proxy may run in the background, in which case you need to supply three additional command-line arguments: “-P” (PID file), “-l” (log file) and “-o” (console output file) and use one of the daemon control commands instead of “run”. See “proxypypi -h” for the commands.
Once running you may perform pip installs using the proxy by including the proxy in the pip command line using the “-i” argument:
pip install -i http://proxy_host:proxy_port/simple/ package_to_install
Any packages not cached will be fetched into the cache and the install will continue as normal.
Upgrading Cached Packages
This isn’t done yet :-)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file proxypypi-1.0.tar.gz.
File metadata
- Download URL: proxypypi-1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aecd7c4e904e9edb199f2755d461b610c85e830ff5d76f9fc63fac133371b542
|
|
| MD5 |
9d03edc9859b5825af9e432b9ca0fb95
|
|
| BLAKE2b-256 |
b2a5c5bc2c57db3b94446bfc5934b2bd94169e839388a54ab059387944732985
|