astropy 5.0

ParametersReturns
is_url_in_cache(url_key, pkgname='astropy')

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 :None:None:`~download_file` for details.

Parameters

url_key : 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 .

Returns

in_cache : bool

:None:None:`True` if a download for url_key is in the cache, :None:None:`False` if not or if the cache does not exist at all.

Check if a download for url_key is in the cache.

See Also

cache_contents

obtain a dictionary listing everything in the cache

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/utils/data.py#1424
type: <class 'function'>
Commit: