Skip to content

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 process
  • stdin - Stream to read

Signature#

def readall(self, process: Popen, stdin: ignore) -> None: ...

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 stream
  • stdout - Process stdout text stream

Raises#

  • ExecutableNotFoundError - Process executable not found
  • SubprocessError - Process error

Returns#

Process status code

Signature#

def run(self, stdin: TextIO = default_stdin, stdout: TextIO = default_stdout) -> int: ...

InteractiveProcess().writeall#

Show source in interactive_process.py:30

Read output from process to stdout stream.

Arguments#

  • process - Popen process
  • stdout - Stream to write

Signature#

def writeall(self, process: Popen, stdout: ignore) -> None: ...