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
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.rst
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,7 @@ When a pull request is ready to be merged, the source branch containing your cha
31
31
Ground Rules
32
32
============
33
33
34
-
Please keep in mind the `Code of Conduct <https://github.com/InfluxGraph/ssh2-python/blob/master/.github/code_of_conduct.md>`_
35
-
when making contributions.
34
+
Please keep in mind the `Code of Conduct <https://github.com/ParallelSSH/ssh2-python/blob/master/.github/code_of_conduct.md>`_ when making contributions.
36
35
37
36
Responsibilities
38
37
@@ -82,10 +81,7 @@ A) If the error is from a Python traceback, include it in the bug report.
82
81
83
82
B) We also need to know what platform you're running (Windows, macOS, Linux,
84
83
docker container, etc.), the version of your Python interpreter, and the
85
-
version of the library at the time of the error.
86
-
87
-
C) If at all possible, steps to reproduce including sample InfluxDB data are
88
-
the best way to help fixing the issue as quickly as possible.
84
+
versions of the library and ``libssh2`` at the time of the error.
89
85
90
86
There is also an issue template to help with creating issues.
91
87
@@ -281,7 +277,8 @@ to be enabled on that repository.
281
277
Building the documentation
282
278
--------------------------
283
279
284
-
Documentation is based on Sphinx, which needs to be installed to build it.
280
+
Documentation is based on Sphinx, which is installed by development requirements per instructions
281
+
at `Running the unit test suite`_.
285
282
286
283
In root directory of repository:
287
284
@@ -292,7 +289,7 @@ In root directory of repository:
292
289
293
290
After building succeeds the documentation is available at ``doc/_build/html``.
294
291
295
-
The documentation is not currently uploaded due to issues building the native code extensions on `readthedocs`.
292
+
The documentation is automatically uploaded to `ReadTheDocs <http://ssh2-python.readthedocs.org/en/latest/>`_ for master branch and tagged builds.
Copy file name to clipboardExpand all lines: README.rst
+25-22Lines changed: 25 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,20 +25,24 @@ Super fast SSH2 protocol library. ``ssh2-python`` provides Python bindings for `
25
25
Installation
26
26
______________
27
27
28
-
29
-
System packages are available on the `latest releases page <https://github.com/ParallelSSH/ssh2-python/releases/latest>`_ built on Centos/RedHat 6/7, Ubuntu 14.04/16.04, Debian 7/8 and Fedora 22/23/24.
30
-
31
-
System packages have *no dependencies* other than the ``libssh2`` system library.
32
-
33
-
Binary wheel packages are also provided for Linux, OSX and Windows, all Python versions, with ``libssh2`` and its required libraries included.
28
+
Binary wheel packages are provided for Linux, OSX and Windows, all Python versions, with ``libssh2`` and its required libraries included.
34
29
35
30
Wheel packages have **no dependencies**.
36
31
32
+
``pip`` may need to be updated to be able to install binary wheel packages - ``pip install -U pip``.
33
+
37
34
.. code-block:: shell
38
35
39
36
pip install ssh2-python
40
37
41
38
39
+
System packages are also available on the `latest release page <https://github.com/ParallelSSH/ssh2-python/releases/latest>`_ built on Centos/RedHat 6/7, Ubuntu 14.04/16.04, Debian 7/8 and Fedora 22/23/24.
40
+
41
+
System packages have *no dependencies* other than the ``libssh2`` system library.
42
+
43
+
`Conda <https://conda.io/miniconda.html>`_ is another installation option - see `documentation <http://ssh2-python.readthedocs.org/en/latest/>`_ for more detailed instructions.
44
+
45
+
42
46
API Feature Set
43
47
________________
44
48
@@ -49,6 +53,21 @@ Complete example scripts for various operations can be found in the `examples di
49
53
50
54
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.
51
55
56
+
Library Features
57
+
----------------
58
+
59
+
The library uses `Cython`_ based native code extensions as wrappers to ``libssh2``.
60
+
61
+
Extension features:
62
+
63
+
* Thread safe - GIL is released as much as possible
64
+
* Very low overhead
65
+
* Super fast as a consequence of the excellent C library it uses and prodigious use of native code
66
+
* Object oriented - memory freed automatically and safely as objects are garbage collected by Python
67
+
* Use Python semantics where applicable, such as context manager and iterator support for opening and reading from SFTP file handles
68
+
* Expose errors as Python exceptions where possible
69
+
* Provide access to ``libssh2`` error code definitions
Copy file name to clipboardExpand all lines: doc/installation.rst
+43-5Lines changed: 43 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,27 @@
1
1
Installation
2
2
*************
3
3
4
+
Pip Binary Packages
5
+
====================
6
+
7
+
Binary wheel packages are provided for Linux, OSX and Windows, all Python versions, with ``libssh2`` and its required libraries included.
8
+
9
+
Wheel packages have **no dependencies**.
10
+
11
+
``pip`` may need to be updated to be able to install binary wheel packages.
12
+
13
+
.. code-block:: shell
14
+
15
+
pip install -U pip
16
+
17
+
pip install ssh2-python
18
+
19
+
.. note::
20
+
21
+
Latest version of OpenSSL is included in Linux and OSX binary wheel packages. On Windows, the native WinCNG back-end is used instead.
22
+
23
+
To control which version of OpenSSL is used for the installation either use system packages which use system libraries, the conda package, or install from source.
24
+
4
25
System Binary Packages
5
26
=======================
6
27
@@ -10,29 +31,46 @@ To use, download and install via the system's package manager, for example for C
0 commit comments