External process executor wrapper
Project description
External Process Execution Wrapper
-----------------------------------
Allows you to execute external commands getting large outputs in real-time but also getting
all the output as a return variable.
Examples
--------
from py_execute import run_command
ret = run_command.execute('echo "Hello World"')
Hello World
ret
'Hello World
'
ret = run_command.execute('read -p "Do you like py-executor?" yn; case $yn in [yY]* ) echo "cool";; esac', user_input='y
')
cool
ret
'cool
'
-----------------------------------
Allows you to execute external commands getting large outputs in real-time but also getting
all the output as a return variable.
Examples
--------
from py_execute import run_command
ret = run_command.execute('echo "Hello World"')
Hello World
ret
'Hello World
'
ret = run_command.execute('read -p "Do you like py-executor?" yn; case $yn in [yY]* ) echo "cool";; esac', user_input='y
')
cool
ret
'cool
'
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
py-execute-0.1.5.tar.gz
(4.6 kB
view hashes)