All Versions
29
Latest Version
Avg Release Cycle
39 days
Latest Release
1567 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.3.2 Changes
December 09, 2020๐ Fixes
- ๐ Client output implementation Python 2 support.
-
v2.3.1 Changes
December 06, 2020๐ Changes
SSHClient.read_output
andread_stderr
now take buffer to read from as argument instead of channel.SSHClient.wait_finished
now takesHostOutput
argument instead of channel.
๐ Fixes
- Output for multiple commands on one host run at the same time would be lost.
-
v2.3.0 Changes
December 04, 2020๐ Changes
SSHClient
now starts buffering output from remote host, both standard output and standard error, when a command is run.SSHClient.read_output
,SSHClient.read_stderr
and iterating on stdout/stderr fromHostOutput
now read from the internal buffer rather than the SSH channel directly.ParallelSSHClient.join
no longer requiresconsume_output
to be set in order to get exit codes without first reading output.- 0๏ธโฃ
ParallelSSHClient.join
with timeout no longer consumes output by default. It is now possible to usejoin
with a timeout and capture output afterjoin
completes. ParallelSSHClient.reset_output_generators
is now a no-op and no longer required to be called after timeouts.HostOutput.stdout
andstderr
are now dynamic properties.- ๐ Added
HostOutput.read_timeout
attribute. Can be used to see what read timeout was whenrun_command
was called and to change timeout when next reading fromHostOutput.stdout
andstderr
. - โ Added
HostOutput.encoding
attribute for encoding used whenrun_command
was called. Encoding can now be changed for when next reading output. - โฑ
ParallelSSHClient.join
with timeout no longer affectsstdout
orstderr
read timeout set whenrun_command
was called. - LibSSH clients under
pssh.clients.ssh
now allow output to be read as it becomes available without waiting for remote command to finish first. - Reading from output behaviour is now consistent across all client types - parallel and single clients under both
pssh.clients.native
andpssh.clients.ssh
. - 0๏ธโฃ
ParallelSSHClient.join
can now be called without arguments and defaults to last ran commands. - 0๏ธโฃ
ParallelSSHClient.finished
can now be called without arguments and defaults to last ran commands.
This is now possible:
output = client.run_command(<..>) client.join(output) assert output[0].exit_code is not None
As is this:
client.run_command(<..>, timeout=1) client.join(output, timeout=1) for line in output[0].stdout: print(line)
โฑ Output can be read after and has separate timeout from join.
๐ See documentation for more examples on use of timeouts.
-
v2.2.0 Changes
December 01, 2020๐ Changes
- ๐ New single host tunneling, SSH proxy, implementation for increased performance.
- Native
SSHClient
now acceptsproxy_host
,proxy_port
and associated parameters - see API documentation - ๐ง Proxy configuration can now be provided via
HostConfig
. - โ Added
ParallelSSHClient.connect_auth
function for connecting and authenticating to hosts in parallel.
-
v2.1.0 Changes
October 25, 2020๐ Changes
- โ Added certificate authentication support for the
pssh.clients.ssh
clients.
- โ Added certificate authentication support for the
-
v2.1.0.post1
October 25, 2020 -
v2.0.0 Changes
October 06, 2020๐ Changes
โฌ๏ธ See Upgrading to API 2.0 for examples of code that will need updating.
- โ Removed paramiko clients and dependency.
ParallelSSHClient.run_command
now always returns a list ofHostOutput
-return_list
argument is a no-op and will be removed in future releases.ParallelSSHClient.get_last_output
now always returns a list ofHostOutput
.SSHClient.run_command
now returnsHostOutput
.- โ Removed deprecated since
1.0.0
HostOutput
dictionary attributes. - โ Removed deprecated since
1.0.0
imports and modules. - Removed paramiko based
load_private_key
andread_openssh_config
functions frompssh.utils
. - โ Removed paramiko based
pssh.tunnel
. - โ Removed paramiko based
pssh.agent
. - โ Removed deprecated
ParallelSSHClient.get_output
function. - Removed deprecated
ParallelSSHClient.get_exit_code
andget_exit_codes
functions. - โ Removed deprecated
ParallelSSHClient
host_config
dictionary implementation - now list ofHostConfig
. - โ Removed
HostOutput.cmd
attribute. - โ Removed
ParallelSSHClient.host_clients
attribute. - โฑ Made
ParallelSSHClient(timeout=<seconds>)
a global timeout setting for all operations. - Removed
run_command(greenlet_timeout=<..>)
argument - now uses global timeout setting. - โฑ Renamed
run_command
timeout
toread_timeout=<seconds>)
for setting output read timeout individually - defaults to global timeout setting. - โ Removed
pssh.native
package and native code. - ๐
ParallelSSHClient.scp_send
now supportscopy_args
keyword argument for providing per-host file name arguments like rest ofscp_*
andcopy_*
functionality. - ๐ Changed exception names to end in
Error
fromException
- backwards compatible. UnknownHostException
,AuthenticationException
,ConnectionErrorException
,SSHException
no longer available as importsfrom pssh
- usefrom pssh.exceptions
.
๐ Fixes
- โ Removed now unnecessary locking around SSHClient initialisation so it can be parallelised - #219.
ParallelSSHClient.join
with encoding would not pass on encoding when reading from output buffers - #214.- โฑ Clients could raise
Timeout
early when timeout settings were used with many hosts.
Packaging
- ๐ฆ Package architecture has changed to
none-any
.
-
v2.0.0.rc1 Changes
October 03, 2020๐ Changes
โก๏ธ See
Upgrading to API 2.0 <upgrade-link>
_ for examples of code that will need updating.- โ Removed paramiko clients and dependency.
ParallelSSHClient.run_command
now always returns a list ofHostOutput
-return_list
argument is a no-op and may be removed.ParallelSSHClient.get_last_output
now always returns a list ofHostOutput
.SSHClient.run_command
now returnsHostOutput
.- โ Removed deprecated since
1.0.0
HostOutput
dictionary attributes. - โ Removed deprecated since
1.0.0
imports and modules. - Removed paramiko based
load_private_key
andread_openssh_config
functions frompssh.utils
. - โ Removed paramiko based
pssh.tunnel
. - โ Removed paramiko based
pssh.agent
. - โ Removed deprecated
ParallelSSHClient.get_output
function. - Removed deprecated
ParallelSSHClient.get_exit_code
andget_exit_codes
functions. - โ Removed deprecated
ParallelSSHClient
host_config
dictionary implementation - now list ofHostConfig
. - โ Removed
HostOutput.cmd
attribute. - โ Removed
ParallelSSHClient.host_clients
attribute. - โฑ Made
ParallelSSHClient(timeout=<seconds>)
a global timeout setting for all operations. - Removed
run_command(greenlet_timeout=<..>)
argument - now uses global timeout setting. - โฑ Renamed
run_command
timeout
toread_timeout=<seconds>)
for setting output read timeout individually - defaults to global timeout setting. - โ Removed
pssh.native
package and native code. - ๐ฆ No native code means package architecture has changed to
none-any
.
๐ Fixes
-
v2.0.0.b3
September 18, 2020 -
v2.0.0.b2
September 18, 2020