bundles / astropy 7.0.1 / astropy / utils / data / export_download_cache
function
astropy.utils.data:export_download_cache
source: /astropy/utils/data.py :2191
Signature
def export_download_cache ( filename_or_obj , urls = None , overwrite = False , pkgname = astropy ) Summary
Exports the cache contents as a ZIP file.
Parameters
filename_or_obj: str or file-likeWhere to put the created ZIP file. Must be something the zipfile module can write to.
urls: iterable of str or NoneThe 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
~download_fileor download_files_in_parallel.overwrite: bool, optionalIf filename_or_obj is a filename that exists, it will only be overwritten if this is True.
pkgname: `str`, optionalThe package name to use to locate the download cache. i.e. for
pkgname='astropy'the default cache location is~/.astropy/cache.
See also
- import_download_cache
import the contents of such a ZIP file
- import_file_to_cache
import a single file directly
Aliases
-
astropy.utils.data.export_download_cache