]> Cypherpunks.ru repositories - gocheese.git/blob - doc/proxy.texi
48e10ed59bb4c5d9b1f988f83433040841815d0e
[gocheese.git] / doc / proxy.texi
1 @node Proxying
2 @section Proxying
3
4 By default GoCheese is configured to use PyPI:
5 @option{-pypi https://pypi.org/simple/},
6 @option{-pypi-json https://pypi.org/pypi/} (if empty string, then do not
7 try to update the metadata).
8
9 It gives several HTTP endpoints to work with:
10
11 @table @asis
12
13 @item @code{/simple/} (@option{-refresh} option)
14 Simple API entrypoint. Each access to it asks for upstream if any state
15 refresh is needed. Each refresh update the package's metadata (if
16 @option{-pypi-json} is enabled), available releases and their checksums.
17
18 @item @code{/norefresh/} (@option{-norefresh} option)
19 Same as above, but does not refresh data from the upstream, completely
20 read only mode.
21
22 @item @code{/pypi/} (@option{-json} option)
23 Read only (non refreshing) JSON API entrypoint, giving metadata for the
24 packages and releases.
25
26 @item @code{/} and @code{/hr/*}
27 Those URLs give human readable packages listing and package information.
28
29 @end table
30
31 To use GoCheese as a proxy, just configure your @file{pip.conf}:
32
33 @example
34 [install]
35 index-url = http://gocheese.host:8080/simple/
36 @end example