is_url_in_cache#
- astropy.utils.data.is_url_in_cache(url_key, pkgname='astropy')[source]#
 Check if a download for
url_keyis in the cache.The provided
url_keywill be the name used in the cache. The contents may have been downloaded from this URL or from a mirror or they may have been provided by the user. Seedownload_filefor details.- Parameters:
 - url_key
python:str The URL retrieved
- pkgname
str, optional The package name to use to locate the download cache. i.e. for
pkgname='astropy'the default cache location is~/.astropy/cache.
- url_key
 - Returns:
 - in_cachebool
 Trueif a download forurl_keyis in the cache,Falseif not or if the cache does not exist at all.
See also
cache_contentsobtain a dictionary listing everything in the cache