No project description provided
Project description
pyssh
Python bindings for libssh2 on top of rust-ssh2
motivations
- learn pyo3
- I need a high-concurrency SSH connection pool
Features
- create a ssh session
- exec command by session
- download/upload file
Install & Test
developing mode:
git clone https://github.com/xiaoniaoyouhuajiang/pyssh.git
cd pyssh
maturin develop
bench test paramiko & pyssh
# after installing pyssh
python benchmakrs/benchmarks.py --host <your host> --port <port> --username <..> --password <..>
Usage
benchmark
Enter the benchmakrs directory and execute the corresponding Python file to compare the performance of pyssh and Paramiko.
authentication- execution
upload file- read remote file
result
test on my pc:
| time/s | paramiko | pyssh |
|---|---|---|
| authentication | 0.316176 | 0.077625 |
| upload file | 0.825472 | 0.632277 |
Todo
get exit code forrun_commanddownload/upload file- high level api for ssh connection
- batch running a single command
- batch running command
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 Distribution
pyrussh-0.1.0.tar.gz
(13.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrussh-0.1.0.tar.gz.
File metadata
- Download URL: pyrussh-0.1.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
859d777eb59bb906a235ba38bb78444bf53213809a684c783a618cc850933b7a
|
|
| MD5 |
00e38691ca026be053e244bf60dbf524
|
|
| BLAKE2b-256 |
28fef5c94fda161e00d9da6a6e5201ee02c162eb5f9e0e5bf3cac8cdb843c446
|
File details
Details for the file pyrussh-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pyrussh-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cedf51965dc44a0052f93657c6aafe1df126f83e2bec3ffa7b66e451d535474
|
|
| MD5 |
d872b1fb0b2e9faa5bf5cd7ddd16998d
|
|
| BLAKE2b-256 |
cdd4a59491bdee8cbc2e4c9d5d1ce81713988095408af1fc25cf6ad3049442de
|