pooch.os_cache#
- pooch.os_cache(project)[source]#
Default cache location based on the operating system.
The folder locations are defined by the
platformdirspackage using theuser_cache_dirfunction. Usually, the locations will be following (see the platformdirs documentation):Mac:
~/Library/Caches/<AppName>Unix:
~/.cache/<AppName>or the value of theXDG_CACHE_HOMEenvironment variable, if defined.Windows:
C:\Users\<user>\AppData\Local\<AppAuthor>\<AppName>\Cache
- Parameters:
project (str) – The project name.
- Returns:
cache_path (
pathlib.Path) – The default location for the data cache. User directories ('~') are not expanded.