Skip to main content

Shortcut functions for shell scripting on Python 3.7+

Project description

#!/usr/bin/env python3.7

from shell_scripting import run, shell, shell_list

run("date | sed s/2018/2019/ > test.out")

print(shell("env | grep USER").stdout.split("\n"))

print(shell("cat /root/file"))

r = shell("cat /root/file")
    args: {r.args}
    returncode: {r.returncode}
    stdout: {r.stdout}
    stderr: {r.stderr}\

for x in shell_list("env"):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for shell-scripting, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size shell-scripting-0.0.4.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page