Skip to main content

PyPI caching mirror

Project description

proxpi

Build status codecov

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 minutes
  • PROXPI_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 minutes
  • PROXPI_CACHE_SIZE: size of downloaded package files cache (bytes), default 5GB

Docker

docker run -p 5000:5000 epicwink/proxpi

Project details


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)

Uploaded Source

Built Distribution

proxpi-0.1.0a2-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page