pooch.os_cache

pooch.os_cache(project)[source]

Default cache location based on the operating system.

The folder locations are defined by the appdirs package. Usually, the locations will be following (see the appdirs documentation):

  • Mac: ~/Library/Application Support/<project>

  • Unix: ~/.local/share/<project> or the value of the XDG_DATA_HOME environment variable, if defined.

  • Windows: C:\Users\<user>\AppData\Roaming\<project>\<project>

Parameters

project (str) – The project name.

Returns

cache_path (pathlib.Path) – The default location for the data cache. User directories ('~') are not expanded.