command

Asynchronous subprocess with a future compatible interface.

Usage

Source

command()

Methods

Name Description
__iter__() Return output lines.
__or__() Alias of [pipe][futured.command.pipe].
coroutine() Create a subprocess coroutine, suitable for timeouts.
pipe() Pipe stdout to the next command’s stdin.
result() Return stdout or raise stderr.

__iter__()

Return output lines.

Usage

Source

__iter__()

__or__()

Alias of [pipe][futured.command.pipe].

Usage

Source

__or__(other)

coroutine()

Create a subprocess coroutine, suitable for timeouts.

Usage

Source

coroutine(*args, shell=False, **kwargs)

pipe()

Pipe stdout to the next command’s stdin.

Usage

Source

pipe(*args, **kwargs)

result()

Return stdout or raise stderr.

Usage

Source

result(**kwargs)