A Shell object
Project description
pyshell
A Shell class to exectue shell commands as object methods.
Install
pip install bpyshell
How to use
Import
from pyshell.core import *
Create a shell object
sh = Shell()
Call shell commands as object methods
print(sh.ls())
00_core.ipynb
autocomplete.png
CONTRIBUTING.md
docker-compose.yml
docs
index.ipynb
LICENSE
Makefile
MANIFEST.in
manpage.png
pyshell
README.md
settings.ini
setup.py
Use the flags
kwarg for single dash arguments
print(sh.ls('.giti*', flags='a'))
.gitignore
Use kwargs for double dash arguments
print(sh.du('.', max_depth=0))
324 .
You can use tab to autocomplete:
If there is a man page, it becomes the method's docstring
Limitations
Each command is executed as a different process.
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
bpyshell-0.0.3.tar.gz
(10.2 kB
view details)
Built Distribution
File details
Details for the file bpyshell-0.0.3.tar.gz
.
File metadata
- Download URL: bpyshell-0.0.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b37f0be1b8c965f513ba31655fc7017494c5a2cf7438ce0fdfc7ab8a39b12a9 |
|
MD5 | e14c574aa4f4732eb9267aea940135ba |
|
BLAKE2b-256 | 0b3586a87c4b06229f559f0c2951725e54d27d9331df1965d9ec9371225af1ab |
File details
Details for the file bpyshell-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: bpyshell-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e015a91bf11c30209bd9626f750e43cd28eb169e35c4569528c8d2802b87fde |
|
MD5 | 67e5bc8587f727a003011359a42d187e |
|
BLAKE2b-256 | 3542c92dc20ac98604f5c5bc2220683aca776dc3b9333da09b03f016ecd5d6c0 |