Next: , Up: Usage  


Proxying

By default GoCheese is configured to use PyPI: -pypi https://pypi.org/simple/, -pypi-json https://pypi.org/pypi/ (if empty string, then do not try to update the metadata).

It gives several HTTP endpoints to work with:

/simple/ (-refresh option)

Simple API entrypoint. Each access to it asks for upstream if any state refresh is needed. Each refresh update the package’s metadata (if -pypi-json is enabled), available releases and their checksums.

/norefresh/ (-norefresh option)

Same as above, but does not refresh data from the upstream, completely read only mode.

/pypi/ (-json option)

Read only (non refreshing) JSON API entrypoint, giving metadata for the packages and releases.

/ and /hr/*

Those URLs give human readable packages listing and package information.

To use GoCheese as a proxy, just configure your pip.conf:

[global]
index-url = http://gocheese.host:8080/simple/
trusted-host = gocheese.host