python3-platformdirs – determining appropriate platform-specific directories (Python 3)¶
- More information
- External resources
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.
Distribution |
Base version |
Our version |
Architectures |
---|---|---|---|
Debian GNU/Linux 11.0 (bullseye) |
2.5.1-1~nd3~nd110+1 |
i386, amd64, sparc, armel |
|
Debian GNU/Linux 12.0 (bookworm) |
2.6.0-1 |
2.5.1-1~nd3~nd120+1 |
i386, amd64, sparc, armel |
Debian testing (trixie) |
4.3.6-1 |
||
Debian unstable (sid) |
4.3.6-1 |
2.5.1-1~nd3~nd+1 |
i386, amd64, sparc, armel |
Ubuntu 22.04 “Jammy Jellyfish” (jammy) |
2.5.1-1 |
||
Ubuntu 24.04 “Noble Numbat” (noble) |
4.2.0-1 |