watcher ¤
Repositories watcher.
Classes:
-
GracefulExit
–Signal handler to exit gracefully.
Functions:
-
start_watcher
–Start the watcher in the background.
-
stop_watcher
–Stop the watcher.
-
watcher_logs
–Show the watcher logs.
-
watcher_loop
–Run the watcher in the foreground.
-
watcher_status
–Return the watcher status as a dict of metadata.
GracefulExit ¤
GracefulExit()
start_watcher ¤
start_watcher(
*,
conf_path: str | Path = DEFAULT_CONF_PATH,
repo_dir: str | Path = DEFAULT_REPO_DIR,
index_url: str = DEFAULT_INDEX_URL,
sleep: int = DEFAULT_WATCHER_SLEEP
) -> None
Start the watcher in the background.
Parameters:
-
conf_path
(str | Path
, default:DEFAULT_CONF_PATH
) –The path to the configuration file.
-
repo_dir
(str | Path
, default:DEFAULT_REPO_DIR
) –The directory in which the repositories are cloned.
-
index_url
(str
, default:DEFAULT_INDEX_URL
) –The URL of the PyPI index to upload to.
-
sleep
(int
, default:DEFAULT_WATCHER_SLEEP
) –The time to sleep in between iterations, in seconds.
watcher_loop ¤
watcher_loop(
*,
conf_path: str | Path = DEFAULT_CONF_PATH,
repo_dir: str | Path = DEFAULT_REPO_DIR,
index_url: str = DEFAULT_INDEX_URL,
sleep: int = DEFAULT_WATCHER_SLEEP
) -> None
Run the watcher in the foreground.
Parameters:
-
conf_path
(str | Path
, default:DEFAULT_CONF_PATH
) –The path to the configuration file.
-
repo_dir
(str | Path
, default:DEFAULT_REPO_DIR
) –The directory containing the repository clones.
-
index_url
(str
, default:DEFAULT_INDEX_URL
) –The URL of the PyPI index to upload to.
-
sleep
(int
, default:DEFAULT_WATCHER_SLEEP
) –The time to sleep in between iterations, in seconds.