Skip to main content

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:

https://github.com/qiueer/cmds

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmds-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file cmds-0.1.1.tar.gz.

File metadata

  • Download URL: cmds-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 31659c9bf5ddd49207c1f52e8756e667c26565417cb483461ded23729c49cf07
MD5 fe2afdecff8c9d831fa505d5889822c6
BLAKE2b-256 802a3fe0559f2366bd86a633de373ca67a58547a7adbc06f0708be4ebb3409a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page