在远程服务器执行命令并得到执行结果,它是对 paramiko 库的二次封装。
Project description
gqylpy-ssh
在远程服务器执行命令并得到执行结果,它是对 paramiko 库的二次封装。在
Command
对象中,提供了多种方法用于判断命令执行结果是否如期。
pip3 install gqylpy_ssh
>>> 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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file gqylpy_ssh-1.2.6-py3-none-any.whl
.
File metadata
- Download URL: gqylpy_ssh-1.2.6-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d499e1064379172173213c0cfcf5351aed6311e08e79bfcfca4dfbcbafb62024 |
|
MD5 | 6968660d336336b7cb50972697422bb6 |
|
BLAKE2b-256 | eff614ab88c9a35b41fddd21d22598f9dea648e83c63d2ef90df81f7b2aed437 |