export_download_cache(filename_or_obj, urls=None, overwrite=False, pkgname='astropy')
Where to put the created ZIP file. Must be something the zipfile module can write to.
The URLs to include in the exported cache. The default is all URLs currently in the cache. If a URL is included in this list but is not currently in the cache, a KeyError will be raised. To ensure that all are in the cache use :None:None:`~download_file`
or ~download_files_in_parallel
.
If filename_or_obj is a filename that exists, it will only be overwritten if this is True.
The package name to use to locate the download cache. i.e. for pkgname='astropy'
the default cache location is ~/.astropy/cache
.
Exports the cache contents as a ZIP file.
import_download_cache
import the contents of such a ZIP file
import_file_to_cache
import a single file directly
The following pages refer to to this document either explicitly or contain code examples using this.
astropy.utils.data.import_download_cache
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