Python module that blocks the standard output, preventing print statements from being displayed
Project description
Block Stdout
A context manager that blocks the standard output when wrapped around print
statements.
Installation
python -m pip install block-stdout
Usage
from blockstdout import BlockPrint
def printer():
print('I will not be printed')
def tester():
print('I will be printed')
with BlockPrint():
printer()
print('I will also be printed')
if __name__ == '__main__':
tester()
Pypi Package
License & copyright
© Vignesh Rao
Licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for block_stdout-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfdfd03a1e3544dd22df740e98b299217b17c46889163ad425620fa266a1a66a |
|
MD5 | 65fb134512aa5b507d20198941bad4e3 |
|
BLAKE2b-256 | 039b817920eac1cdc29b710c3ab5dc41301e8574a278371040bbf89d2c6832b4 |