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

© 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 Actions
block_stdout-0.3-py3-none-any.whl Python 3 none any Details for block_stdout-0.3-py3-none-any.whl

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

Security for block-stdout 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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