GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Blog
  • Docs
  • Log in
  • Register
  • Getting help
  • Installing packages
  • Uploading packages
  • Packaging user guide
  • Infrastructure dashboard
  • Statistics
  • Logos & trademarks
  • Our sponsors
  • Bugs and feedback
  • Contribute on GitHub

This view

  • Original page
  • New address

GeezerVison is showing pypi.org — platformdirs

platformdirs 4.14.9

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

pip install platformdirs

platformdirs

PyPI version Python versions CI Downloads OpenSSF Scorecard OpenSSF Best Practices

A Python package for determining platform-specific directories (e.g. user data, config, cache, logs). Handles the differences between macOS, Windows, Linux/Unix, Android, and iOS so you don't have to.

Quick start

from platformdirs import PlatformDirs

dirs = PlatformDirs("MyApp", "MyCompany")
dirs.user_data_dir  # ~/.local/share/MyApp (Linux)
dirs.user_config_dir  # ~/.config/MyApp (Linux)
dirs.user_cache_dir  # ~/.cache/MyApp (Linux)
dirs.user_state_dir  # ~/.local/state/MyApp (Linux)
dirs.user_log_dir  # ~/.local/state/MyApp/log (Linux)
dirs.user_documents_dir  # ~/Documents
dirs.user_downloads_dir  # ~/Downloads
dirs.user_runtime_dir  # /run/user/<uid>/MyApp (Linux)

For Path objects instead of strings:

from platformdirs import PlatformDirs

dirs = PlatformDirs("MyApp", "MyCompany")
dirs.user_data_path  # pathlib.Path('~/.local/share/MyApp')
dirs.user_config_path  # pathlib.Path('~/.config/MyApp')

Convenience functions for quick access:

from platformdirs import user_data_dir, user_config_path

user_data_dir("MyApp", "MyCompany")  # returns str
user_config_path("MyApp", "MyCompany")  # returns pathlib.Path

Directory types

Application directories — scoped to your app name and version:

  • Data: Persistent application data (user_data_dir, site_data_dir)
  • Config: Configuration files and settings (user_config_dir, site_config_dir)
  • Preference: User preferences, distinct from config on macOS (user_preference_dir)
  • Cache: Cached data that can be regenerated (user_cache_dir, site_cache_dir)
  • State: Non-essential runtime state like window positions (user_state_dir, site_state_dir)
  • Logs: Log files (user_log_dir, site_log_dir)
  • Runtime: Runtime files like sockets and PIDs (user_runtime_dir, site_runtime_dir)

App dirs have both user_* (per-user, writable) and site_* (system-wide, read-only) variants where applicable.

User media directories — standard user-facing folders, not scoped to app name:

  • Documents (user_documents_dir), Downloads (user_downloads_dir)
  • Pictures (user_pictures_dir), Videos (user_videos_dir), Music (user_music_dir)
  • Desktop (user_desktop_dir), Projects (user_projects_dir)
  • Public share (user_publicshare_dir), Templates (user_templates_dir)
  • Fonts (user_fonts_dir) — user-writable font installation directory
  • Executable (user_bin_dir, site_bin_dir), Applications (user_applications_dir, site_applications_dir)

Documentation

Full documentation is available at platformdirs.readthedocs.io:

  • Getting started tutorial -- learn core concepts through real-world examples
  • How-to guides -- recipes for common tasks and platform-specific tips
  • API reference -- complete list of functions and classes
  • Platform details -- default paths for each operating system

Contributions are welcome! See CONTRIBUTING.md for details.

Project links

Data verified by PyPI on Nov 27, 2026
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI.
  • Homepage
  • Source
  • Tracker
  • Changelog
  • Documentation

Key dates

PyPI data
Data sourced directly from PyPI's database.
  • Released: Nov 27, 2026
Latest release

Owner

PyPI data
Data sourced directly from PyPI's database.
  • tox

3 maintainers

PyPI data
Data sourced directly from PyPI's database.
Avatar for Julian from gravatar.com Julian Avatar for Ofekmeister from gravatar.com Ofekmeister Avatar for ronny from gravatar.com ronny

Credits

Maintainer: Bernát Gábor

GitHub Statistics

Data verified by PyPI on Nov 27, 2026
The GitHub source repository was provided by the project maintainers and verified by PyPI at the time of upload. Stars, forks, and open issues/PRs are derived from that repository and have not been independently verified.
  • Repository
  • Stars:
  • Forks:
  • Open issues:
  • Open PRs:

Provenance

Data verified by PyPI on Nov 27, 2026
Data provided by the project maintainers and verified by PyPI at the time of upload.

