update_check
konigle.cli.update_check
¶
Background update checker for the Konigle CLI.
UpdateChecker
¶
Checks PyPI for a newer version of konigle in the background.
Designed to be started at CLI startup and joined after the command completes. Uses a 24-hour disk cache so the network is hit at most once per day.
Example
print_hint()
¶
Join the background thread and print an update hint if needed.
Silent on any error — update checks must never interrupt the user's workflow.
start()
¶
Start the update check.
Uses the disk cache if fresh. Otherwise spawns a daemon thread so the network call never blocks the CLI command.