Skip to main content

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

Project description

LOGO Release Python Versions License Downloads


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

pip3 install gqylpy_command

>>> from gqylpy_command import gcmd

>>> c = gcmd('hostname')

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gqylpy_command-1.1.1.tar.gz (9.0 kB view hashes)

Uploaded source

Built Distribution

gqylpy_command-1.1.1-py3-none-any.whl (10.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page