Utility to create subprocess with support for timeout, tty, and text mode
Project description
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
>>> returncode, out, err = k3proc.shell_script('ls / | grep bin')
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file k3proc-0.2.15.tar.gz.
File metadata
- Download URL: k3proc-0.2.15.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ac1b882b1c3bd905d14f211a0cf7ce53b6378ebb5c38bcde63cae63979ff386
|
|
| MD5 |
dc764d9224d6e22573df084ea0d8981c
|
|
| BLAKE2b-256 |
9dc94ea08d7af8c8e00ea97cbf02f38c849a25730e4323b3c1b0e8f81dbc16a6
|
File details
Details for the file k3proc-0.2.15-py3-none-any.whl.
File metadata
- Download URL: k3proc-0.2.15-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5810e5f522cf5bc50e51c72d322049672b8a97d7e95c0d20ae336002261d82ce
|
|
| MD5 |
08330d72495a78b09c391d1d493618cc
|
|
| BLAKE2b-256 |
77f246d587109c567b36f1bb2c07d480eb5bfed46a546536f7b4e5eedeea0bf2
|