Full provenance

Both files in this release have provenance metadata.

View provenance details

License expression

MIT
View SPDX License List

Requires

Python >=3.11

Tags

appdirs application cache directory log user

Classifiers

  • Development Status
    • 5 - Production/Stable
  • Intended Audience
    • Developers
  • Operating System
    • OS Independent
  • Programming Language
    • Python
    • Python :: 3 :: Only
    • Python :: 3.11
    • Python :: 3.12
    • Python :: 3.13
    • Python :: 3.14
    • Python :: 3.15
    • Python :: Implementation :: CPython
    • Python :: Implementation :: PyPy
  • Topic
    • Software Development :: Libraries :: Python Modules

Metadata

Project links

Data verified by PyPI on Nov 27, 2026
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI.
  • Homepage
  • Source
  • Tracker
  • Changelog
  • Documentation

Key dates

PyPI data
Data sourced directly from PyPI's database.
  • Released: Nov 27, 2026
Latest release

Owner

PyPI data
Data sourced directly from PyPI's database.
  • tox

3 maintainers

PyPI data
Data sourced directly from PyPI's database.
Avatar for Julian from gravatar.com Julian Avatar for Ofekmeister from gravatar.com Ofekmeister Avatar for ronny from gravatar.com ronny

Credits

Maintainer: Bernát Gábor

GitHub Statistics

Data verified by PyPI on Nov 27, 2026
The GitHub source repository was provided by the project maintainers and verified by PyPI at the time of upload. Stars, forks, and open issues/PRs are derived from that repository and have not been independently verified.
  • Repository
  • Stars:
  • Forks:
  • Open issues:
  • Open PRs:

Provenance

Data verified by PyPI on Nov 27, 2026
Data provided by the project maintainers and verified by PyPI at the time of upload.

Full provenance

Both files in this release have provenance metadata.

View provenance details

License expression

MIT
View SPDX License List

Requires

Python >=3.11

Tags

appdirs application cache directory log user

Classifiers

  • Development Status
    • 5 - Production/Stable
  • Intended Audience
    • Developers
  • Operating System
    • OS Independent
  • Programming Language
    • Python
    • Python :: 3 :: Only
    • Python :: 3.11
    • Python :: 3.12
    • Python :: 3.13
    • Python :: 3.14
    • Python :: 3.15
    • Python :: Implementation :: CPython
    • Python :: Implementation :: PyPy
  • Topic
    • Software Development :: Libraries :: Python Modules

Release files for platformdirs 4.14.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for platformdirs 4.14.9
File Size Uploaded Provenance Actions
platformdirs-4.14.9.tar.gz 87.7 kB Nov 27, 2026 With provenance Details for platformdirs-4.14.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for platformdirs 4.14.9
File Interpreter ABI Platform Actions Reset
platformdirs-4.14.9-py3-none-any.whl 94.3 kB Nov 27, 2026 With provenance Python 3 none any Details for platformdirs-4.14.9-py3-none-any.whl

Total release size: 182.0 kB

Release files / platformdirs-4.14.9.tar.gz

Download URL platformdirs-4.14.9.tar.gz
Size 87.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c6b188e03ffd4dfe1bf8c4bcb47cd94711af244a9852dbff60297bd753684d5d
BLAKE2b-256 checksum
How to use checksums
d696549558270586699a271a18b1111482dc3fc39baa0ef61d183e230d2c961d
Upload date Nov 27, 2026
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log
Identity
Publishing platform
GitHub Actions
Publishing repository
github.com/tox-dev/platformdirs
Publishing commit
github.com/tox-dev/platformdirs/tree/9b3e5caac466ede000ca9430a8a076e34c9f22cd
Workflow
Publishing configuration
github.com/tox-dev/platformdirs/blob/9b3e5caac466ede000ca9430a8a076e34c9f22cd/.github/workflows/release.yaml
Publishing logs
github.com/tox-dev/platformdirs/actions/runs/46066626011/attempts/1
Artifact
Subject
platformdirs-4.14.9.tar.gz
SHA-256 checksum
c6b188e03ffd4dfe1bf8c4bcb47cd94711af244a9852dbff60297bd753684d5d Verifying attestations

Release files / platformdirs-4.14.9-py3-none-any.whl

