spey.check_updates#
- spey.check_updates() None[source]#
Check Spey Updates.
Added in version 0.1.6.
Spey always checks updates when initialised. To disable this set the following
Option if using terminal:
export SPEY_CHECKUPDATE=OFF
Option if using python interface:
import os os.environ["SPEY_CHECKUPDATE"]="OFF"
PyPI is queried at most once per 24 hours; the response is cached in
~/.spey/pypi_latest_{datetime}.json. If the cache directory cannot be created (e.g. no write permission) the function always attempts a live request. Any network or filesystem error is logged at DEBUG level and the function returns silently without raising.