server ¤
Logic for the PyPI server.
Classes:
-
DistCollection
–Manage distributions.
Functions:
-
server_logs
–Show the server logs.
-
server_loop
–Run the server in the foreground.
-
server_status
–Return the server status as a dict of metadata.
-
start_server
–Start the watcher in the background.
-
stop_server
–Stop the server.
DistCollection ¤
DistCollection(index_url: str = DEFAULT_INDEX_URL)
Manage distributions.
Parameters:
-
index_url
(str
, default:DEFAULT_INDEX_URL
) –The URL of the PyPI index to use.
Methods:
-
latest_version
–Get the latest version of a package.
-
upload
–Upload distributions.
-
version_exists
–Tell if a package version exists.