subby:简化了Python子流程

时间:2021-04-15 09:24:33
【文件属性】:
文件名称:subby:简化了Python子流程
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-15 09:24:33
python library python3 subprocess Python Subby是一个小型Python库,其目标是简化子流程的使用。 Subby类似于 ,但它增加了一些额外的功能,并排除其他人(例如没有pexpect支持)。 要求 唯一的要求是python 3.6+。 没有其他第三方运行时依赖项。 pytest和coverage包是测试所必需的。 安装 pip install subby 用法 Subby的主要界面是run功能。 它获取命令列表并执行它们。 如果有多个命令,则将它们链接(即通过管道)在一起。 import subby # We can pass input to the stdin of the command as bytes input_str = "foo \n bar" # The following three commands are equivalent; each returns a # `Processes` objec
【文件预览】:
subby-main
----.travis.yml(235B)
----.coveragerc(246B)
----pyproject.toml(540B)
----tests()
--------test_subby.py(11KB)
----LICENSE(11KB)
----CHANGES.md(706B)
----.gitignore(90B)
----Makefile(1KB)
----subby()
--------core.py(21KB)
--------utils.py(1KB)
--------__init__.py(4KB)
----README.md(6KB)

网友评论