core.update module¶
Provides functions to update Source.Python and its data files.
-
core.update.
download_file
(url_path, file_path, timeout=3)[source]¶ Download a file from an URL to a specific file.
Parameters:
-
core.update.
get_build_artifacts
(timeout=3)[source]¶ Return the artifacts of the latest Source.Python build.
Parameters: timeout (float) – Number of seconds that need to pass until a timeout occurs.
-
core.update.
get_download_url
(game='css', timeout=3)[source]¶ Get the latest Source.Python download URL for a specific game.
Parameters: Return type: Raises: ValueError – Raised if the game wasn’t found.
-
core.update.
get_latest_data_checksum
(timeout=3)[source]¶ Return the MD5 checksum of the latest data from the build server.
Parameters: timeout (float) – Number of seconds that need to pass until a timeout occurs. Return type: str