subprocess-tee-0.4.2


توضیحات

subprocess-tee
ویژگی مقدار
سیستم عامل POSIX :: Linux
نام فایل subprocess-tee-0.4.2
نام subprocess-tee
نسخه کتابخانه 0.4.2
نگهدارنده []
ایمیل نگهدارنده ['Sorin Sbarnea <sorin.sbarnea@gmail.com>']
نویسنده -
ایمیل نویسنده Sorin Sbarnea <sorin.sbarnea@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/subprocess-tee/
مجوز MIT
# subprocess-tee This package provides a drop-in alternative to `subprocess.run` that captures the output while still printing it in **real-time**, just the way `tee` does. Printing output in real-time while still capturing is valuable for any tool that executes long-running child processes. For those, you do want to provide instant feedback (progress) related to what is happening. ```python # from subprocess import run from subprocess_tee import run result = run("echo 123") result.stdout == "123\n" ``` You can add `tee=False` to disable the tee functionality if you want, this being a much shorter alternative than adding the well known `stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL`. Keep in mind that `universal_newlines=True` is implied as we expect text processing, this being a divergence from the original `subprocess.run`. You can still use `check=True` in order to make it raise CompletedProcess exception when the result code is not zero.


نیازمندی

مقدار نام
xtr argparse-manpage;
xtr cairosvg;
xtr markdown-include;
xtr mkdocs;
xtr mkdocs-git-revision-date-localized-plugin;
xtr mkdocs-material;
xtr mkdocs-material-extensions;
xtr mkdocstrings;
xtr mkdocstrings-python;
xtr pillow;
xtr pymdown-extensions;
xtr enrich>=1.2.6;
xtr molecule>=3.4.0;
xtr pytest-cov>=2.12.1;
xtr pytest-plus>=0.2;
xtr pytest-xdist>=2.3.0;
xtr pytest>=6.2.5;


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl subprocess-tee-0.4.2:

    pip install subprocess-tee-0.4.2.whl


نصب پکیج tar.gz subprocess-tee-0.4.2:

    pip install subprocess-tee-0.4.2.tar.gz