types-psutil
Typing stubs for psutil
Decision gist · record as of 2026-08-14
Yes, if you use psutil and run a type checker. It is a lightweight, actively maintained stub package with no runtime dependencies and permissive licensing. Install it alongside psutil to get accurate type hints during development. No reason not to if you are already using a type checker.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; type checking requires a compatible type checker like mypy 2.1.0 or pyright 1.1.409.
- Low friction installation with no runtime dependencies.
- Maintained as part of the typeshed project with active updates; last release 88 days ago.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most projects without significant legal constraints.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,860,145 downloads/mo, #1,685 on PyPI
Alternatives
Verify before relying
pip install types-psutil
# In your code, type checkers will now understand psutil imports:
import psutil
proc: psutil.Process = psutil.Process()- Whether types-psutil stays synchronized with psutil releases beyond 7.2.2
- Coverage completeness for all psutil APIs in the current version
What it is and what it does
types-psutil is a type stub package that provides type annotations for psutil, the system and process monitoring library. It allows static type checkers—mypy, pyright, and others—to understand and validate code that imports and uses psutil, catching type errors at development time rather than runtime.
The package is maintained as part of typeshed, the standard repository of type stubs for the Python ecosystem. This version targets psutil 7.2.2 and has been tested with mypy 2.1.0 and pyright 1.1.409. Installation adds no runtime overhead; it only affects type checking. It requires Python 3.10 or later.
Use it for
- Enable mypy or pyright to type-check code that calls psutil functions for CPU, memory, or process information.
- Catch incorrect argument types or missing attributes when working with psutil.Process or psutil.sensors in an IDE with inline type checking.
- Maintain type safety in system administration or monitoring scripts that rely on psutil's API.
- Integrate psutil into a larger typed codebase without losing type information at module boundaries.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use psutil and run a type checker.
It is a lightweight, actively maintained stub package with no runtime dependencies and permissive licensing. Install it alongside psutil to get accurate type hints during development. No reason not to if you are already using a type checker.
Install
types-psutil on PyPI
Before you install
Low friction installation with no runtime dependencies. Maintained as part of the typeshed project with active updates; last release 88 days ago.
Requires Python 3.10 or later; type checking requires a compatible type checker like mypy 2.1.0 or pyright 1.1.409.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant legal constraints.
Quickstart
pip install types-psutil
# In your code, type checkers will now understand psutil imports:
import psutil
proc: psutil.Process = psutil.Process()
Verify before relying
- Whether types-psutil stays synchronized with psutil releases beyond 7.2.2
- Coverage completeness for all psutil APIs in the current version
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,860,145 / month, #1,685 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_psutil-7.2.2.20260518-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “psutil type stubs”
- types-psutilProvides type annotations for the psutil library, enabling type…
- psutil-home-assistantWraps psutil to allow multiple independent instances in the same…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also types-toml · types-mock · types-polib · types-pyperclip · types-docutils · types-pexpect · psutil · types-jmespath · types-python-dateutil · types-simplejson