Python pyxdg
From wikinotes
The XDG (X Desktop Group) Base Directory specification establishes
conventions of where program data gets stored on linux.
Documentation
official docs https://pyxdg.readthedocs.io/en/latest/index.html XDG Base Directory Spec https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html homepage https://www.freedesktop.org/wiki/Software/pyxdg/
Locations
~/.config/{program}/
$XDG_CONFIG_HOME/{program}
~/.local/share/{program}
$XDG_DATA_HOME/{program}
~/.cache/{program}
$XDG_CACHE_HOME/{program}