【文件属性】:
文件名称:EasyProcess:易于使用的python子流程界面
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-15 00:50:59
Python
EasyProcess是一个易于使用的python子进程接口。
链接:
主页: :
PYPI: ://pypi.python.org/pypi/EasyProcess
特征:
模块顶部的层
易于启动,停止程序
易于获得标准输出/错误,程序的返回代码
命令可以是列表(首选)或字符串(使用shlex.split将命令字符串转换为列表)
测井
超时
不支持外壳
不支持管道
仅在子进程完成后才设置stdout / stderr
stop()不会杀死整个子进程树
Unicode支持
支持的python版本:3.6、3.7、3.8、3.9
安装:
$ python3 -m pip install EasyProcess
用法
例子:
# easyprocess/examples/hello.py
from easyprocess import EasyProcess
cmd = [
【文件预览】:
EasyProcess-master
----setup.py(1KB)
----.gitignore(318B)
----.travis.yml(1KB)
----MANIFEST.in(46B)
----Vagrantfile(4KB)
----doc()
--------generate-doc.py(1KB)
--------gen()
----LICENSE.txt(1KB)
----requirements-test.txt(57B)
----clean.py(469B)
----README.md(4KB)
----tests()
--------test_fast()
--------test_stress.py(385B)
--------test_stress2.py(319B)
----pytest.ini(142B)
----easyprocess()
--------about.py(20B)
--------__init__.py(11KB)
--------unicodeutil.py(650B)
--------examples()
----format-code.sh(137B)
----tox.ini(571B)