Skip to content

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#

def get_command(self) -> str: ...

InteractiveProcess().readall#

Show source in interactive_process.py:97

Write input from stdin stream to process.

Arguments#

  • process - Popen process
  • inputs - Streams to read

Signature#

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

InteractiveProcess().run#

Show source in interactive_process.py:124

Run interactive process with input from stdin and output to stdout.

Arguments#

  • inputs - Input text streams
  • stdout - Process stdout text stream

Raises#

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

Returns#

Process status code

Signature#

def run(self, inputs: Sequence[TInput] = (), stdout: TextIO = default_stdout) -> int: ...

See also#

InteractiveProcess().writeall#

Show source in interactive_process.py:44

Read output from process to stdout stream.

Arguments#

  • process - Popen process
  • stdout - Stream to write

Signature#

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