multiCMD 1.45__tar.gz → 1.47__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiCMD
3
- Version: 1.45
3
+ Version: 1.47
4
4
  Summary: Run commands simultaneously
5
5
  Home-page: https://github.com/yufei-pan/multiCMD
6
6
  Author: Yufei Pan
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiCMD
3
- Version: 1.45
3
+ Version: 1.47
4
4
  Summary: Run commands simultaneously
5
5
  Home-page: https://github.com/yufei-pan/multiCMD
6
6
  Author: Yufei Pan
@@ -23,9 +23,9 @@ import time
23
23
  from pprint import pformat
24
24
 
25
25
  #%% global vars
26
- version = '1.45'
26
+ version = '1.47'
27
27
  __version__ = version
28
- COMMIT_DATE = '2026-03-05'
28
+ COMMIT_DATE = '2026-04-28'
29
29
  __running_threads = set()
30
30
  __variables = {}
31
31
 
@@ -58,8 +58,10 @@ class Task:
58
58
  def __repr__(self):
59
59
  return f"""Task(command={pformat(self.command)},
60
60
  returncode={self.returncode!r},
61
- stdout={'\n' + pformat(self.stdout) if self.stdout else '[]'},
62
- stderr={'\n' + pformat(self.stderr) if self.stderr else '[]'},
61
+ stdout=
62
+ {pformat(self.stdout)},
63
+ stderr=
64
+ {pformat(self.stderr)},
63
65
  stop={self.stop!r})"""
64
66
 
65
67
  def __str__(self):
@@ -477,9 +479,9 @@ def __run_command(task,sem, timeout=60, quiet=False,dry_run=False,with_stdErr=Fa
477
479
  # here we handle the rest of the stdout after the subprocess returns
478
480
  stdout, stderr = proc.communicate()
479
481
  if stdout:
480
- __handle_stream(io.BytesIO(stdout),task.stdout, task)
482
+ __handle_stream(io.BytesIO(stdout),task.stdout, pre=pre, post=post, quiet=quiet)
481
483
  if stderr:
482
- __handle_stream(io.BytesIO(stderr),task.stderr, task)
484
+ __handle_stream(io.BytesIO(stderr),task.stderr, pre=pre, post=post, quiet=quiet)
483
485
  if task.returncode is None:
484
486
  # process been killed via timeout or sigkill
485
487
  if task.stderr and task.stderr[-1].strip().startswith('Timeout!'):
File without changes
File without changes
File without changes