gqylpy-ssh


Namegqylpy-ssh JSON
Version 1.2.6 PyPI version JSON
download
home_pagehttp://gqylpy.com
Summary在远程服务器执行命令并得到执行结果,它是对 paramiko 库的二次封装。
upload_time2023-05-27 05:04:39
maintainer
docs_urlNone
author竹永康
requires_python>=3.6, <4
licenseLGPL
keywords
VCS
bugtrack_url
requirements paramiko
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [<img alt="LOGO" src="http://www.gqylpy.com/static/img/favicon.ico" height="21" width="21"/>](http://www.gqylpy.com)
[![Release](https://img.shields.io/github/release/gqylpy/gqylpy-ssh.svg?style=flat-square")](https://github.com/gqylpy/gqylpy-ssh/releases/latest)
[![Python Versions](https://img.shields.io/pypi/pyversions/gqylpy_ssh)](https://pypi.org/project/gqylpy_ssh)
[![License](https://img.shields.io/pypi/l/gqylpy_ssh)](https://github.com/gqylpy/gqylpy-ssh/blob/master/LICENSE)
[![Downloads](https://pepy.tech/badge/gqylpy_ssh)](https://pepy.tech/project/gqylpy_ssh)

# gqylpy-ssh

> 在远程服务器执行命令并得到执行结果,它是对 paramiko 库的二次封装。在 `Command` 对象中,提供了多种方法用于判断命令执行结果是否如期。

<kbd>pip3 install gqylpy_ssh</kbd>

```python
>>> from gqylpy_ssh import GqylpySSH, Command

>>> ssh = GqylpySSH('192.168.1.7', 22, username='gqylpy', password=...)

>>> c: Command = ssh.cmd('echo Hi, GQYLPY')
>>> c.status_output
(True, 'Hi, GQYLPY')
```

            

Raw data

            {
    "_id": null,
    "home_page": "http://gqylpy.com",
    "name": "gqylpy-ssh",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6, <4",
    "maintainer_email": "",
    "keywords": "",
    "author": "\u7af9\u6c38\u5eb7",
    "author_email": "<gqylpy@outlook.com>",
    "download_url": "",
    "platform": null,
    "description": "[<img alt=\"LOGO\" src=\"http://www.gqylpy.com/static/img/favicon.ico\" height=\"21\" width=\"21\"/>](http://www.gqylpy.com)\n[![Release](https://img.shields.io/github/release/gqylpy/gqylpy-ssh.svg?style=flat-square\")](https://github.com/gqylpy/gqylpy-ssh/releases/latest)\n[![Python Versions](https://img.shields.io/pypi/pyversions/gqylpy_ssh)](https://pypi.org/project/gqylpy_ssh)\n[![License](https://img.shields.io/pypi/l/gqylpy_ssh)](https://github.com/gqylpy/gqylpy-ssh/blob/master/LICENSE)\n[![Downloads](https://pepy.tech/badge/gqylpy_ssh)](https://pepy.tech/project/gqylpy_ssh)\n\n# gqylpy-ssh\n\n> \u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u6267\u884c\u547d\u4ee4\u5e76\u5f97\u5230\u6267\u884c\u7ed3\u679c\uff0c\u5b83\u662f\u5bf9 paramiko \u5e93\u7684\u4e8c\u6b21\u5c01\u88c5\u3002\u5728 `Command` \u5bf9\u8c61\u4e2d\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u7528\u4e8e\u5224\u65ad\u547d\u4ee4\u6267\u884c\u7ed3\u679c\u662f\u5426\u5982\u671f\u3002\n\n<kbd>pip3 install gqylpy_ssh</kbd>\n\n```python\n>>> from gqylpy_ssh import GqylpySSH, Command\n\n>>> ssh = GqylpySSH('192.168.1.7', 22, username='gqylpy', password=...)\n\n>>> c: Command = ssh.cmd('echo Hi, GQYLPY')\n>>> c.status_output\n(True, 'Hi, GQYLPY')\n```\n",
    "bugtrack_url": null,
    "license": "LGPL",
    "summary": "\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u6267\u884c\u547d\u4ee4\u5e76\u5f97\u5230\u6267\u884c\u7ed3\u679c\uff0c\u5b83\u662f\u5bf9 paramiko \u5e93\u7684\u4e8c\u6b21\u5c01\u88c5\u3002",
    "version": "1.2.6",
    "project_urls": {
        "Homepage": "http://gqylpy.com",
        "Source": "https://github.com/gqylpy/gqylpy-ssh"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eff614ab88c9a35b41fddd21d22598f9dea648e83c63d2ef90df81f7b2aed437",
                "md5": "6968660d336336b7cb50972697422bb6",
                "sha256": "d499e1064379172173213c0cfcf5351aed6311e08e79bfcfca4dfbcbafb62024"
            },
            "downloads": -1,
            "filename": "gqylpy_ssh-1.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6968660d336336b7cb50972697422bb6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6, <4",
            "size": 19159,
            "upload_time": "2023-05-27T05:04:39",
            "upload_time_iso_8601": "2023-05-27T05:04:39.994011Z",
            "url": "https://files.pythonhosted.org/packages/ef/f6/14ab88c9a35b41fddd21d22598f9dea648e83c63d2ef90df81f7b2aed437/gqylpy_ssh-1.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-27 05:04:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gqylpy",
    "github_project": "gqylpy-ssh",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "paramiko",
            "specs": [
                [
                    ">=",
                    "3.1.0"
                ],
                [
                    "<",
                    "4.0"
                ]
            ]
        }
    ],
    "lcname": "gqylpy-ssh"
}
        
Elapsed time: 0.07138s