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
Metadata
Release files for block-stdout 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| block_stdout-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / block_stdout-0.3-py3-none-any.whl
| Download URL | block_stdout-0.3-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfdfd03a1e3544dd22df740e98b299217b17c46889163ad425620fa266a1a66a
|
|
BLAKE2b-256 checksum How to use checksums |
039b817920eac1cdc29b710c3ab5dc41301e8574a278371040bbf89d2c6832b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|