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.
- {pygenutils-16.1.2/pygenutils.egg-info → pygenutils-16.1.3}/PKG-INFO +2 -2
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/__init__.py +1 -1
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/operative_systems/os_operations.py +9 -12
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/strings/string_handler.py +1 -1
- {pygenutils-16.1.2 → pygenutils-16.1.3/pygenutils.egg-info}/PKG-INFO +2 -2
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/requires.txt +1 -1
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pyproject.toml +2 -2
- {pygenutils-16.1.2 → pygenutils-16.1.3}/LICENSE +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/MANIFEST.in +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/README.md +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/conversions.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/data_manipulation.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/maths.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/arrays_and_lists/patterns.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/audio_and_video_manipulation.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/merge_audio_and_video.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/merge_audio_or_video.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/trim_media.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/dictionaries/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/dictionaries/dict_handler.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/dictionaries/dict_operators.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/base_converters.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/binary_operations.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/bitwise_operators.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/number_bases/mathematical_utils.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/operative_systems/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/sets_and_intervals/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/sets_and_intervals/interval_handler.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/sets_and_intervals/sets_handler.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/strings/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/strings/text_formatters.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/__init__.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/calendar_utils.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/countdown.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/date_and_time_maths.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/date_and_time_utils.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/program_snippet_exec_timers.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/time_formatters.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/time_utils.py +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/SOURCES.txt +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/dependency_links.txt +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils.egg-info/top_level.txt +0 -0
- {pygenutils-16.1.2 → pygenutils-16.1.3}/setup.cfg +0 -0
- {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.
|
|
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.
|
|
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"
|
|
@@ -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
|
-
#
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
|
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
|
-
#
|
|
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
|
-
#
|
|
374
|
-
|
|
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
|
|
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.
|
|
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.
|
|
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"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pygenutils"
|
|
7
|
-
version = "16.1.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/audio_and_video/audio_and_video_manipulation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pygenutils-16.1.2 → pygenutils-16.1.3}/pygenutils/time_handling/program_snippet_exec_timers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|