cache_contents

astropy.utils.data.cache_contents(pkgname='astropy')[source]

Obtain a dict mapping cached URLs to filenames.

This dictionary is a read-only snapshot of the state of the cache when this function was called. If other processes are actively working with the cache, it is possible for them to delete files that are listed in this dictionary. Use with some caution if you are working on a system that is busy with many running astropy processes, although the same issues apply to most functions in this module.