File tree 3 files changed +24
-2
lines changed
3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
### Directions
2
2
3
3
_ Issue tracker is for actionable bug reports, issues with the code and feature requests._
4
- _ For general questions use the [ mail group] ( https://groups.google.com/forum/#!forum/ssh2-python ) ._
4
+
5
+ _ See [ Discussions] ( https://github.com/ParallelSSH/ssh2-python/discussions ) section for questions and discussions._
6
+
5
7
_ Remove this section and everything on and above this line._
6
8
7
9
### Bug reports
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Packaging
15
15
16
16
* Added Windows Python 3.7 and 3.13 wheel builds.
17
17
* Removed manylinux 2010 wheels.
18
- * Wheel builds now use embedded libssh and zlib.
18
+ * Wheel builds now use embedded libssh2 and zlib.
19
19
* Dockerfiles and scripts updates.
20
20
21
21
1.1.1
Original file line number Diff line number Diff line change @@ -42,6 +42,26 @@ Most developers will want to use the `high level clients <https://parallel-ssh.r
42
42
in `parallel-ssh <https://github.com/ParallelSSH/parallel-ssh >`_
43
43
based on this library.
44
44
45
+
46
+ .. code-block :: shell
47
+
48
+ pip install parallel-ssh
49
+
50
+
51
+ .. code-block :: python
52
+
53
+ from pssh.clients import SSHClient
54
+
55
+ host = ' localhost'
56
+ cmd = ' uname'
57
+ client = SSHClient(host)
58
+
59
+ host_out = client.run_command(cmd)
60
+ for line in host_out.stdout:
61
+ print (line)
62
+ exit_code = host_out.exit_code
63
+
64
+
45
65
This library provides bindings to the low-level libssh2 C-API. It is *not * high level, nor easy to use. A *lot * of code
46
66
would need to be written to use this library that is already provided by `parallel-ssh `.
47
67
You can’t perform that action at this time.
0 commit comments