A Shell object
Project description
pyshell
A Shell class to exectue shell commands as object methods.
Install
git clone git@github.com:ababino/pyshell.git
cd pyshell
pip install .
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.2.tar.gz
(10.2 kB
view details)
Built Distribution
File details
Details for the file bpyshell-0.0.2.tar.gz
.
File metadata
- Download URL: bpyshell-0.0.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9ef9654d40af248db6bf04966cac24c5d75585339855575c7093c77a89e56e |
|
MD5 | 01adedf22793c6cba1b9011a9bf6d0e4 |
|
BLAKE2b-256 | 897e486b9a2180319a8d473ac878816eead524cf36560ff0298d51c6ce679fb6 |
File details
Details for the file bpyshell-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: bpyshell-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607c7487af46b9b2fde9a37bb644ae1213819a223291d00b1d35d3789c9c3cec |
|
MD5 | 3fe6c4892645de70b6bcbcf12cfbd1cf |
|
BLAKE2b-256 | 077cacc010039a76ab9e2c89c13512cb938726bac1b8c7e2cf598aaa8137b9bb |