You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,46 +10,156 @@ Super fast SSH2 protocol library. ``ssh2-python`` provides Python bindings for `
10
10
:target:https://pypi.python.org/pypi/ssh2-python
11
11
:alt:Latest Version
12
12
13
-
Features
14
-
---------
15
13
16
-
Majority of the `libssh2`_ API has been implemented as Python native code extensions. ``ssh2-python`` is a thin wrapper of ``libssh2`` - ``libssh2`` code examples can be ported straight over to Python with only minimal changes.
14
+
Installation
15
+
______________
17
16
18
-
*Library is usable for testing purposes and at the moment available as source code only. API, module names and documentation not yet finalised. Contributions welcome.*
17
+
Install ``libssh2`` and Python header files.
19
18
20
-
SSH Functionality provided
21
-
++++++++++++++++++++++++++++
19
+
Ubuntu
20
+
----------
22
21
23
-
* SSH channel operations (exec,shell,subsystem)
24
-
* SSH agent
25
-
* Public key authentication and management
26
-
* SFTP
27
-
* SCP
28
-
* SSH port forwarding and tunnelling
29
-
* Non-blocking mode
30
-
* Listener for port forwarding
22
+
.. code-block:: shell
31
23
32
-
And more, as per `libssh2`_ functionality.
24
+
apt-get install libssh2-1-dev python-dev
25
+
pip install ssh2-python
33
26
34
27
35
-
Native Code Extension Features
36
-
+++++++++++++++++++++++++++++++
28
+
RedHat
29
+
-------
30
+
31
+
.. code-block:: shell
37
32
38
-
The library uses `Cython`_ based native code extensions as wrappers to ``libssh2``.
33
+
yum install libssh2-devel python-dev
34
+
pip install ssh2-python
39
35
40
-
Extension features:
41
36
42
-
* Thread safe - GIL is released as much as possible
43
-
* Very low overhead
44
-
* Super fast as a consequence of the excellent C library it uses and that it uses native code prodigiously
45
-
* Object oriented - memory freed automatically and safely as objects expire
46
-
* Use Python semantics where applicable, such as iterator support for SFTP file handles
47
-
* Expose errors as Python exceptions where possible
48
-
* Provide access to ``libssh2`` error code definitions
37
+
Feature Set
38
+
_____________
39
+
40
+
Majority of the `libssh2`_ API has been implemented. ``ssh2-python`` is a thin wrapper of ``libssh2`` - its code examples can be ported straight over to Python with only minimal changes.
41
+
42
+
Some parts are yet to be implemented though majority of the API is complete. Note current restriction on byte strings in examples section.
43
+
44
+
*Library is at the moment available as source code only. Binary releases to follow.*
45
+
46
+
47
+
Examples
48
+
___________
49
+
50
+
Currently all string arguments are assumed to be byte strings - Python 3 users should use ``b'<string>'``.
51
+
52
+
See `Complete Example`_ for a complete example including socket connect.
0 commit comments