whelk:假装python是shell

时间:2021-05-27 21:33:26
【文件属性】:
文件名称:whelk:假装python是shell
文件大小:70KB
文件格式:ZIP
更新时间:2021-05-27 21:33:26
Python 假装python是shell 我们都喜欢用python编写脚本,因为它比shell强大得多。 但是有时候我们确实需要调用shell命令,因为它比用python编写另一个库或添加依赖关系要容易得多: from whelk import shell shell.zgrep("-r", "downloads", "/var/log/httpd") # Here goes code to process the log 您甚至可以将命令通过管道传递到一起: from whelk import pipe pipe(pipe.getent("group") | pipe.grep(":1...:")) 可以在找到更多使用信息。 正在安装 安装最新发布的版本非常简单: pip install whelk 如果您想修改源代码,可以从github安装最新的源代码: git clone https:
【文件预览】:
whelk-main
----MANIFEST.in(92B)
----.travis.yml(264B)
----README.rst(2KB)
----docs()
--------conf.py(413B)
--------Makefile(5KB)
--------index.rst(8KB)
--------presentation()
----.github()
--------workflows()
----whelk()
--------tests()
--------__init__.py(13KB)
----setup.py(703B)
----.gitignore(122B)
----COPYING(2KB)

网友评论