bundles / astropy latest / astropy / utils / data / is_url_in_cache
function
astropy.utils.data:is_url_in_cache
source: /astropy/utils/data.py :1592
Signature
def is_url_in_cache ( url_key , pkgname = astropy ) Summary
Check if a download for url_key is in the cache.
Extended Summary
The provided url_key will 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. See ~download_file for details.
Parameters
url_key: strThe URL retrieved
pkgname: `str`, optionalThe package name to use to locate the download cache. i.e. for
pkgname='astropy'the default cache location is~/.astropy/cache.
Returns
in_cache: boolTrueif a download forurl_keyis in the cache,Falseif not or if the cache does not exist at all.
See also
- cache_contents
obtain a dictionary listing everything in the cache
Aliases
-
astropy.utils.data.is_url_in_cache