Execute shell commands
Project description
shell-cmd Python package
Simple wrapper for executing shell commands using just one Python function.
Installation
$ pip install shell_cmd
Example
from shell_cmd import sh
# Printing output
print(sh("ls -l"))
# Getting output in a list
ll = sh("ls -l", True)
If error happens during the execution of the shell command, then RunShellException
custom exception is raised.
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
shell_cmd-0.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shell_cmd-0.0.1.tar.gz.
File metadata
- Download URL: shell_cmd-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
708be247bccaba663b9cca51e53ff3d09262571c8e75bc12a780f1c85b381703
|
|
| MD5 |
ca8ef90bd12e4bc6ec1942d1c00fea5b
|
|
| BLAKE2b-256 |
72df6cc971d59a73b87dfed514ed408acc780f4a64eaf3ffd30e6869f0f77752
|
File details
Details for the file shell_cmd-0.0.1-py3-none-any.whl.
File metadata
- Download URL: shell_cmd-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
037da26ad9e018d00da5848e980b95d5d6caff7a7ef7a0c416322d8bd677eb2a
|
|
| MD5 |
68e7dca8c9428dbfda86bfeca67903a6
|
|
| BLAKE2b-256 |
1bd9d02fe35b187edef333a1d840819dafc113f0da517c31c094ca7b778d10df
|