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.

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)

Source distribution for bpyshell 0.0.6
File Size Uploaded
bpyshell-0.0.6.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bpyshell 0.0.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page