Simple shell operator module
Project description
shoper
Simple shell operator module for Python
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.
Source Distribution
shoper-1.1.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
shoper-1.1.1-py3-none-any.whl
(4.6 kB
view hashes)