{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/11"}],"enrichment":{"capability":"Wraps psutil to allow multiple independent instances in the same process by isolating global state, solving the library's inherent limitation of maintaining state through global variables.","skillfed_tags":["psutil-wrapper","state-isolation","home-assistant"],"use_cases":["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"],"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.\n\nThe 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\u2014such as monitoring different system aspects simultaneously or running psutil operations in parallel\u2014without the complications of global state interference. The implementation is straightforward and carries low installation friction.","worth_installing":"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\u2014use psutil directly instead."},"id":"psutil-home-assistant","links":{"html":"https://skillfed.io/packages/psutil-home-assistant","md":"https://skillfed.io/packages/psutil-home-assistant.md","pypi":"https://pypi.org/project/psutil-home-assistant/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-08-25","license_spdx":null,"license_treatment":"permissive","name":"psutil-home-assistant","python_support":"supports_current","summary":"Wrapper for psutil to allow it to be used several times in the same process."},"popularity":{"monthly_downloads":568536,"position":5966,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.1"}
