cmds for Python
Project description
A library that enables easy running and concatenation of bash commands in python
Installation
Install using pip:
pip install cmds
Install using source code:
git clone https://github.com/qiueer/cmds cd cmds python setup.py install
Usage
Run commands as you would in bash:
>>> from cmds import cmds >>> cmds('ls . | grep ".pyc"') cmds.pyc
Chain commands for the same effect:
>>> cmds('ls . ').cmds('grep ".pyc"') cmds.pyc
Warning
Please note that this library uses shell=True under the hood. This means that this library is NOT suitable for running untrusted commands. (See explanation)
Support + Contributing
Feel free to make pull requests, or report issues via the repo:
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
cmds-0.1-py2.7.egg
(3.6 kB
view hashes)