用于运行外部进程的简单API。
envo的Python项目详细描述
注意:正在工作。
这是子流程模块的一个方便包装器。
你不需要这个。
但你想要。
用法
运行命令,获取响应:
>>> r = envoy.run('git config', data='data to pipe in', timeout=2) >>> r.status_code 129 >>> r.std_out 'usage: git config [options]' >>> r.std_err ''
周围也有管道:
>>> r = envoy.run('uptime | pbcopy') >>> r.command 'pbcopy' >>> r.status_code 0 >>> r.history [<Response 'uptime'>]