Download URL platformdirs-4.14.9-py3-none-any.whl
Size 94.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0d3a23e7ff282cfa94b77f5a22b81030dcb68ba0430f90c74f4bd8d090782ea
BLAKE2b-256 checksum
How to use checksums
3be7fc53dfd2f9469cce9be9c58385bdcdb5087e790c135c9dadd4cc8401bb3d
Upload date Nov 27, 2026
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log
Identity
Publishing platform
GitHub Actions
Publishing repository
github.com/tox-dev/platformdirs
Publishing commit
github.com/tox-dev/platformdirs/tree/9b3e5caac466ede000ca9430a8a076e34c9f22cd
Workflow
Publishing configuration
github.com/tox-dev/platformdirs/blob/9b3e5caac466ede000ca9430a8a076e34c9f22cd/.github/workflows/release.yaml
Publishing logs
github.com/tox-dev/platformdirs/actions/runs/46066626011/attempts/1
Artifact
Subject
platformdirs-4.14.9-py3-none-any.whl
SHA-256 checksum
d0d3a23e7ff282cfa94b77f5a22b81030dcb68ba0430f90c74f4bd8d090782ea Verifying attestations

Security for platformdirs 4.14.9

Report project as malware

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files
No files match the current filters. Reset filters

Attestation for platformdirs-4.14.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log
Identity
Publishing platform
GitHub Actions
Publishing repository
github.com/tox-dev/platformdirs
Publishing commit
github.com/tox-dev/platformdirs/tree/9b3e5caac466ede000ca9430a8a076e34c9f22cd
Workflow
Publishing configuration
github.com/tox-dev/platformdirs/blob/9b3e5caac466ede000ca9430a8a076e34c9f22cd/.github/workflows/release.yaml
Publishing logs
github.com/tox-dev/platformdirs/actions/runs/46066626011/attempts/1
Artifact
Subject
platformdirs-4.14.9.tar.gz
SHA-256 checksum
c6b188e03ffd4dfe1bf8c4bcb47cd94711af244a9852dbff60297bd753684d5d Verifying attestations

Attestation for platformdirs-4.14.9-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log
Identity
Publishing platform
GitHub Actions
Publishing repository
github.com/tox-dev/platformdirs
Publishing commit
github.com/tox-dev/platformdirs/tree/9b3e5caac466ede000ca9430a8a076e34c9f22cd
Workflow
Publishing configuration
github.com/tox-dev/platformdirs/blob/9b3e5caac466ede000ca9430a8a076e34c9f22cd/.github/workflows/release.yaml
Publishing logs
github.com/tox-dev/platformdirs/actions/runs/46066626011/attempts/1
Artifact
Subject
platformdirs-4.14.9-py3-none-any.whl
SHA-256 checksum
d0d3a23e7ff282cfa94b77f5a22b81030dcb68ba0430f90c74f4bd8d090782ea Verifying attestations

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.14.9 This release

Nov 27, 2026 2 release files Full provenance

4.14.8

Nov 20, 2026 2 release files Full provenance

4.14.7

Nov 17, 2026 2 release files Full provenance

4.14.6

Nov 17, 2026 2 release files Full provenance

4.14.5

Nov 4, 2026 2 release files Full provenance

4.14.4

Nov 4, 2026 2 release files Full provenance

4.14.3

Nov 1, 2026 2 release files Full provenance

4.14.2

Oct 31, 2026 2 release files Full provenance

4.14.0

Oct 28, 2026 2 release files Full provenance

4.13.7

Oct 28, 2026 2 release files Full provenance

4.13.6

Oct 27, 2026 2 release files Full provenance

4.13.5

Oct 19, 2026 2 release files Full provenance

4.13.4

Oct 17, 2026 2 release files Full provenance

4.13.3

Oct 16, 2026 2 release files Full provenance

4.13.2

Oct 16, 2026 2 release files Full provenance

4.13.1

Oct 15, 2026 2 release files Full provenance

4.13.0

Oct 11, 2026 2 release files Full provenance

4.12.4

Oct 7, 2026 2 release files Full provenance

4.12.3

Oct 3, 2026 2 release files Full provenance

4.12.2

Sep 29, 2026 2 release files Full provenance

4.12.1

Sep 28, 2026 2 release files Full provenance

4.12.0

Sep 26, 2026 2 release files Full provenance

4.11.15

Sep 26, 2026 2 release files Full provenance

4.11.14

Sep 25, 2026 2 release files Full provenance

4.11.13

Sep 25, 2026 2 release files Full provenance

4.11.12

Sep 22, 2026 2 release files Full provenance

4.11.11

Sep 19, 2026 2 release files Full provenance

4.11.10

Sep 18, 2026 2 release files Full provenance

4.11.9

Sep 16, 2026 2 release files Full provenance

4.11.8

Sep 8, 2026 2 release files Full provenance

4.11.7

