Stdio-mgr

Latest version: v1.0.1

Safety actively analyzes 613705 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.0

Features

* `stdio_mgr` context manager with capability for mocking/wrapping all three
of `stdin`/`stdout`/`stderr`
* `stdin` mocking/wrapping is implemented with the custom `TeeStdin`, a
subclass of `StringIO`, which tees all content read from itself into
the mocked/wrapped `stdout`
* `TeeStdin` is extended from `StringIO` by an `.append()` method,
which adds content to the end of the stream without changing the
current seek position.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.