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.0a0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for python_run_cmd-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4816504ba992e9bb892b4fc7effc553e9ab79e6631f2472e4b529e46f4694575 |
|
MD5 | 9a1bf197dfbd0f9b082e0cafcd8987f7 |
|
BLAKE2b-256 | d4bba86f92a86dbdf7b778fefc2d41ddbd0299a4016e67db158ab19ae9089720 |