Skip to content

Implement a user cache dir #455

Description

@nictru

Should probably default to platformdirs.user_cache_dir("drevalpy"), which resolves to ~/Library/Caches/drevalpy on Mac and ~/.cache/drevalpy on Linux. Should be overridable via DREVALPY_CACHE_DIR environment variable (following the example of other libraries, such as matplotlib and numba).

This should be the place where all the downloaded datases and the meta data are stored. Currently, the default directory to store the data is the working directory, making it necessary to explicitly provide a system-wide data directory on every run. With the environment variable, it would be a one-time setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions