multiSSH3 5.67__py3-none-any.whl → 5.68__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of multiSSH3 might be problematic. Click here for more details.

multiSSH3.py CHANGED
@@ -54,10 +54,10 @@ except AttributeError:
54
54
  # If neither is available, use a dummy decorator
55
55
  def cache_decorator(func):
56
56
  return func
57
- version = '5.67'
57
+ version = '5.68'
58
58
  VERSION = version
59
59
  __version__ = version
60
- COMMIT_DATE = '2025-05-08'
60
+ COMMIT_DATE = '2025-05-09'
61
61
 
62
62
  CONFIG_FILE_CHAIN = ['./multiSSH3.config.json',
63
63
  '~/multiSSH3.config.json',
@@ -389,6 +389,7 @@ if __curses_available:
389
389
  #%% ------------ Exportable Help Functions ----------------
390
390
  # check if command sshpass is available
391
391
  _binPaths = {}
392
+ _binCalled = set(['sshpass', 'ssh', 'scp', 'ipmitool','rsync','sh','ssh-copy-id'])
392
393
  def check_path(program_name):
393
394
  global __configs_from_file
394
395
  global _binPaths
@@ -403,7 +404,7 @@ def check_path(program_name):
403
404
  return True
404
405
  return False
405
406
 
406
- [check_path(program) for program in ['sshpass', 'ssh', 'scp', 'ipmitool','rsync','sh','ssh-copy-id']]
407
+ [check_path(program) for program in _binCalled]
407
408
 
408
409
  def find_ssh_key_file(searchPath = DEDAULT_SSH_KEY_SEARCH_PATH):
409
410
  '''
@@ -2906,7 +2907,8 @@ def main():
2906
2907
  # We handle the signal
2907
2908
  signal.signal(signal.SIGINT, signal_handler)
2908
2909
  # We parse the arguments
2909
- parser = argparse.ArgumentParser(description=f'Run a command on multiple hosts, Use #HOST# or #HOSTNAME# to replace the host name in the command. Config file chain: {CONFIG_FILE_CHAIN!r}')
2910
+ parser = argparse.ArgumentParser(description=f'Run a command on multiple hosts, Use #HOST# or #HOSTNAME# to replace the host name in the command. Config file chain: {CONFIG_FILE_CHAIN!r}',
2911
+ epilog=f'Found bins: {list(_binPaths.values())}\n Missing bins: {_binCalled - set(_binPaths.keys())}')
2910
2912
  parser.add_argument('hosts', metavar='hosts', type=str, nargs='?', help=f'Hosts to run the command on, use "," to seperate hosts. (default: {DEFAULT_HOSTS})',default=DEFAULT_HOSTS)
2911
2913
  parser.add_argument('commands', metavar='commands', type=str, nargs='*',default=None,help='the command to run on the hosts / the destination of the files #HOST# or #HOSTNAME# will be replaced with the host name.')
2912
2914
  parser.add_argument('-u','--username', type=str,help=f'The general username to use to connect to the hosts. Will get overwrote by individual username@host if specified. (default: {DEFAULT_USERNAME})',default=DEFAULT_USERNAME)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiSSH3
3
- Version: 5.67
3
+ Version: 5.68
4
4
  Summary: Run commands on multiple hosts via SSH
5
5
  Home-page: https://github.com/yufei-pan/multiSSH3
6
6
  Author: Yufei Pan
@@ -0,0 +1,6 @@
1
+ multiSSH3.py,sha256=_Lr8Q00fGgVkJAtP6NXZGnfipNa5yqiZplxg5ZDXvqI,144176
2
+ multissh3-5.68.dist-info/METADATA,sha256=mwLzCxpuDPk_k0JqGCGE0CMVOmg9DBs7GHNOPtNvJ6A,18093
3
+ multissh3-5.68.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
4
+ multissh3-5.68.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
5
+ multissh3-5.68.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
6
+ multissh3-5.68.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- multiSSH3.py,sha256=NW0UP3cCzAK6hPDvj5mFc3vc2lTNF0jfqJM_HTdqxKE,144034
2
- multissh3-5.67.dist-info/METADATA,sha256=CLiHx9VQdxFmnI92-h7aPaMFawBDCuGRC_fnndAkjc8,18093
3
- multissh3-5.67.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
4
- multissh3-5.67.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
5
- multissh3-5.67.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
6
- multissh3-5.67.dist-info/RECORD,,