https://github.com/pykit3/k3proc
easy to use `Popen`
https://github.com/pykit3/k3proc
popen subprocess
Last synced: about 1 month ago
JSON representation
easy to use `Popen`
- Host: GitHub
- URL: https://github.com/pykit3/k3proc
- Owner: pykit3
- License: mit
- Created: 2020-05-26T09:16:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-28T12:38:03.000Z (6 months ago)
- Last Synced: 2025-09-25T15:58:19.657Z (5 months ago)
- Topics: popen, subprocess
- Language: Python
- Homepage: https://blog.openacid.com
- Size: 73.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k3proc
[](https://github.com/pykit3/k3proc/actions/workflows/python-package.yml)
[](https://k3proc.readthedocs.io/en/stable/?badge=stable)
[](https://pypi.org/project/k3proc)
easy to use `Popen`
k3proc is a component of [pykit3] project: a python3 toolkit set.
k3proc is utility to create sub process.
Execute a shell script::
>>> returncode, out, err = k3proc.shell_script('ls / | grep bin')
Run a command::
# Unlike the above snippet, following statement does not start an sh process.
returncode, out, err = k3proc.command('ls', 'a*', cwd='/usr/local')
# Install
```
pip install k3proc
```
# Synopsis
```python
>>> returncode, out, err = k3proc.shell_script('ls / | grep bin')
```
# Author
Zhang Yanpo (张炎泼)
# Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼)
[pykit3]: https://github.com/pykit3