Run a command within python
Project description
run-cmd
Run a command within python
Install it
pip install python-run-cmd
# pip install git+https://github.com/ffreemt/run-cmd
# poetry add git+https://github.com/ffreemt/run-cmd
# git clone https://github.com/ffreemt/run-cmd && cd run-cmd
Use it
from python_run_cmd import run_cmd
ret = run_cmd("ls -l")
if ret.returncode:
print("Failed")
else:
print("OK")
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
python_run_cmd-0.1.0a1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for python_run_cmd-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5db4c2ebc42b7a5f2cbd819716f80750bbcd49b41b905b5116fabf1bbf3561a |
|
MD5 | 8dd7e7471c6d3fe73bd74e792fa39b42 |
|
BLAKE2b-256 | eaaeacd4a30f84351140495d9388100584d749f68c3cd3dfcebaaefce467c32f |