Skip to content

调用系统命令,基于内置库 subprocess,并提供了多种用于判断命令调用结果是否如期的方法。

License

Notifications You must be signed in to change notification settings

gqylpy/gqylpy-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOGO Release Python Versions License Downloads

gqylpy-command

调用系统命令,它是对内置库 subprocess 的二次封装。在 gcmd 对象中,提供了多种方案用于判断命令调用结果是否如期。

pip3 install gqylpy_command

>>> from gqylpy_command import gcmd

>>> c = gcmd('hostname')

>>> c.status_output
(True, 'Alpha')

About

调用系统命令,基于内置库 subprocess,并提供了多种用于判断命令调用结果是否如期的方法。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages