cmds for python
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:
Metadata
Release files for cmds 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmds-0.1.1.tar.gz | 2.9 kB | Without provenance | Details for cmds-0.1.1.tar.gz |
Release files / cmds-0.1.1.tar.gz
| Download URL | cmds-0.1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31659c9bf5ddd49207c1f52e8756e667c26565417cb483461ded23729c49cf07
|
|
BLAKE2b-256 checksum How to use checksums |
802a3fe0559f2366bd86a633de373ca67a58547a7adbc06f0708be4ebb3409a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cmds 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.