multiSSH3 5.52__tar.gz → 5.53__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: multiSSH3
3
- Version: 5.52
3
+ Version: 5.53
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: multiSSH3
3
- Version: 5.52
3
+ Version: 5.53
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
@@ -54,7 +54,7 @@ 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.52'
57
+ version = '5.53'
58
58
  VERSION = version
59
59
  __version__ = version
60
60
  COMMIT_DATE = '2025-03-01'
@@ -491,7 +491,7 @@ def replace_magic_strings(string,keys,value,case_sensitive=False):
491
491
  return string
492
492
 
493
493
  def pretty_format_table(data, delimiter = '\t',header = None):
494
- version = 1.1
494
+ version = 1.11
495
495
  if not data:
496
496
  return ''
497
497
  if type(data) == str:
@@ -521,6 +521,9 @@ def pretty_format_table(data, delimiter = '\t',header = None):
521
521
  #col_widths[c] = max(len(row[c]) for row in data)
522
522
  # handle ansii escape sequences
523
523
  col_widths[c] = max(len(re.sub(r'\x1b\[[0-?]*[ -/]*[@-~]','',row[c])) for row in data)
524
+ if header:
525
+ header_widths = [len(re.sub(r'\x1b\[[0-?]*[ -/]*[@-~]', '', col)) for col in header]
526
+ col_widths = [max(col_widths[i], header_widths[i]) for i in range(num_cols)]
524
527
  # Build the row format string
525
528
  row_format = ' | '.join('{{:<{}}}'.format(width) for width in col_widths)
526
529
  # Print the header
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes