ScriptCollection 3.5.75__py3-none-any.whl → 3.5.77__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.
@@ -279,7 +279,7 @@ class GeneralUtilities:
279
279
  if string is None:
280
280
  return False
281
281
  else:
282
- return len(string) > 0
282
+ return len(string.strip()) > 0
283
283
 
284
284
  @staticmethod
285
285
  @check_arguments
@@ -862,6 +862,31 @@ class GeneralUtilities:
862
862
  def current_system_is_linux():
863
863
  return platform.system() == 'Linux'
864
864
 
865
+ @staticmethod
866
+ @check_arguments
867
+ def get_line():
868
+ return "--------------------------"
869
+
870
+ @staticmethod
871
+ def get_longline():
872
+ return GeneralUtilities.get_line() + GeneralUtilities.get_line()
873
+
874
+ @staticmethod
875
+ @check_arguments
876
+ def get_icon_check_empty(positive: bool) -> str:
877
+ if positive:
878
+ return "✅"
879
+ else:
880
+ return ""
881
+
882
+ @staticmethod
883
+ @check_arguments
884
+ def get_icon_check_cross(positive: bool) -> str:
885
+ if positive:
886
+ return "✅"
887
+ else:
888
+ return "❌"
889
+
865
890
  @staticmethod
866
891
  @check_arguments
867
892
  def get_certificate_expiry_date(certificate_file: str) -> datetime:
@@ -32,7 +32,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
32
32
  from .ProgramRunnerPopen import ProgramRunnerPopen
33
33
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
34
34
 
35
- version = "3.5.75"
35
+ version = "3.5.77"
36
36
  __version__ = version
37
37
 
38
38
 
@@ -1390,10 +1390,11 @@ class ScriptCollectionCore:
1390
1390
  try:
1391
1391
  while not q_stdout.empty():
1392
1392
  out_line:str=q_stdout.get_nowait()
1393
- stdout_result.append(out_line)
1394
- reading_stdout_last_time_resulted_in_exception = False
1395
- if print_live_output:
1396
- print(out_line, end='\n', file=sys.stdout, flush=False)
1393
+ if GeneralUtilities.string_has_content(out_line):
1394
+ stdout_result.append(out_line)
1395
+ reading_stdout_last_time_resulted_in_exception = False
1396
+ if print_live_output:
1397
+ print(out_line, end='\n', file=sys.stdout, flush=False)
1397
1398
  if print_live_output:
1398
1399
  sys.stdout.flush()
1399
1400
  except Empty:
@@ -1402,10 +1403,11 @@ class ScriptCollectionCore:
1402
1403
  try:
1403
1404
  while not q_stderr.empty():
1404
1405
  err_line:str=q_stderr.get_nowait()
1405
- stderr_result.append(err_line)
1406
- reading_stderr_last_time_resulted_in_exception = False
1407
- if print_live_output:
1408
- print(err_line, end='\n', file=sys.stdout if print_errors_as_information else sys.stderr, flush=False)
1406
+ if GeneralUtilities.string_has_content(err_line):
1407
+ stderr_result.append(err_line)
1408
+ reading_stderr_last_time_resulted_in_exception = False
1409
+ if print_live_output:
1410
+ print(err_line, end='\n', file=sys.stdout if print_errors_as_information else sys.stderr, flush=False)
1409
1411
  if print_live_output:
1410
1412
  if print_errors_as_information:
1411
1413
  sys.stdout.flush()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ScriptCollection
3
- Version: 3.5.75
3
+ Version: 3.5.77
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Home-page: https://github.com/anionDev/ScriptCollection
6
6
  Author: Marius Göcke
@@ -1,16 +1,16 @@
1
1
  ScriptCollection/Executables.py,sha256=zxDRhv6UHzP0F9lFQvfPv8twy27BEA0-jIMvZfcZTb4,30016
2
- ScriptCollection/GeneralUtilities.py,sha256=co7hYrwTHSqSSHukkRBNSnwSRD8t237wtO2vA0YkK4E,39766
2
+ ScriptCollection/GeneralUtilities.py,sha256=qO7oYjdqmSZxKDoU5leA0XsXS1CdofwTpA8nd0j_b8w,40372
3
3
  ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
4
4
  ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4bQNM6RV6Y,2480
5
5
  ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
6
6
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
7
7
  ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
8
- ScriptCollection/ScriptCollectionCore.py,sha256=87yRWzemamkISYs-CW5Zs5dniulAk9A5yLtUDkLaaxg,118788
8
+ ScriptCollection/ScriptCollectionCore.py,sha256=UyKF_9b5wwDMshQ8ckxmL_72TEp-voHTGbvAdfb3EeQ,118968
9
9
  ScriptCollection/TasksForCommonProjectStructure.py,sha256=n3x4XRyjabsL0SuMGZz3LJiq5ctjz7mMAS77QoAJFP8,215347
10
10
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- ScriptCollection-3.5.75.dist-info/METADATA,sha256=6JiMoYzp7oM1cUYax-k5vff7q2cLW2_Xw4BeEMuvVto,7664
13
- ScriptCollection-3.5.75.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
14
- ScriptCollection-3.5.75.dist-info/entry_points.txt,sha256=1jAL5AuB8mvdw2v-6E7wCZFThurQxchiQynL8DCi-Yg,3545
15
- ScriptCollection-3.5.75.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- ScriptCollection-3.5.75.dist-info/RECORD,,
12
+ ScriptCollection-3.5.77.dist-info/METADATA,sha256=tq75ry337xZ0alx95ud5g_JBR-OMbrwGS-DT0j1upWo,7664
13
+ ScriptCollection-3.5.77.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
14
+ ScriptCollection-3.5.77.dist-info/entry_points.txt,sha256=1jAL5AuB8mvdw2v-6E7wCZFThurQxchiQynL8DCi-Yg,3545
15
+ ScriptCollection-3.5.77.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ ScriptCollection-3.5.77.dist-info/RECORD,,