Skip to main content

Simple shell operator module

Project description

shoper

Simple shell operator module for Python

wercker status

Installation

$ pip install -U shoper

Example

from shoper.shelloperator import ShellOperator


sh = ShellOperator(log_txt='log.txt', executable='/bin/bash')
sh.run(
    args=[
        'echo ${RANDOM} | tee random0.txt',
        'echo ${RANDOM} | tee random1.txt',
        'echo ${RANDOM} | tee random2.txt'
    ],
    output_files=['random0.txt', 'random1.txt', 'random2.txt']
)
sh.run(
    args='sort random[012].txt | tee sorted.txt',
    input_files=['random0.txt', 'random1.txt', 'random2.txt'],
    output_files='sorted.txt'
)

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 shoper, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size shoper-1.1.1-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size shoper-1.1.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page