pytee2
pytee2 is a package providing functionalities of redirecting stdout and stderr to a string and an output file. The key feature of pytee2 is that it can redirect stdout and stderr from C binding invocations.
Table of Contents
Installation
pip install pytee2
Usage
from pytee2 import Tee
tee = Tee(output_filepath='output.txt')
tee.start()
# do many things...
tee.stop()
Now the stdout and stderr have been saved to output.txt, and you can get the string version of the output by
capturedtext = tee.get_capturedtext()
Known issues
pytee2 cannot work properly on Windows. This issue should be fixed in the future.
License
pytee2 is distributed under the terms of the MIT license.
Metadata
Release files for pytee2 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytee2-0.0.1.tar.gz | 4.0 kB | Without provenance | Details for pytee2-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytee2-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pytee2-0.0.1-py3-none-any.whl |
Total release size: 8.0 kB
Release files / pytee2-0.0.1.tar.gz
| Download URL | pytee2-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e84a845dec8b42232400f6089cf6b487802503796933fe09f81d6e5b878f476e
|
|
BLAKE2b-256 checksum How to use checksums |
62b065c937c0e81c9aef8e6bfdf07b7b3ad4d6a81aef8a3df44836c84b9ad305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.26.0
|
Release files / pytee2-0.0.1-py3-none-any.whl
| Download URL | pytee2-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1f36fb62331ccd3e8c4a6fc0ef65b1f9ba3561364406e3eb0f640617b18f14b
|
|
BLAKE2b-256 checksum How to use checksums |
9599e454734ce3f5a10894d49448653887abfab6828c820fc294a52fba3f9ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.26.0
|
Security for pytee2 0.0.1
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.