bittensor.utils.version#
Attributes#
Exceptions#
Exception raised for errors in the version check process. |
Functions#
Check for the latest version of the package on PyPI. |
|
|
Check if the current version of Bittensor is up-to-date with the latest version on PyPi. |
|
Retrieves and saves the latest version of Bittensor. |
|
Deprecated, kept for backwards compatibility. Use check_version() instead. |
Module Contents#
- bittensor.utils.version.VERSION_CHECK_THRESHOLD = 86400#
- exception bittensor.utils.version.VersionCheckError[source]#
Bases:
Exception
Exception raised for errors in the version check process.
Initialize self. See help(type(self)) for accurate signature.
- bittensor.utils.version.check_latest_version_in_pypi()#
Check for the latest version of the package on PyPI.
- bittensor.utils.version.check_version(timeout=15)[source]#
Check if the current version of Bittensor is up-to-date with the latest version on PyPi. Raises a VersionCheckError if the version check fails.
- Parameters:
timeout (int) – The timeout for the request to PyPI in seconds. Default is
15
.