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,
index_user: str = DEFAULT_INDEX_USER,
index_password: str = DEFAULT_INDEX_PASSWORD,
)
Manage distributions.
Parameters:
-
index_url(str, default:DEFAULT_INDEX_URL) –The URL of the PyPI index to use.
-
index_user(str, default:DEFAULT_INDEX_USER) –The username for the index if required.
-
index_password(str, default:DEFAULT_INDEX_PASSWORD) –The password for the index if required.
Methods:
-
latest_version–Get the latest version of a package.
-
upload–Upload distributions.
-
version_exists–Tell if a package version exists.