Skip to main content

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:

autocomplete

If there is a man page, it becomes the method's docstring manpage

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.5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

bpyshell-0.0.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file bpyshell-0.0.5.tar.gz.

File metadata

  • Download URL: bpyshell-0.0.5.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for bpyshell-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6a11b0e788a7c0d4f5484b585dc0b3f6119ff08c1e3e8e66dbd5becb97ece7f0
MD5 d0837c144a5b5847dff146e39e3bb880
BLAKE2b-256 a323013b8d50a9aef43048f8c53198e179a5af48cd24b2fd29a5c301cca8d51b

See more details on using hashes here.

File details

Details for the file bpyshell-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: bpyshell-0.0.5-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

Hashes for bpyshell-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 73c8c04f1601d595f619e8f7fe5ce69f4b13aa8a550d4e4f6ad97ee0c3973dbe
MD5 4f7ba27b2a33e0db48558581f70ba84d
BLAKE2b-256 820544e620bcceeb5edbbddba92998248dfb49844357be9f19b16e25e695bc29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page