Metadata-Version: 2.4
Name: subprocess4
Version: 0.1.1
Summary: Python subprocess wrapper using os.wait4 to get resource usage
Project-URL: Homepage, https://github.com/JasonGross/subprocess4
Project-URL: Bug Tracker, https://github.com/JasonGross/subprocess4/issues
Author-email: Jason Gross <jgross@mit.edu>
License-File: LICENSE
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# subprocess4

Python subprocess wrapper using `os.wait4()` to get resource usage. Requires Python 3.8+ and POSIX.

```python
import subprocess4

result = subprocess4.run(['ls', '-l'], capture_output=True)
print(result.rusage.ru_utime)  # User CPU time

returncode, rusage = subprocess4.call4(['python', '--version'])
proc = subprocess4.Popen(['cmd'])
returncode, rusage = proc.wait4()
```
