types-appdirs
Typing stubs for appdirs
What it is and what it does
types-appdirs is a PEP 561 type stub package that adds static type information to the appdirs library. It allows type checkers like mypy, pyright, and pytype to understand and validate code that uses appdirs, catching type errors at development time rather than runtime.
The package is generated from typeshed and serves as a bridge for projects still using appdirs. However, the description explicitly states the package is unmaintained and won't be updated. The appdirs library itself has been deprecated in favor of platformdirs, which includes native type support via a py.typed file, making this stub package unnecessary for new projects.
Use it for:
- Enable type checking in legacy codebases that still depend on appdirs without migrating to platformdirs.
- Satisfy type checker requirements in projects using appdirs while maintaining compatibility with existing code.
- Provide IDE autocomplete and type hints for appdirs calls in editors like PyCharm and VS Code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the appdirs package to enable static type checking with mypy, pyright, pytype, and similar tools.
No, unless you are maintaining legacy code that uses appdirs and cannot migrate to platformdirs. The package is unmaintained and will not receive updates. New projects should use platformdirs directly, which provides native type support without requiring a separate stub package.
Install
types-appdirs on PyPI
pip
pip install types-appdirsuv
uv add types-appdirspoetry
poetry add types-appdirsInstalling types-appdirs
Before you install
Low install friction with no runtime dependencies. However, the package is unmaintained and won't be updated; the description explicitly recommends migrating to platformdirs instead, which ships with native type support.
License in practice
Apache-2.0 license is permissive and poses no restrictions on use, modification, or distribution in most contexts.
Quickstart
pip install types-appdirs
# Then use appdirs in your code; type checkers will now understand its types
import appdirs
config_dir = appdirs.user_config_dir('myapp')
Requires appdirs to be installed separately; this package only provides type information for it.
Verify before relying
- Whether type coverage is complete for all appdirs APIs or if gaps remain.
- Compatibility with the latest versions of mypy, pyright, and other type checkers.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,249 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 228,916/month — #9,142 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_appdirs-1.4.3.5-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
appdirs-stubsProvides type stubs for the appdirs package,…
permissive · top 15,000 on PyPI
types-contextvarsProvides type stubs for Python's contextvars…
permissive · top 15,000 on PyPI
types-Flask-SQLAlchemyProvides type stubs for Flask-SQLAlchemy to…
permissive · top 15,000 on PyPI
types-dataclassesProvides type stubs for Python's dataclasses…
permissive · top 15,000 on PyPI
types-FlaskProvides PEP 561 type stubs for Flask to enable…
permissive · top 5,000 on PyPI
types-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy,…
permissive · top 15,000 on PyPI
types-enum34Provides type stubs for the enum34 package,…
permissive · top 15,000 on PyPI
homeassistant-stubsProvides PEP 484 type stubs for Home Assistant…
permissive · top 15,000 on PyPI
pystowPyStow provides a standardized way to store and…
permissive · top 15,000 on PyPI