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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssh2-python-1.0.0rc2.tar.gz (2.6 MB view hashes)

Uploaded Source

Built Distributions

ssh2_python-1.0.0rc2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

ssh2_python-1.0.0rc2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

ssh2_python-1.0.0rc2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-cp310-cp310-win_amd64.whl (6.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

ssh2_python-1.0.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

ssh2_python-1.0.0rc2-cp39-cp39-win_amd64.whl (6.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

ssh2_python-1.0.0rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

ssh2_python-1.0.0rc2-cp39-cp39-macosx_12_0_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.9 macOS 12.0+ x86-64

ssh2_python-1.0.0rc2-cp39-cp39-macosx_11_0_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

ssh2_python-1.0.0rc2-cp38-cp38-win_amd64.whl (6.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

ssh2_python-1.0.0rc2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

ssh2_python-1.0.0rc2-cp37-cp37m-win_amd64.whl (6.7 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

ssh2_python-1.0.0rc2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

ssh2_python-1.0.0rc2-cp36-cp36m-win_amd64.whl (6.8 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

ssh2_python-1.0.0rc2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

ssh2_python-1.0.0rc2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

ssh2_python-1.0.0rc2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

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