Skip to main content

Python module that blocks the standard output, preventing print statements from being displayed

Project description

Block Print

Just blocks standard output

Installation

python -m pip install block-print

Usage

from blockprint 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()

Linting

PreCommit will ensure linting, and the doc creation are run on every commit.

Requirement

pip install sphinx==5.1.1 pre-commit recommonmark pytest

Usage

pre-commit run --all-files

Pypi Package

pypi-module

License & copyright

© Vignesh Rao

Licensed under the [MIT License][license]

Project details


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

block_stdout-0.0a0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page