skip to navigation
skip to content

processy 1.0.2

A popen wrapper.

Latest Version: 1.0.7

# processy

### Description

*Processy* is a wrapper around `Popen` similar to the now built-in `` function, which was added in Python3.5. Prior to 3.5 there was no simple sane function to run subprocesses. This is why I made *processy*. The current implementation of `` still won't let you print and return stdout at the same time. *Processy* remains useful for that.

### ``
def run(
cmd: Union[list, str],
verbose: bool = True,
return_stdout: bool = False,
raise_err: bool = False,
) -> CompletedProcess:
@cmd: The Popen command.
@return_stdout: Returns the output from stdout.
@verbose: Print the output to stdout if True. If False call runs quite.
@raise_error: If subprocess return code is not 0.
# ...

### `CompletedProcess`

Since Python3.5 *processy* uses the return object `CompletedProcess` that was added to the subprocess module. It's almost identical to processy's old `ProcResult` object.'

args: Union[str, list]
returncode: int
stdout: Optiona[Union[str, bytes]]
stderr: Optiona[Union[str, bytes]]
File Type Py Version Uploaded on Size
processy-1.0.2-py3-none-any.whl (md5) Python Wheel 3.6 2017-10-12 3KB