platformdirs

A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`.

About platformdirs

A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`.

Key Features

  • Finds platform-correct user config and cache directories
  • Handles macOS, Windows, and Linux path conventions
  • Supports per-app directory naming and version scoping
  • Useful for CLI and desktop application state management

Installation

uv add platformdirs

Related Tools

Quick Info

Latest Version
4.9.2
First Release
2021
License
MIT License

About pytools.dev

pytools.dev is your go-to directory for the best Python tools, libraries, and frameworks—designed for the modern Python developer.

© 2026 pytools.dev. All rights reserved.
Created with ❤️ by James Fricker