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.10.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file k3proc-0.2.10.tar.gz
.
File metadata
- Download URL: k3proc-0.2.10.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b7e8ad566c29811dcd89a7bd4f93dfaf35fc0e158ec81f9cb9b0d2cac79053f |
|
MD5 | b6b5ec61d991934913fa878b0271e3d9 |
|
BLAKE2b-256 | b9abf8b5ac3403241e6d0a54cf577c658c5d27626f40ac8604b1bf78105667c3 |
File details
Details for the file k3proc-0.2.10-py3-none-any.whl
.
File metadata
- Download URL: k3proc-0.2.10-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe11f67ef10666c5fdd21f5300e6a525ae5d524bd79612e3e50359523faa0b5c |
|
MD5 | af27a6db751edeb68c97904c52f31c28 |
|
BLAKE2b-256 | a4a6ec495df5dde72d48dbc169beaad16a3bba71f115b529c97d15c7e3b5b94c |