# processy
### Description
*Processy* is a wrapper around `Popen` similar to the now built-in `subprocess.run()` 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 `subprocess.run()` still won't let you print and return stdout at the same time. *Processy* remains useful for that.
### `processy.run()`
```python
def run(
cmd: Union[list, str],
verbose: bool = True,
return_stdout: bool = False,
raise_err: bool = False,
**popen_kwargs
) -> CompletedProcess:
"""
@cmd: The Popen command. If it's a string shlex is used to split it.
@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.'
```python
CompletedProcess(
args: Union[str, list]
returncode: int
stdout: Optiona[Union[str, bytes]]
stderr: Optiona[Union[str, bytes]]
)
```
Metadata
Release files for processy 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| processy-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for processy-1.0.7-py3-none-any.whl |
Release files / processy-1.0.7-py3-none-any.whl
| Download URL | processy-1.0.7-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec43b64c60300d809b6d37183669025429efeb994c59dbc351afa3236d3b47c3
|
|
BLAKE2b-256 checksum How to use checksums |
8ecb29333712d236620ae555abce170cabe65012d902ad7df42b719e43081d6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for processy 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.