Skip to content
Sections
>> Trisquel >> Packages >> xolotl (13.0) >> python >> python3-stdio-mgr
[  xolotl  ]
[ Source: stdio-mgr  ]

Package: python3-stdio-mgr (1.0.1.1-1)

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.

Other Packages Related to python3-stdio-mgr

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-attr
    Attributes without boilerplate (Python 3)

Download python3-stdio-mgr

Download for all available architectures
Architecture Package Size Installed Size Files
all 10.9 kB37 kB [list of files]