Package: wnpp Severity: wishlist Owner: Edward Betts <edw...@4angle.com>
* Package name : stdio-mgr Version : 1.0.1 Upstream Author : Brian Skinn <bsk...@alum.mit.edu> * URL : https://github.com/bskinn/stdio-mgr * License : MIT Programming Lang: Python Description : Context manager for mocking/wrapping stdin/stdout/stderr This library offers a context manager for mocking and wrapping standard input, output, and error streams. It simplifies capturing and testing console inputs and outputs within Python applications. Unlike the standard library's contextlib, this tool provides a more concise way to handle stdin, stdout, and stderr simultaneously, making it particularly useful for managing user inputs and outputs in a controlled environment. Standard input can be pre-loaded or appended during the managed context, which allows for flexible and precise simulation of user interactions. Additionally, the library supports wrapping functions that generate output, enabling the modification of internal print calls within those functions. This library is a dependency of Home Assistant, the Python smart home platform. I plan to maintain it as part of the Home Assistant team.