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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: libPyshell-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a8d13607f2e2531229c2e1bf1cbb873b54bab01ff09621897e82b7d4741fe113
MD5 446bed8cb8de7bf429f5f32bcb7560e1
BLAKE2b-256 37437cb7b82db9024b06763df9ba76ada7b49ecd9dd1f02bfc536c4bfe10ff53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libPyshell-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6433deefa839a1f2336d111a653b4e3ecee054025855515fcf48c1397bde190d
MD5 ebab697a4590baa2510c02e560ff7267
BLAKE2b-256 1cf3d622d09e38107266247e0143a11b84424c843d4d72d6402d3c8ada8e3a63

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