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
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.
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.6.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file bpyshell-0.0.6.tar.gz
.
File metadata
- Download URL: bpyshell-0.0.6.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7fe9f9607e16e2caa8d7a9a8edf435181c7bef9dfd8475727f7df31758e521 |
|
MD5 | b8f095abfcfe2e3b360c0b7a0a2630a5 |
|
BLAKE2b-256 | a16ac661ca54f0e3bf46d4a4e158beadc730f35e852bf129dd000ea0a21ac7fb |
File details
Details for the file bpyshell-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: bpyshell-0.0.6-py3-none-any.whl
- Upload date:
- Size: 8.8 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 | 9f5f9fcd43ce9bdf37dd86facc6b5d9e0065539d315eef273ce2f9ea9f204dd9 |
|
MD5 | 6465aba0388b7851656d18d2662ad362 |
|
BLAKE2b-256 | e338dd3ca95a4708565864497d974579adc0c520e5044c095a4f5c5089fafba5 |