Move list_dict_handling to iterator_handling, add settings parser, add list helpers, add some string helpers

list_helpers:
convert to list, any input, output is always a list
compare to lists, check what elements from A are not in B, type safe

string helpers
add is_int, is_float checker
add string to bool converter for true/True/false/False strings

config reader with parsing and checking
The simple config reader is now in the corelibs with the basic content check, convert to list for entries, convert to value for entries, etc

log updates:
Add Log type Enum for better log level checks and convert
Add a get int for requested log level, and return default if not found
Make the validate log level a static function

Add tests for list helpers and new string helpers
This commit is contained in:
Clemens Schwaighofer
2025-07-11 10:58:35 +09:00
parent 19d7e9b5ed
commit c559a6bafb
21 changed files with 1332 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ def __sh_format_number():
print(f"Format {number} ({precision}) -> {result}")
def _sh_colors():
def __sh_colors():
for color in [
"black",
"red",
@@ -79,7 +79,7 @@ def main():
"""
__sh_shorten_string()
__sh_format_number()
_sh_colors()
__sh_colors()
if __name__ == "__main__":