Skip to main content

Bindings for libssh2 C library

Project description

Super fast SSH2 protocol library. ssh2-python provides Python bindings for libssh2.

License Latest Version https://circleci.com/gh/ParallelSSH/ssh2-python/tree/master.svg?style=svg https://ci.appveyor.com/api/projects/status/github/parallelssh/ssh2-python?svg=true&branch=master https://img.shields.io/pypi/wheel/ssh2-python.svg https://img.shields.io/pypi/pyversions/ssh2-python.svg Latest documentation

Installation

Binary wheel packages are provided for Linux, OSX and Windows, all Python versions. Wheel packages have no dependencies.

pip may need to be updated to be able to install binary wheel packages - pip install -U pip.

pip install ssh2-python

For from source installation instructions, including building against system provided libssh2, see documentation.

Who Should Use This

Most developers will want to use the high level clients in parallel-ssh based on this library.

This library provides bindings to the low-level libssh2 C-API. It is not high level, nor easy to use. A lot of code would need to be written to use this library that is already provided by parallel-ssh.

Use parallel-ssh unless really sure using a C-API is what is wanted.

API Feature Set

At this time all of the libssh2 API has been implemented up to the libssh2 version in the repository. Please report any missing implementation.

Complete example scripts for various operations can be found in the examples directory.

In addition, as ssh2-python is a thin wrapper of libssh2 with Python semantics, its code examples can be ported straight over to Python with only minimal changes.

Examples

See examples directory for complete examples.

Again, most developers will want to use parallel-ssh rather than this library directly.

Comparison with other Python SSH libraries

Performance of above example, compared with Paramiko.

time python examples/example_echo.py
time python examples/paramiko_comparison.py
Output:

ssh2-python:

real       0m0.141s
user       0m0.037s
sys        0m0.008s

paramiko:

real       0m0.592s
user       0m0.351s
sys        0m0.021s

Project details


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 Distributions

ssh2_python312-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

ssh2_python312-0.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (4.5 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

ssh2_python312-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

ssh2_python312-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ssh2_python312-0.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (4.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

ssh2_python312-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

ssh2_python312-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ssh2_python312-0.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

ssh2_python312-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

Details for the file ssh2_python312-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c07e3a11019ffb744f46b23cf6a271cce09fd9e27ee42fe291567e54b9ae195
MD5 ce79b71b8a5d1096d81ee13237bfa272
BLAKE2b-256 b4775e8fd9d5b64107bd62244ad681187b1596093f4f6213d3528b7c1e3b9a97

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c4923656662b67a3d292e74c4f18db9749dee60f0ef6a7ae78f62ab608c46b37
MD5 d036fbfd1de105801492617f6a9d2cca
BLAKE2b-256 3c73538af4cbcf1d33594ba6821b29c1b0132aed7fc8f71a32e5671a1dc436cf

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 682ba57be09c4c76ca752b94106d9b3bb433aa71f41a88ef8dbd737675f8ff05
MD5 65422f99683d85dce5477d98bf80c511
BLAKE2b-256 642551a9b0e1d9382823b9dce3f88fbb5334d513f5de72862d9c55bd2302add6

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93e0d0c40a8c8e4ac1e3970d5e407f48d3ea404035cf926751e357a1b98d5488
MD5 39d5bd31a1b76e9c7657b4c6c7a57c3d
BLAKE2b-256 da76d440196a981f9cb0a21187d5ccb590397caaddc620c16a2b5c760a0fc0ea

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 dce910300f72095d85f06fc3e2b1429542c72918e7193bfc61688e5445cb5936
MD5 ab786c06bf7a4818c2436ebb1e92fc2a
BLAKE2b-256 182f74e33640f82f0d99564c8881b5ac170d246a3a9a36b992a3689ddd03f5f2

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 55cb279558fcadd0ea2170a2b440ded7724265387545aa24f789834525566c67
MD5 c3b858319c956d6959280f3e018d3214
BLAKE2b-256 9848aba2ca248515d9783565144f9ed3eae6e871286515e326a0b77910205ba8

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7521edca3c6ce4b28a65bea64ebb9b2ccb170af5c66d46fca67599f30a204ca8
MD5 a1e0fc5e00ddd7842979644d320b963d
BLAKE2b-256 bb55c0af29721fe433d4264eacab84fe3dcccdbe7ef8b40843aaab8f0f3e081c

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 a1fac679dd1983d98626e5ea030bc85e90637ef937aab95693fc558929e2b9ae
MD5 c72d14563dd06f4fc6ce4ef4748b7835
BLAKE2b-256 cfe9a5f4e4216d2a2019a79b2ab9069850e6ee3513a4a2fe0218606ebfcab1b9

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 30f3e11d07138c8dfbe74e85a3a26a674cd8a49fdec219ed7edb17f884ea96ea
MD5 4f4aa5f920533525d5cd9dd76c240ac7
BLAKE2b-256 6c89cd0b4b55fd7ef8fcf3bdaae85de513aa5ee2a1094a1266cd66a03f5202ef

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