Skip to main content

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.

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bpyshell-0.0.6-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

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

Hashes for bpyshell-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1e7fe9f9607e16e2caa8d7a9a8edf435181c7bef9dfd8475727f7df31758e521
MD5 b8f095abfcfe2e3b360c0b7a0a2630a5
BLAKE2b-256 a16ac661ca54f0e3bf46d4a4e158beadc730f35e852bf129dd000ea0a21ac7fb

See more details on using hashes here.

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

Hashes for bpyshell-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9f5f9fcd43ce9bdf37dd86facc6b5d9e0065539d315eef273ce2f9ea9f204dd9
MD5 6465aba0388b7851656d18d2662ad362
BLAKE2b-256 e338dd3ca95a4708565864497d974579adc0c520e5044c095a4f5c5089fafba5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page