Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 984 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 984 Bytes

pypi-proxy

A simple reverse proxy for the official Python package index.

Unauthenticated

https://pypi-proxy.fly.dev is a proxy for https://pypi.org.

Note a /simple suffix is required for usage with tools like pip.

Authenticated

https://pypi-proxy.fly.dev/basic-auth is a proxy for https://pypi.org with HTTP basic authentication.

https://files.pythonhosted.org/ is replaced with https://pypi-proxy.fly.dev/basic-auth/files in responses to avoid bypassing authentication when downloading files. Requests to https://pypi-proxy.fly.dev/basic-auth/files are redirected to https://files.pythonhosted.org/.

The username is public and the password is heron and can be provided in the URL e.g. https://public:[email protected]/basic-auth.

Contributing

Build and run the image:

docker build -t pypi-proxy .
docker run --rm -p 80:8080 -i pypi-proxy

Use localhost instead of the deployed domain name to test.