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
bpyshell
bpyshell.egg-info
build
conda
CONTRIBUTING.md
dist
docker-compose.yml
docs
env
index.ipynb
LICENSE
Makefile
MANIFEST.in
manpage.png
pyshell
pyshell.egg-info
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))
361548 .
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.
Metadata
Release files for bpyshell 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bpyshell-0.0.6.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bpyshell-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / bpyshell-0.0.6.tar.gz
| Download URL | bpyshell-0.0.6.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e7fe9f9607e16e2caa8d7a9a8edf435181c7bef9dfd8475727f7df31758e521
|
|
BLAKE2b-256 checksum How to use checksums |
a16ac661ca54f0e3bf46d4a4e158beadc730f35e852bf129dd000ea0a21ac7fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / bpyshell-0.0.6-py3-none-any.whl
| Download URL | bpyshell-0.0.6-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f5f9fcd43ce9bdf37dd86facc6b5d9e0065539d315eef273ce2f9ea9f204dd9
|
|
BLAKE2b-256 checksum How to use checksums |
e338dd3ca95a4708565864497d974579adc0c520e5044c095a4f5c5089fafba5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|