Skip to main content

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

Project description

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')

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gqylpy_command-1.1.1.tar.gz.

File metadata

  • Download URL: gqylpy_command-1.1.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for gqylpy_command-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9e0deaace20d633d93505cabf90d55f2f0144a14ab9d49ace0faf4a95563f1da
MD5 e3fe0dfec77a1456ec57ec4159899870
BLAKE2b-256 434d1f98836963069615463489601494e81e2158822ce396b2265fc957252ca2

See more details on using hashes here.

File details

Details for the file gqylpy_command-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gqylpy_command-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65075a60b22dd532d3ed584d0c3e6b7551f7bb7b1b6afd926983ae0cab60b8ae
MD5 069d198cb95d32d95b597cf0b28e0e04
BLAKE2b-256 44451bbb6b801de19130933b1683d168adf32131a02b4099802717519b219a75

See more details on using hashes here.

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