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.1-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.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

ssh2_python312-0.1.1-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.1-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.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

ssh2_python312-0.1.1-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.1-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.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

ssh2_python312-0.1.1-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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e597616ee450e3ffbd357b2001cae459a45a8a9ae9b5282df7247ca710b57971
MD5 eab94b854e00b8eff4cb2f10c2322750
BLAKE2b-256 46b3f59afc708467b044d471f43a639b5687a5fae44b1b5c36be0595ad7192e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 721d7f7f452fa34296e3dea2484fe795fe4a06ac71b17325eed5148bf8594108
MD5 abbb52294041cc6af8732c8571e8ebc2
BLAKE2b-256 b8a87606ee85f56406f202e3981cc10305d3dc531c55d73d863a0f5ecda4c582

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2d4c3e9154f456f8befaf81b0e7647e06a5ee613ff6b227340cecb029c11c77
MD5 f8333f8fd3b521e3464dd008da7b6e37
BLAKE2b-256 83aabd9f1e3901a53d3a83049506b0dfb306b186bb113d40783b0ff5c8644057

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3763989a0eeb1234399f13bffd527e1c85c4bc9a6931311d7ff61586f3027292
MD5 db5dfdbf355e4f7e21d0756a2bca1203
BLAKE2b-256 0064dc37574e8cd076abb3e7a430ea24fac6e485928427f6e9edd70bb5971b2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15e61742937b299ac40ae567759d9916c05aaa4a2d43b6073abdc6254e87ffd3
MD5 a6d02ee3590bfbcf5dcb03c278ef5e88
BLAKE2b-256 66c0984c5cce3351e6166dc818e8f71da87f3aef4585323345454f09f72bd447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 efdc125b255cb39caa508ed8895964ee63c207e7871ccfa478384216d36f6288
MD5 d90a9acc274d289dc221e4e7f0316782
BLAKE2b-256 6156bfb0f83854cb074c6749c1769dd383f87a97d04fc6c024e09faa62203d57

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e38f1a9475cb92a8742540148250d029d7e146a21db03750b5b8d2c1b141c6a
MD5 fed6f6259682af7134663f5a8d68ed77
BLAKE2b-256 e4dbc1fcc0825b8c724ebadfe7688472a55184293b2025b273127671232d4b3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 122653d0bfe811fb45d6c13862db349032ec9b8c5d8d1944536affc53fe05e9a
MD5 4e3dc4c3f6cf651699126ce8b5a7e138
BLAKE2b-256 0b75e1fa193670ab544afca21f3d9ddd7c09d2f222d0f504208558e7a05c0368

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a9c764c83db59a360c7427ac36088fc7222e61b340de208ed5a9a5f60133069
MD5 bcdbf81058e2e75ce0988134e1654cc7
BLAKE2b-256 8f96bc69071ffe91ca1b76a74cdb01ef846a0ba05353417aefed2b53dc201402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9fd7dfa133c862af74192c43576a4c145325282b3a919a671cf978a154cb305b
MD5 5e22b23bff5399cadad6f25c6ac135de
BLAKE2b-256 88987288ec464b02e89aa1cd209d258936aa8c36a7c1dcf9f607fbe1cb497dbd

See more details on using hashes here.

File details

Details for the file ssh2_python312-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed5ae8920e4a529cf6f4883b7da4637a292128fb0b700e05b89d66796b4080d9
MD5 9217bd37c4ab5aa44b31cefdf5d201c9
BLAKE2b-256 d90b17176914cdb6d78bf1187b9b748726d5030e46e896a2fdd4b7d3ad56c38e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh2_python312-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 694487a93a551ff60a847c403fe126ccee8553b0f1d68c2e581cf47e16fdcb9d
MD5 9e2d37240157d19894563046cd3c0c37
BLAKE2b-256 da47234ce4fb24933e69811685add007c0a286355657a764e76d3338f0a9ddcb

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