pc.py is a layer on top of subprocess. The subprocess module supports a rich API but is clumsy for many common use cases, namely sync/async fork-exec, command substitution and pipelining, all of which is trivial to do on system shells.
The goal is to make Python a sane alternative to non-trivial shell scripts.
Features:
Easy to fork-exec commands, wait or no wait
Easy to capture stdout/stderr of children (command substitution)
Easy to express I/O redirections
Easy to construct pipelines
Use short names for easy interactive typing
Documentation is at <http://github.com/aht/pc.py/>.
This module depends on Python 2.6, or where subprocess is available. Doctests require /bin/sh to pass. Tested on Linux.
This is an alpha release. Expect bugs.
Metadata
Release files for pc 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pc-0.0.3.tar.gz | 5.7 kB | Details |
Release files / pc-0.0.3.tar.gz
| Download URL | pc-0.0.3.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13c6a7e0e5b253f26191f89937cdb81ff8fff4d95c6af122bd5bfe8d7e010063
|
|
BLAKE2b-256 checksum How to use checksums |
a1672261b2ce4203c7777a8ab30d1a88c52cff236a4d5c67dbc30150aac303dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |