PyPI caching mirror
Project description
proxpi
PyPI caching mirror
- Host a proxy PyPI mirror server with caching
- Use extra index URLs
- Set index cache times-to-live (individually for each index)
Installation
pip install proxpi
Usage
FLASK_APP=proxpi.server flask run
pip install --index-url http://127.0.0.1:5000/index/ simplejson
Cache invalidation
curl -X DELETE http://127.0.0.1:5000/cache/simplejson
curl -X DELETE http://127.0.0.1:5000/cache/list
Environment variables
PROXPI_ROOT_INDEX_URL
: root index URL, default: https://pypi.org/simple/PROXPI_ROOT_INDEX_TTL
: root index time-to-live (aka cache time-out) in seconds, default: 30 minutesPROXPI_EXTRA_INDEX_URLS
: extra index URLs (white-space separated)PROXPI_EXTRA_INDEX_TTLS
: corresponding extra index times-to-live in seconds (white-space separated), default: 3 minutesPROXPI_CACHE_SIZE
: size of downloaded package files cache (bytes), default 5GB
Docker
docker run -p 5000:5000 epicwink/proxpi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proxpi-0.1.0a2.tar.gz
(7.2 kB
view hashes)