Skip to main content

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

pypi-module

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)

Table of built distributions (wheels) for block-stdout 0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page