# platformdirs

> Find the right platform-specific directories for user data, config, cache and logs in Python

Source: https://talira.ai/catalog/platformdirs-eqtj2j24
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [tox-dev](https://talira.ai/orgs/tox-dev.md)

platformdirs is a small Python package that returns the right platform-specific directories for an application (user data, config, cache, state, logs, runtime, documents and downloads), handling the differences between macOS, Windows, Linux and other Unix systems, Android and iOS. A `PlatformDirs` object takes the app name and author and gives each directory as a string or a Path. It's maintained by the tox-dev organization.

## Links

- GitHub: https://github.com/tox-dev/platformdirs
- Docs: https://platformdirs.readthedocs.io/

## Problems it solves

- find where to store my Python app's config file on each OS
- get the user cache directory in Python cross-platform
- store app data in the right place on Windows, macOS and Linux

## Features

- user data, config, cache, state and log directories
- documents, downloads and runtime directories
- macOS, Windows, Linux, Android and iOS
- strings or Path objects

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.60, momentum 0.36, community 0.84, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 223 commits in the last 90 days
- latest release 4.14.9 2 days ago
- 1.0k GitHub stars
- 127 contributors
- accepts sponsorship (Github, Tidelift, Thanks Dev)
- backed by tox-dev

## Sources

[^1]: https://github.com/tox-dev/platformdirs/blob/main/LICENSE (checked 29 Nov 2026)
