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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: libPyshell-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 db2f816abde96100aecafb36770da3f174e9b369f2fc64c1c46f26b863b2dd30
MD5 679dd5b2fb3b0ff94cf1a85eaa4f5f83
BLAKE2b-256 661ea42d9b11f09fa8ca5c3845e1855fd6d4954346cf6a9dfa10b1a24effac15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libPyshell-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dae6dcc7e6a623f492b9517cc4b53ad1c8b5036f452dcc014a39b4ea56b69a62
MD5 764eb4db515d7b7518fc6917b9f95cd9
BLAKE2b-256 e4c729cd2dea1bf2ebaf6bf89a529392932c05eec9c74ede3e88e16ee12841c0

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