RunM is an opinionated version of subprocess, making it just that little bit more convenient to run shell commands from within Python code.
It is reasonably straightforward: ` import runm runm.run("echo it works") #=> returns 'it works\n' runm.run("echo 1 2 5 |cat") #=> returns '1 2 5\n' ` When a command that fails is run e.g. ` runm.run("cat /not_a_file") ` an exception is raised just like subprocess. However, the error message generated includes STDERR and STDOUT, which is more convenient for debugging.
Installation
commandeer can be installed by unzipping the source code in one directory and using this command:
sudo python setup.py install
You can also install it directly from the Python Package Index with this command:
sudo pip install runm
Licence
See file LICENCE.txt in this folder
Contribute
RunM is an open-source software. Everyone is welcome to contribute !
Metadata
Release files for runm 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| runm-0.0.2.tar.gz | 6.0 kB | Details |
Release files / runm-0.0.2.tar.gz
| Download URL | runm-0.0.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
def316cc83b0a06046c19010532e519a93a3ca5828933365090cacbd3a56da94
|
|
BLAKE2b-256 checksum How to use checksums |
82672e1683ac062e9cb9ba4b0b9aad3103678dbb6126e1f0ff775dc5fe53f868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |