Skip to main content

Captures stdout

pip install capture-stdout-decorator
from capture_stdout_decorator import print_capture

@print_capture

def hahaha():

    print("babab")

    return 4

@print_capture(print_output=False, return_func_val=False)

def hahaha2():

    print("babab")

    return 4

x = hahaha()

print(f'{x=}')

y = hahaha2()

print(f'{y=}')



# output:

babab

x=(4, 'babab\n')

y='babab\n'

		

Metadata

Release files for capture-stdout-decorator 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capture-stdout-decorator 0.10
File Size Uploaded Provenance Actions
capture_stdout_decorator-0.10.tar.gz 3.2 kB Without provenance Details for capture_stdout_decorator-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for capture-stdout-decorator 0.10
File Interpreter ABI Platform Actions
capture_stdout_decorator-0.10-py3-none-any.whl Python 3 none any Details for capture_stdout_decorator-0.10-py3-none-any.whl

Total release size: 7.9 kB

Release files / capture_stdout_decorator-0.10.tar.gz

Download URL capture_stdout_decorator-0.10.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3050c7511491f0607605e6c043a0c4b5edc8c7fc02e5a36895ff3ad80baeddb9
BLAKE2b-256 checksum
How to use checksums
1152af819e625edb0b66a7913e4e77de77d16b1832816b44a1ed1a97a5e97407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / capture_stdout_decorator-0.10-py3-none-any.whl

Download URL capture_stdout_decorator-0.10-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec61ae42a7558f0751476320c29ff2bd11edf5e44763a95bc40fce1c5adb6605
BLAKE2b-256 checksum
How to use checksums
dee17c95f014a63970bedd455884277e47015a05788c85b7b3f2cb7a9ee837e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for capture-stdout-decorator 0.10

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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

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