easy to use `Popen`
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
k3proc-0.2.11.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file k3proc-0.2.11.tar.gz
.
File metadata
- Download URL: k3proc-0.2.11.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1eb4d972f85c486ab0752af2ad871994dd4124edca4df1435a1f8c676f42c2b |
|
MD5 | 5838ea84963d1481b04201ae52d21ceb |
|
BLAKE2b-256 | b5d44de1512ce4d57dc0d021ce5cfaa055f91a7efdab10487db00bcbb7e1fb0f |
File details
Details for the file k3proc-0.2.11-py3-none-any.whl
.
File metadata
- Download URL: k3proc-0.2.11-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 519b24c97c683598905df20d94ba3b9ad668789c4d191091ef424c472c2c4dad |
|
MD5 | 1ce94524361c1105d51e7b4559be8de2 |
|
BLAKE2b-256 | e20c7abbc2644078602d7bed5cc59f54029d2730ea75de60fcadbdb34f0f156b |