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
Metadata
Release files for pyrussh 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrussh-0.1.0.tar.gz | 13.0 kB | Without provenance | Details for pyrussh-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrussh-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details for pyrussh-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl |
Total release size: 1.7 MB
Release files / pyrussh-0.1.0.tar.gz
| Download URL | pyrussh-0.1.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
859d777eb59bb906a235ba38bb78444bf53213809a684c783a618cc850933b7a
|
|
BLAKE2b-256 checksum How to use checksums |
28fef5c94fda161e00d9da6a6e5201ee02c162eb5f9e0e5bf3cac8cdb843c446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.5.1
|
Release files / pyrussh-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | pyrussh-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
0cedf51965dc44a0052f93657c6aafe1df126f83e2bec3ffa7b66e451d535474
|
|
BLAKE2b-256 checksum How to use checksums |
cdd4a59491bdee8cbc2e4c9d5d1ce81713988095408af1fc25cf6ad3049442de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.5.1
|
Security for pyrussh 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.