Sep 1, 2026 2 release files Full provenance

4.11.6

Sep 1, 2026 2 release files Full provenance

4.11.5

Aug 27, 2026 2 release files Full provenance

4.11.4

Aug 24, 2026 2 release files Full provenance

4.11.3

Aug 13, 2026 2 release files Full provenance

4.11.2

Aug 10, 2026 2 release files Full provenance

4.11.1

Aug 7, 2026 2 release files Full provenance

4.11.0

Jul 21, 2026 2 release files Full provenance

4.10.1

Jul 18, 2026 2 release files Full provenance

4.10.0

May 28, 2026 2 release files Full provenance

4.9.6

Apr 9, 2026 2 release files Full provenance

4.9.4

Mar 5, 2026 2 release files Full provenance

4.9.2

Feb 16, 2026 2 release files Full provenance

4.9.1

Feb 14, 2026 2 release files Full provenance

4.9.0

Feb 14, 2026 2 release files Full provenance

4.8.0

Feb 14, 2026 2 release files Full provenance

4.7.1

Feb 13, 2026 2 release files Full provenance

4.7.0

Feb 12, 2026 2 release files Full provenance

4.6.0

Feb 12, 2026 2 release files Full provenance

4.5.1

Dec 5, 2025 2 release files Full provenance

4.5.0

Oct 8, 2025 2 release files Full provenance

4.4.0

Aug 26, 2025 2 release files Full provenance

4.3.8

May 7, 2025 2 release files Full provenance

4.3.7

Mar 19, 2025 2 release files Full provenance

4.3.6

Sep 17, 2024 2 release files No provenance

4.3.5

Sep 17, 2024 2 release files No provenance

4.3.4

Sep 17, 2024 2 release files No provenance

4.3.3

Sep 13, 2024 2 release files No provenance

4.3.2

Sep 8, 2024 2 release files No provenance

4.3.1

Sep 7, 2024 2 release files No provenance

4.3.0

Sep 7, 2024 2 release files No provenance

4.2.2

May 15, 2024 2 release files No provenance

4.2.1

Apr 23, 2024 2 release files No provenance

4.2.0

Jan 31, 2024 2 release files No provenance

4.1.0

Dec 4, 2023 2 release files No provenance

4.0.0

Nov 10, 2023 2 release files No provenance

3.11.0

Oct 2, 2023 2 release files No provenance

3.10.0

Jul 29, 2023 2 release files No provenance

3.9.1

Jul 15, 2023 2 release files No provenance

3.9.0

Jul 15, 2023 2 release files No provenance

3.8.1

Jul 6, 2023 2 release files No provenance

3.8.0

Jun 23, 2023 2 release files No provenance

3.7.0

Jun 21, 2023 2 release files No provenance

3.6.0

Jun 18, 2023 2 release files No provenance

3.5.3

Jun 10, 2023 2 release files No provenance

3.5.2

Jun 10, 2023 2 release files No provenance

3.5.1

May 11, 2023 2 release files No provenance

3.5.0

Apr 27, 2023 2 release files No provenance

3.4.0

Apr 26, 2023 2 release files No provenance

3.3.0

Apr 25, 2023 2 release files No provenance

3.2.0

Mar 25, 2023 2 release files No provenance

3.1.1

Mar 10, 2023 2 release files No provenance

3.1.0

Mar 3, 2023 2 release files No provenance

3.0.0

Feb 6, 2023 2 release files No provenance

2.6.2

Dec 28, 2022 2 release files No provenance

2.6.1

Dec 28, 2022 2 release files No provenance

2.6.0

Dec 7, 2022 2 release files No provenance

2.5.4

Nov 13, 2022 2 release files No provenance

2.5.3

Nov 6, 2022 2 release files No provenance

2.5.2

Apr 18, 2022 2 release files No provenance

2.5.1

Feb 19, 2022 2 release files No provenance

2.5.0

Feb 9, 2022 2 release files No provenance

2.4.1

Dec 26, 2021 2 release files No provenance

2.4.0

Sep 25, 2021 2 release files No provenance

2.3.0

Aug 30, 2021 2 release files No provenance

2.2.0

Jul 29, 2021 2 release files No provenance

2.1.0

Jul 25, 2021 2 release files No provenance

2.0.2

Jul 13, 2021 2 release files No provenance

2.0.0

Jul 12, 2021 2 release files No provenance

Pre-release

2.0.0a3

May 14, 2021 2 release files No provenance

Pre-release

2.0.0a2

May 13, 2021 2 release files No provenance

Pre-release

2.0.0a1

May 13, 2021 2 release files No provenance

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.