command
Asynchronous subprocess with a future compatible interface.
Usage
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
__iter__()__or__()
Alias of [pipe][futured.command.pipe].
Usage
__or__(other)coroutine()
Create a subprocess coroutine, suitable for timeouts.
Usage
coroutine(*args, shell=False, **kwargs)pipe()
Pipe stdout to the next command’s stdin.
Usage
pipe(*args, **kwargs)result()
Return stdout or raise stderr.
Usage
result(**kwargs)