psutil-home-assistant
Wrapper for psutil to allow it to be used several times in the same process.
Decision gist · record as of 2026-08-14
Yes, if you need to use psutil multiple times in the same process. The package solves a real constraint of psutil with minimal overhead and low installation friction. The permissive Apache 2.0 license poses no restrictions. However, if you only use psutil once per process, this wrapper adds unnecessary indirection—use psutil directly instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Low friction installation with a single pure-Python dependency.
- Actively maintained as of July 2026, though the package itself has not been updated since its initial release in August 2022.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
last release 2022-08-25 (1450 days) · last repo commit 2026-07-29 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 568,536 downloads/mo, #5,966 on PyPI
Alternatives
Verify before relying
pip install psutil-home-assistant
from psutil_home_assistant import PSUtilWrapper
psutil_instance = PSUtilWrapper()
cpu_percent = psutil_instance.cpu_percent()- Whether the wrapper fully isolates all psutil global state or only specific variables
- Performance overhead of wrapping psutil instances compared to direct usage
- Compatibility with all psutil versions or specific version constraints
What it is and what it does
psutil-home-assistant is a wrapper around the psutil library that addresses a fundamental limitation: psutil uses global variables to maintain state between calls, which prevents it from being instantiated multiple times safely within a single process. This wrapper creates isolated, local copies of psutil functionality, each wrapped in an object, allowing you to use psutil multiple times concurrently without state collisions.
The package is a thin adapter layer with a single runtime dependency on psutil itself. It's designed for scenarios where you need independent psutil instances—such as monitoring different system aspects simultaneously or running psutil operations in parallel—without the complications of global state interference. The implementation is straightforward and carries low installation friction.
Use it for
- Running multiple concurrent psutil queries in a single process without state conflicts
- Monitoring different system metrics independently within the same application
- Building Home Assistant integrations that need isolated psutil instances for different devices or sensors
- Testing psutil-dependent code where multiple test cases need independent psutil state
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to use psutil multiple times in the same process.
The package solves a real constraint of psutil with minimal overhead and low installation friction. The permissive Apache 2.0 license poses no restrictions. However, if you only use psutil once per process, this wrapper adds unnecessary indirection—use psutil directly instead.
Install
psutil-home-assistant on PyPI
Before you install
Low friction installation with a single pure-Python dependency. Actively maintained as of July 2026, though the package itself has not been updated since its initial release in August 2022.
Requires Python 3.8 or later.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install psutil-home-assistant
from psutil_home_assistant import PSUtilWrapper
psutil_instance = PSUtilWrapper()
cpu_percent = psutil_instance.cpu_percent()
Verify before relying
- Whether the wrapper fully isolates all psutil global state or only specific variables
- Performance overhead of wrapping psutil instances compared to direct usage
- Compatibility with all psutil versions or specific version constraints
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepsutil |
| Maintenance | Actively maintained 1,450 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 568,536 / month, #5,966 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: psutil_home_assistant-0.0.1-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 wrapper multiple instances”
- psutil-home-assistantWraps psutil to allow multiple independent instances in the same…
- mozsystemmonitorMonitors system resource usage by wrapping psutil, primarily for…
- types-psutilProvides type annotations for the psutil library, enabling type…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also xlocal · psutil · synchronicity · adguardhome · async-lru · lockfile · redlock-py · singleton-decorator · mozsystemmonitor · loky