pygenutils 16.1.2__tar.gz → 16.1.3__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.
Files changed (47) hide show
  1. {pygenutils-16.1.2/pygenutils.egg-info → pygenutils-16.1.3}/PKG-INFO +2 -2
  2. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/__init__.py +1 -1
  3. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/operative_systems/os_operations.py +9 -12
  4. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/strings/string_handler.py +1 -1
  5. {pygenutils-16.1.2 → pygenutils-16.1.3/pygenutils.egg-info}/PKG-INFO +2 -2
  6. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/requires.txt +1 -1
  7. {pygenutils-16.1.2 → pygenutils-16.1.3}/pyproject.toml +2 -2
  8. {pygenutils-16.1.2 → pygenutils-16.1.3}/LICENSE +0 -0
  9. {pygenutils-16.1.2 → pygenutils-16.1.3}/MANIFEST.in +0 -0
  10. {pygenutils-16.1.2 → pygenutils-16.1.3}/README.md +0 -0
  11. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/__init__.py +0 -0
  12. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/conversions.py +0 -0
  13. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/data_manipulation.py +0 -0
  14. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/maths.py +0 -0
  15. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/patterns.py +0 -0
  16. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/__init__.py +0 -0
  17. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/audio_and_video_manipulation.py +0 -0
  18. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/merge_audio_and_video.py +0 -0
  19. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/merge_audio_or_video.py +0 -0
  20. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/trim_media.py +0 -0
  21. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/dictionaries/__init__.py +0 -0
  22. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/dictionaries/dict_handler.py +0 -0
  23. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/dictionaries/dict_operators.py +0 -0
  24. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/__init__.py +0 -0
  25. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/base_converters.py +0 -0
  26. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/binary_operations.py +0 -0
  27. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/bitwise_operators.py +0 -0
  28. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/mathematical_utils.py +0 -0
  29. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/operative_systems/__init__.py +0 -0
  30. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/sets_and_intervals/__init__.py +0 -0
  31. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/sets_and_intervals/interval_handler.py +0 -0
  32. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/sets_and_intervals/sets_handler.py +0 -0
  33. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/strings/__init__.py +0 -0
  34. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/strings/text_formatters.py +0 -0
  35. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/__init__.py +0 -0
  36. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/calendar_utils.py +0 -0
  37. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/countdown.py +0 -0
  38. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/date_and_time_maths.py +0 -0
  39. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/date_and_time_utils.py +0 -0
  40. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/program_snippet_exec_timers.py +0 -0
  41. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/time_formatters.py +0 -0
  42. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/time_utils.py +0 -0
  43. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/SOURCES.txt +0 -0
  44. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/dependency_links.txt +0 -0
  45. {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/top_level.txt +0 -0
  46. {pygenutils-16.1.2 → pygenutils-16.1.3}/setup.cfg +0 -0
  47. {pygenutils-16.1.2 → pygenutils-16.1.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygenutils
3
- Version: 16.1.2
3
+ Version: 16.1.3
4
4
  Summary: A comprehensive Python utility library for general-purpose and specialised tasks
5
5
  Author-email: Jon Ander Gabantxo <jagabantxo@gmail.com>
6
6
  License: MIT License
@@ -46,7 +46,7 @@ Requires-Dist: more_itertools>=10.0.0
46
46
  Requires-Dist: numpy<2.0.0,>=1.21.0
47
47
  Requires-Dist: pandas<2.0.0,>=1.3.0
48
48
  Requires-Dist: filewise>=3.11.0
49
- Requires-Dist: paramlib>=3.4.0
49
+ Requires-Dist: paramlib>=3.4.3
50
50
  Requires-Dist: arrow>=1.2.0
51
51
  Provides-Extra: xarray
52
52
  Requires-Dist: xarray>=2024.2.0; extra == "xarray"
@@ -3,7 +3,7 @@
3
3
 
4
4
  # pygenutils/__init__.py
5
5
 
6
- __version__ = "16.1.2"
6
+ __version__ = "16.1.3"
7
7
 
8
8
  # Define what should be available when using 'from pygenutils import *'
9
9
  __all__ = [
@@ -243,7 +243,7 @@ def subprocess_popen_helper(command, capture_output, encoding, return_output_nam
243
243
  # Wait for command to complete
244
244
  process.wait()
245
245
 
246
- # Initialize return dictionary with return code
246
+ # Initialise return dictionary with return code
247
247
  return_dict = {"return_code": process.returncode}
248
248
 
249
249
  # Add errors if available
@@ -344,13 +344,12 @@ def subprocess_run_helper(command, capture_output, encoding, shell, text):
344
344
  - 'stdout': The captured standard output (if capture_output=True).
345
345
  - 'stderr': The captured standard error (if capture_output=True).
346
346
  - 'return_code': The exit code of the command.
347
-
348
- Raises
349
- ------
350
- CalledProcessError
351
- If the command returns a non-zero exit code.
347
+
348
+ Note: This function always returns the result dictionary regardless of the
349
+ return code. The caller should check the 'return_code' field and decide
350
+ how to handle non-zero exit codes.
352
351
  """
353
- from subprocess import run, CalledProcessError
352
+ from subprocess import run
354
353
 
355
354
  # Set text parameter (if not provided, use encoding as a fallback)
356
355
  text_param = text if text is not None else bool(encoding)
@@ -358,7 +357,7 @@ def subprocess_run_helper(command, capture_output, encoding, shell, text):
358
357
  # Execute the command and capture output if requested
359
358
  result = run(command, capture_output=capture_output, text=text_param, shell=shell)
360
359
 
361
- # Initialize return dictionary with return code
360
+ # Initialise return dictionary with return code
362
361
  return_dict = {"return_code": result.returncode}
363
362
 
364
363
  # Only process stdout/stderr if they were captured
@@ -370,10 +369,8 @@ def subprocess_run_helper(command, capture_output, encoding, shell, text):
370
369
  if hasattr(result, "stderr"):
371
370
  return_dict["stderr"] = result.stderr.strip() if result.stderr else ""
372
371
 
373
- # Raise an error for non-zero return codes
374
- if result.returncode != 0:
375
- raise CalledProcessError(result.returncode, command)
376
-
372
+ # Always return the result dictionary, regardless of return code
373
+ # Let the caller decide how to handle non-zero return codes
377
374
  return return_dict
378
375
 
379
376
  # %%
@@ -664,7 +664,7 @@ def substring_replacer(string, substr2find, substr2replace, count_std=-1,
664
664
  The maximum number of occurrences to replace when using advanced search. Default is 0.
665
665
  If 0, all occurrences will be replaced.
666
666
  flags : int, optional
667
- Flags to modify the behavior of the regex operation. Default is 0.
667
+ Flags to modify the behaviour of the regex operation. Default is 0.
668
668
 
669
669
  Returns
670
670
  -------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygenutils
3
- Version: 16.1.2
3
+ Version: 16.1.3
4
4
  Summary: A comprehensive Python utility library for general-purpose and specialised tasks
5
5
  Author-email: Jon Ander Gabantxo <jagabantxo@gmail.com>
6
6
  License: MIT License
@@ -46,7 +46,7 @@ Requires-Dist: more_itertools>=10.0.0
46
46
  Requires-Dist: numpy<2.0.0,>=1.21.0
47
47
  Requires-Dist: pandas<2.0.0,>=1.3.0
48
48
  Requires-Dist: filewise>=3.11.0
49
- Requires-Dist: paramlib>=3.4.0
49
+ Requires-Dist: paramlib>=3.4.3
50
50
  Requires-Dist: arrow>=1.2.0
51
51
  Provides-Extra: xarray
52
52
  Requires-Dist: xarray>=2024.2.0; extra == "xarray"
@@ -2,7 +2,7 @@ more_itertools>=10.0.0
2
2
  numpy<2.0.0,>=1.21.0
3
3
  pandas<2.0.0,>=1.3.0
4
4
  filewise>=3.11.0
5
- paramlib>=3.4.0
5
+ paramlib>=3.4.3
6
6
  arrow>=1.2.0
7
7
 
8
8
  [dev]
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pygenutils"
7
- version = "16.1.2"
7
+ version = "16.1.3"
8
8
  license = {file = "LICENSE"}
9
9
  description = "A comprehensive Python utility library for general-purpose and specialised tasks"
10
10
  keywords = ["utilities", "python", "general-purpose", "file handling", "string processing"]
@@ -30,7 +30,7 @@ dependencies = [
30
30
  "numpy>=1.21.0,<2.0.0",
31
31
  "pandas>=1.3.0,<2.0.0",
32
32
  "filewise>=3.11.0",
33
- "paramlib>=3.4.0",
33
+ "paramlib>=3.4.3",
34
34
  "arrow>=1.2.0",
35
35
  ]
36
36
 
File without changes
File without changes
File without changes
File without changes
File without changes