Skip to main content

Support for writing shell scripts in Python

Project description

Pyshell

A python module for writing shell-scripts in Python. It introduces new functionality, bundles functions distributed over several modules of Python's standard library in one place and provides several auxiliary functions.

The function's provided by the shell module are named after the corresponding Unix commands.

Here's a quick demo:

from shell import *

rm('a/b/foo.txt')
mv('X.pdf', f'{HOME}/contents.pdf')

files = ls('Documents', '*.txt', '*.c')
magicFiles = run(['grep', 'magic'] + files, captureStdout=splitLines, onError='ignore').stdout

Assumes Python 3.

API documentation

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

libPyshell-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

libPyshell-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file libPyshell-0.1.0.tar.gz.

File metadata

  • Download URL: libPyshell-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for libPyshell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8983565df277d606e6cbb7969ccb96af82dcd97a431df01076bf68ae39b74f9f
MD5 3d4dc6c00a845d1a3c3edf541221513b
BLAKE2b-256 2fa81e33e94f59fef8dd4ab8e7d557fed968e2983cb5ab6084d7674155b8dbc1

See more details on using hashes here.

File details

Details for the file libPyshell-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: libPyshell-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for libPyshell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97cf18dc488f26e92ca642cf3357a0d8f3644ee3c27c4f61c4da95504fe73156
MD5 bd45a635d564d9e27bd080e26f69f5d1
BLAKE2b-256 362bcadb3213d74a81acb5f07bf05309bc79ac7c7c04d0f33b9bf543660b43da

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