python3-platformdirs – determining appropriate platform-specific directories (Python 3)

Depending on your system (Linux, Mac OS X, or Windows), you have to use different directories for storing user data. platformdirs will help you choose an appropriate:

  • user data directory (user_data_dir function)
  • user config directory (user_config_dir function)
  • user cache directory (user_cache_dir function)
  • site data directory (site_data_dir function)
  • site config directory (site_config_dir function)
  • user log directory (user_log_dir function)

On Linux systems, these function return directories based on the XDG Base Directory Specification.

This is the Python 3 version of the package.

Package availability chart
Distribution Base version Our version Architectures
Debian GNU/Linux 11.0 (bullseye)   2.5.1-1~nd3~nd110+1 i386, amd64, sparc, armel
Debian testing (bookworm) 2.5.3-1 2.5.1-1~nd3~nd120+1 i386, amd64, sparc, armel
Debian unstable (sid) 2.5.3-1 2.5.1-1~nd3~nd+1 i386, amd64, sparc, armel
Ubuntu 22.04 “Jammy Jellyfish” (jammy) 2.5.1-1    


blog comments powered by Disqus