import_download_cache(filename_or_obj, urls=None, update_cache=False, pkgname='astropy')
Each member of the ZIP file should be named by a quoted version of the URL whose contents it stores. These names are decoded with ~urllib.parse.unquote
.
Where the stored ZIP file is. Must be something the ~zipfile
module can read from.
The URLs to import from the ZIP file. The default is all URLs in the file.
If True, any entry in the ZIP file will overwrite the value in the cache; if False, leave untouched any entry already in the cache.
The package name to use to locate the download cache. i.e. for pkgname='astropy'
the default cache location is ~/.astropy/cache
.
Imports the contents of a ZIP file into the cache.
export_download_cache
export the contents the cache to 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.export_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