InteractiveProcess#
Awscliv2 Index / Awscliv2 / InteractiveProcess
Auto-generated documentation for awscliv2.interactive_process module.
InteractiveProcess#
Show source in interactive_process.py:20
Wrapper for subrocess.Popen with interactive input support.
Signature#
class InteractiveProcess:
def __init__(self, command: Sequence[str], encoding: str = ENCODING) -> None: ...
See also#
InteractiveProcess().get_command#
Show source in interactive_process.py:38
Get command as a string.
Signature#
InteractiveProcess().readall#
Show source in interactive_process.py:97
Write input from stdin stream to process.
Arguments#
process- Popen processinputs- Streams to read
Signature#
InteractiveProcess().run#
Show source in interactive_process.py:124
Run interactive process with input from stdin and output to stdout.
Arguments#
inputs- Input text streamsstdout- Process stdout text stream
Raises#
ExecutableNotFoundError- Process executable not foundSubprocessError- Process error
Returns#
Process status code
Signature#
See also#
InteractiveProcess().writeall#
Show source in interactive_process.py:44
Read output from process to stdout stream.
Arguments#
process- Popen processstdout- Stream to write