Metadata-Version: 2.1
Name: subprocess-tee
Version: 0.3.1
Summary: subprocess-tee
Home-page: https://github.com/pycontribs/subprocess-tee
Author: Sorin Sbarnea
Author-email: sorin.sbarnea@gmail.com
Maintainer: Sorin Sbarnea
Maintainer-email: sorin.sbarnea@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/pycontribs/subprocess-tee/issues
Project-URL: Release Management, https://github.com/pycontribs/subprocess-tee/releases
Project-URL: CI, https://github.com/pycontribs/subprocess-tee/actions
Project-URL: Code of Conduct, https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
Project-URL: Documentation, https://subprocess-tee.readthedocs.io
Project-URL: Discussions, https://github.com/pycontribs/subprocess-tee/discussions
Project-URL: Source Code, https://github.com/pycontribs/subprocess-tee
Description: # 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.
        
Keywords: subprocess,asyncio
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
