InteractiveProcess#
Awscliv2 Index / Awscliv2 / InteractiveProcess
Auto-generated documentation for awscliv2.interactive_process module.
InteractiveProcess#
Show source in interactive_process.py:16
Wrapper for subrocess.Popen with interactive input support.
Signature#
class InteractiveProcess:
def __init__(self, command: Sequence[str], encoding: str = ENCODING) -> None: ...
See also#
InteractiveProcess().readall#
Show source in interactive_process.py:54
Write input from stdin
stream to process
.
Arguments#
process
- Popen processstdin
- Stream to read
Signature#
InteractiveProcess().run#
Show source in interactive_process.py:77
Run interactive process with input from stdin
and output to stdout
.
Arguments#
stdin
- Process stdin text streamstdout
- Process stdout text stream
Raises#
ExecutableNotFoundError
- Process executable not foundSubprocessError
- Process error
Returns#
Process status code
Signature#
InteractiveProcess().writeall#
Show source in interactive_process.py:30
Read output from process
to stdout
stream.
Arguments#
process
- Popen processstdout
- Stream to write