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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: libPyshell-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 dc8d9901543b75a9f29b56ffc555eece3d95760409aabfbddc86ceddb5a5db2b
MD5 1fb21122dc04538fbb1333279839953f
BLAKE2b-256 652ae244480290c25149b47e6935898339b9e4dec3471901cb7918e1c31242ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libPyshell-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11e8d7f4ef882029e26d3acebe5b044bec84f6f0a8ee15bbcac46e3be979386c
MD5 5be92c0e890814c4f657f3b61f5b9a30
BLAKE2b-256 549f589f6836a24e7e98ee160b78374d77d298c5e7c93738e3a770a663ca9a3c

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