astropy 5.0

ParametersBackRef
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 .

Parameters

filename_or_obj : str or file-like

Where the stored ZIP file is. Must be something the ~zipfile module can read from.

urls : set of str or list of str or None

The URLs to import from the ZIP file. The default is all URLs in the file.

update_cache : bool, optional

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.

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 .

Imports the contents of a ZIP file into the cache.

See Also

export_download_cache

export the contents the cache to of such a ZIP file

import_file_to_cache

import a single file directly

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

astropy.utils.data.export_download_cache

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#2057
type: <class 'function'>
Commit: