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

Uploaded Source

Built Distribution

libPyshell-0.1.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libPyshell-0.1.3.tar.gz
  • Upload date:
  • Size: 9.0 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.3.tar.gz
Algorithm Hash digest
SHA256 821fd4cd986763d9db94d287329759f87da58a415df7e765c0aa81c5c4226cdf
MD5 74aec952d635bbeeaaa6779e99b54b9b
BLAKE2b-256 c6742f2ae7accb10858f7fd3dcd9f681f878f95afd393849f7ef4a8a77e018e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libPyshell-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 302ead9dd37bb51484b465b5ba86bdfcd27070c3c9590e8f7119d0eeba9e6d77
MD5 1caac588b42a554685545d46a05def1e
BLAKE2b-256 139ff5ddcc3e204d5a2b73639d02795eb31fef08019f2b7b7429031cc0982e90

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