子流程模块的python包装库。

subprocrunner的Python项目详细描述


Summary

子流程模块的python包装库。

PyPI package versionSupported Python versionsLinux/macOS CI statusWindows CI statusTest coverage

Examples

Execute a command

Sample Code:^{pr 1}$
Output:^{pr 2}$

dry run

Sample Code:^{pr 3}$
Output:^{pr 4}$

Get execution command history

Sample Code:^{pr 5}$
Output:^{pr 6}$

Get a command information

>>> fromsubprocrunnerimportWhich>>> which=Which("ls")>>> which.is_exist()True
>>> which.abspath()'/usr/bin/ls'
>>> whichcommand=ls, is_exist=True, abspath=/usr/bin/ls

Installation

Install from PyPI

pip install subprocrunner

Install from PPA (for Ubuntu)

sudo add-apt-repository ppa:thombashi/ppa
sudo apt update
sudo apt install python3-subprocrunner

Dependencies

python 2.7+或3.5+

Optional dependencies

  • logbook
    • 如果安装了软件包,则使用日志簿进行日志记录

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在构造函数外部添加鼠标侦听器   java如何使用比较器对列表进行排序以正确排序空值?   javajavax。由于javax,邮件“535.7.3身份验证失败”。邮件升级(v1.3.1至v1.5.2)   java将arraylist流到固定的二维数组中并打印?   RecyclerView适配器上的java上下文   java如何为此Twitter API为KafkaProducer建立连接   java Spring安全性重写WebSecurity配置适配器的配置(AuthenticationManagerBuilder)是否会影响全局应用程序?   线程“awteventque0”NullPointerException中的java异常   if条件中的null值和null指针异常java   java树集<Object>允许相同类型的多个对象   java定义类;我认不出   字符串java replaceAll()   JAVAutil。scanner(Java)读取文件时如何跳过空格?   java在swing中关闭flash屏幕   java在Wildfly 16中的应用程序中加载pk12文件   有没有工具可以自动生成屏幕抓取的Java代码   创建意图时,java方法getParcelableExtra()返回null   将数据从java传递到jsp   java Android Studio |永久保存布局