osbot-utils 2.84.0__py3-none-any.whl → 2.86.0__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.
Files changed (27) hide show
  1. osbot_utils/type_safe/Type_Safe__Primitive.py +6 -1
  2. osbot_utils/type_safe/primitives/safe_str/Safe_Str.py +9 -9
  3. osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__Hash.py +4 -4
  4. osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__SHA1.py +1 -1
  5. osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__SHA1__Short.py +1 -1
  6. osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Safe_Str__NaCl__Private_Key.py +1 -1
  7. osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Safe_Str__NaCl__Public_Key.py +1 -1
  8. osbot_utils/type_safe/primitives/safe_str/filesystem/Safe_Str__File__Name.py +1 -1
  9. osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Ref.py +1 -1
  10. osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Ref_Base.py +1 -1
  11. osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Version.py +1 -1
  12. osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo.py +8 -4
  13. osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo_Name.py +3 -3
  14. osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo_Owner.py +4 -4
  15. osbot_utils/type_safe/primitives/safe_str/http/Safe_Str__Http__Content_Type.py +1 -1
  16. osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Dict.py +8 -3
  17. osbot_utils/type_safe/type_safe_core/collections/Type_Safe__List.py +2 -0
  18. osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Set.py +17 -2
  19. osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Tuple.py +38 -5
  20. osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__From_Json.py +6 -2
  21. osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Set_Attr.py +17 -1
  22. osbot_utils/utils/Objects.py +10 -6
  23. osbot_utils/version +1 -1
  24. {osbot_utils-2.84.0.dist-info → osbot_utils-2.86.0.dist-info}/METADATA +2 -2
  25. {osbot_utils-2.84.0.dist-info → osbot_utils-2.86.0.dist-info}/RECORD +27 -27
  26. {osbot_utils-2.84.0.dist-info → osbot_utils-2.86.0.dist-info}/LICENSE +0 -0
  27. {osbot_utils-2.84.0.dist-info → osbot_utils-2.86.0.dist-info}/WHEEL +0 -0
@@ -67,4 +67,9 @@ class Type_Safe__Primitive:
67
67
  if self.__primitive_base__ is str:
68
68
  return f"{type(self).__name__}('{value_str}')"
69
69
  else:
70
- return f"{type(self).__name__}({value_str})"
70
+ return f"{type(self).__name__}({value_str})"
71
+
72
+ def __to_primitive__(self): # Convert this Type_Safe__Primitive instance to its base primitive type.
73
+ if self.__primitive_base__:
74
+ return self.__primitive_base__(self)
75
+ return str(self) # fallback
@@ -12,7 +12,7 @@ class Safe_Str(Type_Safe__Primitive, str):
12
12
  regex : re.Pattern = TYPE_SAFE__STR__REGEX__SAFE_STR
13
13
  regex_mode : Enum__Safe_Str__Regex_Mode = Enum__Safe_Str__Regex_Mode.REPLACE
14
14
  replacement_char : str = '_'
15
- allow_empty : bool = True
15
+ allow_empty : bool = True # note: making this False does cause some side effects on .json() on cases like auto serialization in environments like FastAPI (like it requires more explict value setting), so all have now been converted into a value of True
16
16
  trim_whitespace : bool = False
17
17
  allow_all_replacement_char: bool = True
18
18
  strict_validation : bool = False # If True, don't replace invalid chars, raise an error instead
@@ -34,12 +34,12 @@ class Safe_Str(Type_Safe__Primitive, str):
34
34
  value = value.strip()
35
35
 
36
36
  if not cls.allow_empty and (value is None or value == ""): # Check for empty string if not allowed
37
- raise ValueError("Value cannot be empty when allow_empty is False")
37
+ raise ValueError(f"in {cls.__name__}, value cannot be empty when allow_empty is False")
38
38
 
39
- if cls.exact_length and len(value) != cls.max_length:
40
- raise ValueError(f"Value must be exactly {cls.max_length} characters long (was {len(value)})")
39
+ if cls.exact_length and len(value) and len(value) != cls.max_length:
40
+ raise ValueError(f"in {cls.__name__}, value must be exactly {cls.max_length} characters long (was {len(value)})")
41
41
  elif not cls.exact_length and len(value) > cls.max_length: # Check max length
42
- raise ValueError(f"Value exceeds maximum length of {cls.max_length} characters (was {len(value)})")
42
+ raise ValueError(f"in {cls.__name__}, value exceeds maximum length of {cls.max_length} characters (was {len(value)})")
43
43
 
44
44
  if cls.allow_empty and value =='':
45
45
  return str.__new__(cls, '')
@@ -54,22 +54,22 @@ class Safe_Str(Type_Safe__Primitive, str):
54
54
  if cls.strict_validation:
55
55
  if cls.regex_mode == Enum__Safe_Str__Regex_Mode.MATCH: # For 'match' mode, regex defines the valid pattern (like version numbers)
56
56
  if not cls.regex.match(value):
57
- raise ValueError(f"Value does not match required pattern: {cls.regex.pattern}")
57
+ raise ValueError(f"in {cls.__name__}, value does not match required pattern: {cls.regex.pattern}")
58
58
  return value
59
59
  elif cls.regex_mode == Enum__Safe_Str__Regex_Mode.REPLACE: # For 'replace' mode, regex defines invalid characters to replace
60
60
  if cls.regex.search(value) is not None:
61
- raise ValueError(f"Value contains invalid characters (must not match pattern: {cls.regex.pattern})")
61
+ raise ValueError(f"in {cls.__name__}, value contains invalid characters (must not match pattern: {cls.regex.pattern})")
62
62
  return value
63
63
  else:
64
64
  raise ValueError(f"in {cls.__name__}, regex_mode value cannot be None when strict_validation is True")
65
65
  else:
66
66
  if cls.regex_mode == Enum__Safe_Str__Regex_Mode.MATCH: # Cannot do replacement when regex defines valid pattern
67
- raise ValueError(f"Cannot use regex_mode='match' without strict_validation=True")
67
+ raise ValueError(f"in {cls.__name__}, cannot use regex_mode='match' without strict_validation=True")
68
68
  else: # assume the default Enum__Safe_Str__Regex_Mode.MATCH
69
69
  sanitized_value = cls.regex.sub(cls.replacement_char, value)
70
70
 
71
71
  if not cls.allow_all_replacement_char and set(sanitized_value) == {
72
72
  cls.replacement_char} and sanitized_value:
73
- raise ValueError(f"Sanitized value consists entirely of '{cls.replacement_char}' characters")
73
+ raise ValueError(f"in {cls.__name__}, sanitized value consists entirely of '{cls.replacement_char}' characters")
74
74
 
75
75
  return sanitized_value
@@ -10,10 +10,10 @@ TYPE_SAFE_STR__HASH__REGEX = re.compile(r'[^a-fA-F0-9]') # Only a
10
10
  class Safe_Str__Hash(Safe_Str):
11
11
  regex = TYPE_SAFE_STR__HASH__REGEX
12
12
  max_length = SIZE__VALUE_HASH
13
- allow_empty = False # Don't allow empty hash values
14
- trim_whitespace = True # Trim any whitespace
15
- strict_validation = True # Enable strict validation - new attribute
16
- exact_length = True # Require exact length match - new attribute
13
+ allow_empty = True # Don't allow empty hash values
14
+ trim_whitespace = True # Trim any whitespace
15
+ strict_validation = True # Enable strict validation - new attribute
16
+ exact_length = True # Require exact length match - new attribute
17
17
 
18
18
  def safe_str_hash(value: Any) -> Safe_Str__Hash:
19
19
  if isinstance(value, str):
@@ -21,6 +21,6 @@ class Safe_Str__SHA1(Safe_Str):
21
21
  regex_mode = Enum__Safe_Str__Regex_Mode.MATCH
22
22
  max_length = TYPE_SAFE_STR__GITHUB__SHA__LENGTH
23
23
  exact_length = True
24
- allow_empty = False
24
+ allow_empty = True
25
25
  trim_whitespace = True
26
26
  strict_validation = True
@@ -19,6 +19,6 @@ class Safe_Str__SHA1__Short(Safe_Str):
19
19
  regex_mode = Enum__Safe_Str__Regex_Mode.MATCH
20
20
  max_length = TYPE_SAFE_STR__GITHUB__SHA_SHORT__LENGTH
21
21
  exact_length = True
22
- allow_empty = False
22
+ allow_empty = True
23
23
  trim_whitespace = True
24
24
  strict_validation = True
@@ -22,6 +22,6 @@ class Safe_Str__NaCl__Private_Key(Safe_Str):
22
22
  regex_mode = Enum__Safe_Str__Regex_Mode.MATCH
23
23
  max_length = TYPE_SAFE_STR__NACL__PRIVATE_KEY__LENGTH
24
24
  exact_length = True
25
- allow_empty = False
25
+ allow_empty = True
26
26
  trim_whitespace = True
27
27
  strict_validation = True
@@ -23,6 +23,6 @@ class Safe_Str__NaCl__Public_Key(Safe_Str):
23
23
  regex_mode = Enum__Safe_Str__Regex_Mode.MATCH
24
24
  max_length = TYPE_SAFE_STR__NACL__PUBLIC_KEY__LENGTH
25
25
  exact_length = True
26
- allow_empty = False
26
+ allow_empty = True
27
27
  trim_whitespace = True
28
28
  strict_validation = True
@@ -5,6 +5,6 @@ TYPE_SAFE_STR__FILE__NAME__REGEX = re.compile(r'[^a-zA-Z0-9_\-. ]')
5
5
 
6
6
  class Safe_Str__File__Name(Safe_Str):
7
7
  regex = TYPE_SAFE_STR__FILE__NAME__REGEX
8
- allow_empty = False
8
+ allow_empty = True
9
9
  trim_whitespace = True
10
10
  allow_all_replacement_char = False
@@ -24,7 +24,7 @@ class Safe_Str__Git__Ref(Safe_Str):
24
24
  - /repos/{owner}/{repo}/commits/{ref}
25
25
  """
26
26
  max_length = 255
27
- allow_empty = False
27
+ allow_empty = True
28
28
  trim_whitespace = True
29
29
 
30
30
  def __new__(cls, value=None):
@@ -23,7 +23,7 @@ class Safe_Str__Git__Ref_Base(Safe_Str):
23
23
  """
24
24
  regex = TYPE_SAFE_STR__GIT_REF__REGEX
25
25
  max_length = TYPE_SAFE_STR__GIT_REF__MAX_LENGTH
26
- allow_empty = False
26
+ allow_empty = True
27
27
  trim_whitespace = True
28
28
  allow_all_replacement_char = True
29
29
 
@@ -9,7 +9,7 @@ class Safe_Str__Version(Safe_Str):
9
9
  regex = TYPE_SAFE_STR__VERSION__REGEX
10
10
  regex_mode = Enum__Safe_Str__Regex_Mode.MATCH # in this case we need an exact match of the version regex
11
11
  max_length = TYPE_SAFE_STR__VERSION__MAX_LENGTH
12
- allow_empty = False
12
+ allow_empty = True
13
13
  trim_whitespace = True
14
14
  strict_validation = True # Ensure the value exactly matches the regex
15
15
 
@@ -20,7 +20,7 @@ class Safe_Str__GitHub__Repo(Safe_Str):
20
20
  """
21
21
  regex = TYPE_SAFE_STR__GITHUB__REPO__REGEX
22
22
  max_length = TYPE_SAFE_STR__GITHUB__REPO__MAX_LENGTH
23
- allow_empty = False
23
+ allow_empty = True
24
24
  trim_whitespace = True
25
25
  allow_all_replacement_char = False
26
26
  repo_owner : Safe_Str__GitHub__Repo_Owner = None # note: due to the str override these will not show in the Pycharm code hints (but they will work)
@@ -31,16 +31,20 @@ class Safe_Str__GitHub__Repo(Safe_Str):
31
31
 
32
32
  if result:
33
33
  if '/' not in result: # Check for the required forward slash
34
- raise ValueError(f"GitHub repository must be in 'owner/repo' format: {result}")
34
+ raise ValueError(f"in {cls.__name__}, gitHub repository must be in 'owner/repo' format: {result}")
35
35
 
36
36
 
37
37
  parts = result.split('/') # Split and validate components using the dedicated classes
38
38
  if len(parts) != 2:
39
- raise ValueError(f"GitHub repository must be in 'owner/repo' format: {result}")
39
+ raise ValueError(f"in {cls.__name__}, gitHub repository must be in 'owner/repo' format: {result}")
40
40
 
41
41
  owner_part, repo_part = parts
42
42
 
43
43
  result.repo_owner = Safe_Str__GitHub__Repo_Owner(owner_part) # Validate using the dedicated classes (and store the references)
44
- result.repo_name = Safe_Str__GitHub__Repo_Name(repo_part ) # This will raise appropriate errors if validation fails
44
+ result.repo_name = Safe_Str__GitHub__Repo_Name(repo_part )
45
+ if not result.repo_owner:
46
+ raise ValueError(f"in {cls.__name__}, missing owner, gitHub repository must be in 'owner/repo' format: {result}")
47
+ if not result.repo_name:
48
+ raise ValueError(f"in {cls.__name__}, missing name, gitHub repository must be in 'owner/repo' format: {result}")
45
49
 
46
50
  return result
@@ -15,7 +15,7 @@ class Safe_Str__GitHub__Repo_Name(Safe_Str):
15
15
  """
16
16
  regex = TYPE_SAFE_STR__GITHUB__REPO_NAME__REGEX
17
17
  max_length = TYPE_SAFE_STR__GITHUB__REPO_NAME__MAX_LENGTH
18
- allow_empty = False
18
+ allow_empty = True
19
19
  trim_whitespace = True
20
20
  allow_all_replacement_char = False
21
21
 
@@ -26,10 +26,10 @@ class Safe_Str__GitHub__Repo_Name(Safe_Str):
26
26
  if result:
27
27
  # Check if it's just periods (reserved names)
28
28
  if result in ['.', '..']:
29
- raise ValueError(f"Invalid repository name: {result}")
29
+ raise ValueError(f"in {cls.__name__}, invalid repository name: {result}")
30
30
 
31
31
  # Check for all replacement characters
32
32
  if set(result) == {'_'} and len(result) > 0:
33
- raise ValueError(f"Invalid repository name: {result}")
33
+ raise ValueError(f"in {cls.__name__}, invalid repository name: {result}")
34
34
 
35
35
  return result
@@ -16,7 +16,7 @@ class Safe_Str__GitHub__Repo_Owner(Safe_Str):
16
16
  """
17
17
  regex = TYPE_SAFE_STR__GITHUB__REPO_OWNER__REGEX
18
18
  max_length = TYPE_SAFE_STR__GITHUB__REPO_OWNER__MAX_LENGTH
19
- allow_empty = False
19
+ allow_empty = True
20
20
  trim_whitespace = True
21
21
  allow_all_replacement_char = False
22
22
 
@@ -26,13 +26,13 @@ class Safe_Str__GitHub__Repo_Owner(Safe_Str):
26
26
 
27
27
  if result: # Additional GitHub-specific validation
28
28
  if result.startswith('-') or result.endswith('-'): # Check for leading/trailing hyphens
29
- raise ValueError(f"GitHub owner name cannot start or end with a hyphen: {result}")
29
+ raise ValueError(f"in {cls.__name__}, gitHub owner name cannot start or end with a hyphen: {result}")
30
30
 
31
31
  if '--' in result: # Check for consecutive hyphens
32
- raise ValueError(f"GitHub owner name cannot contain consecutive hyphens: {result}")
32
+ raise ValueError(f"in {cls.__name__}, gitHub owner name cannot contain consecutive hyphens: {result}")
33
33
 
34
34
  if result.replace('_', '') == '': # Check for all underscores (sanitized invalid input)
35
- raise ValueError(f"Invalid GitHub owner name: {result}")
35
+ raise ValueError(f"in {cls.__name__}, invalid GitHub owner name: {result}")
36
36
 
37
37
  return result
38
38
 
@@ -7,6 +7,6 @@ TYPE_SAFE_STR__HTTP__CONTENT_TYPE__MAX_LENGTH = 256
7
7
  class Safe_Str__Http__Content_Type(Safe_Str):
8
8
  regex = TYPE_SAFE_STR__HTTP__CONTENT_TYPE__REGEX
9
9
  max_length = TYPE_SAFE_STR__HTTP__CONTENT_TYPE__MAX_LENGTH
10
- allow_empty = False
10
+ allow_empty = True
11
11
  trim_whitespace = True
12
12
  allow_all_replacement_char = False
@@ -1,5 +1,6 @@
1
1
  from typing import Type
2
2
  from osbot_utils.type_safe.Type_Safe__Base import Type_Safe__Base
3
+ from osbot_utils.type_safe.Type_Safe__Primitive import Type_Safe__Primitive
3
4
  from osbot_utils.type_safe.type_safe_core.collections.Type_Safe__List import Type_Safe__List
4
5
 
5
6
 
@@ -35,7 +36,8 @@ class Type_Safe__Dict(Type_Safe__Base, dict):
35
36
 
36
37
  if isinstance(key, (type, Type)): # Handle Type objects as keys
37
38
  key = f"{key.__module__}.{key.__name__}"
38
-
39
+ elif isinstance(key, Type_Safe__Primitive):
40
+ key = key.__to_primitive__()
39
41
  if isinstance(value, Type_Safe): # Handle Type_Safe objects in values
40
42
  result[key] = value.json()
41
43
  elif isinstance(value, (list, tuple)): # Handle lists/tuples that might contain Type_Safe objects
@@ -44,8 +46,11 @@ class Type_Safe__Dict(Type_Safe__Base, dict):
44
46
  elif isinstance(value, dict): # Handle nested dictionaries that might contain Type_Safe objects
45
47
  result[key] = {k: v.json() if isinstance(v, Type_Safe) else v
46
48
  for k, v in value.items()}
47
- else: # Regular values can be used as-is
48
- result[key] = value
49
+ else:
50
+ if isinstance(value, Type_Safe__Primitive):
51
+ result[key] = value.__to_primitive__()
52
+ else:
53
+ result[key] = value
49
54
  return result
50
55
 
51
56
  def keys(self) -> Type_Safe__List:
@@ -50,6 +50,8 @@ class Type_Safe__List(Type_Safe__Base, list):
50
50
  for item in self:
51
51
  if isinstance(item, Type_Safe):
52
52
  result.append(item.json())
53
+ elif isinstance(item, Type_Safe__Primitive):
54
+ result.append(item.__to_primitive__())
53
55
  elif isinstance(item, (list, tuple)):
54
56
  result.append([x.json() if isinstance(x, Type_Safe) else x for x in item])
55
57
  elif isinstance(item, dict):
@@ -1,4 +1,6 @@
1
1
  from osbot_utils.type_safe.Type_Safe__Base import Type_Safe__Base, type_str
2
+ from osbot_utils.type_safe.Type_Safe__Primitive import Type_Safe__Primitive
3
+
2
4
 
3
5
  class Type_Safe__Set(Type_Safe__Base, set):
4
6
  def __init__(self, expected_type, *args):
@@ -10,10 +12,21 @@ class Type_Safe__Set(Type_Safe__Base, set):
10
12
  return f"set[{expected_type_name}] with {len(self)} elements"
11
13
 
12
14
  def add(self, item):
13
- try:
15
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
16
+ if type(self.expected_type) is type and issubclass(self.expected_type, Type_Safe) and type(item) is dict: # Handle Type_Safe objects from dicts
17
+ item = self.expected_type.from_json(item)
18
+ elif type(self.expected_type) is type and issubclass(self.expected_type, Type_Safe__Primitive): # Handle Type_Safe__Primitive conversions (str -> Safe_Str, etc.)
19
+ if not isinstance(item, self.expected_type):
20
+ try:
21
+ item = self.expected_type(item)
22
+ except (ValueError, TypeError) as e:
23
+ raise TypeError(f"In Type_Safe__Set: Could not convert {type(item).__name__} to {self.expected_type.__name__}: {e}") from None
24
+
25
+ try: # Now validate the (possibly converted) item
14
26
  self.is_instance_of_type(item, self.expected_type)
15
27
  except TypeError as e:
16
- raise TypeError(f"In Type_Safe__Set: Invalid type for item: {e}")
28
+ raise TypeError(f"In Type_Safe__Set: Invalid type for item: {e}") from None
29
+
17
30
  super().add(item)
18
31
 
19
32
  def json(self):
@@ -23,6 +36,8 @@ class Type_Safe__Set(Type_Safe__Base, set):
23
36
  for item in self:
24
37
  if isinstance(item, Type_Safe):
25
38
  result.append(item.json())
39
+ elif isinstance(item, Type_Safe__Primitive):
40
+ result.append(item.__to_primitive__())
26
41
  elif isinstance(item, (list, tuple, set)):
27
42
  result.append([x.json() if isinstance(x, Type_Safe) else x for x in item])
28
43
  elif isinstance(item, dict):
@@ -3,14 +3,44 @@ from osbot_utils.type_safe.Type_Safe__Base import Type_Safe__Base, type_str
3
3
  class Type_Safe__Tuple(Type_Safe__Base, tuple):
4
4
 
5
5
  def __new__(cls, expected_types, items=None):
6
- items = items or tuple()
7
- instance = super().__new__(cls, items)
6
+ items = items or tuple()
7
+
8
+ converted_items = cls.convert_items(expected_types, items) # Convert items BEFORE creating the tuple
9
+
10
+ instance = super().__new__(cls, converted_items)
8
11
  instance.expected_types = expected_types
9
12
  return instance
10
13
 
11
- def __init__(self, expected_types, items=None): # todo: see if we should be assigning expected_types to self here
14
+ def __init__(self, expected_types, items=None):
12
15
  if items:
13
- self.validate_items(items)
16
+ self.validate_items(self) # Validate the already-converted items
17
+
18
+ @classmethod
19
+ def convert_items(cls, expected_types, items): # Convert items to expected types before creating the tuple.
20
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
21
+ from osbot_utils.type_safe.Type_Safe__Primitive import Type_Safe__Primitive
22
+
23
+ if not items:
24
+ return tuple()
25
+
26
+ if len(items) != len(expected_types):
27
+ raise ValueError(f"Expected {len(expected_types)} elements, got {len(items)}")
28
+
29
+
30
+ converted = []
31
+ for item, expected_type in zip(items, expected_types):
32
+ if type(expected_type) is type and issubclass(expected_type, Type_Safe) and type(item) is dict: # Handle Type_Safe objects from dicts
33
+ item = expected_type.from_json(item)
34
+ elif type(expected_type) is type and issubclass(expected_type, Type_Safe__Primitive): # Handle Type_Safe__Primitive conversions
35
+ if not isinstance(item, expected_type):
36
+ try:
37
+ item = expected_type(item)
38
+ except (ValueError, TypeError) as e:
39
+ raise TypeError(f"In Type_Safe__Tuple: Could not convert {type(item).__name__} to {expected_type.__name__}: {e}") from None
40
+
41
+ converted.append(item)
42
+
43
+ return tuple(converted)
14
44
 
15
45
  def validate_items(self, items):
16
46
  if len(items) != len(self.expected_types):
@@ -26,12 +56,15 @@ class Type_Safe__Tuple(Type_Safe__Base, tuple):
26
56
  return f"tuple[{types_str}] with {len(self)} elements"
27
57
 
28
58
  def json(self):
29
- from osbot_utils.type_safe.Type_Safe import Type_Safe
59
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
60
+ from osbot_utils.type_safe.Type_Safe__Primitive import Type_Safe__Primitive
30
61
 
31
62
  result = []
32
63
  for item in self:
33
64
  if isinstance(item, Type_Safe):
34
65
  result.append(item.json())
66
+ elif isinstance(item, Type_Safe__Primitive):
67
+ result.append(item.__to_primitive__()) # Convert primitives to base types
35
68
  elif isinstance(item, (list, tuple)):
36
69
  result.append([x.json() if isinstance(x, Type_Safe) else x for x in item])
37
70
  elif isinstance(item, dict):
@@ -10,6 +10,7 @@ from osbot_utils.type_safe.primitives.safe_str.cryptography.hashes.Safe_Str__Has
10
10
  from osbot_utils.type_safe.type_safe_core.collections.Type_Safe__Dict import Type_Safe__Dict
11
11
  from osbot_utils.type_safe.type_safe_core.collections.Type_Safe__List import Type_Safe__List
12
12
  from osbot_utils.type_safe.type_safe_core.collections.Type_Safe__Set import Type_Safe__Set
13
+ from osbot_utils.type_safe.type_safe_core.collections.Type_Safe__Tuple import Type_Safe__Tuple
13
14
  from osbot_utils.type_safe.type_safe_core.shared.Type_Safe__Annotations import type_safe_annotations
14
15
  from osbot_utils.type_safe.type_safe_core.shared.Type_Safe__Cache import type_safe_cache
15
16
  from osbot_utils.type_safe.type_safe_core.shared.Type_Safe__Convert import type_safe_convert
@@ -60,8 +61,11 @@ class Type_Safe__Step__From_Json:
60
61
  elif annotation_origin == type: # Handle type objects inside ForwardRef
61
62
  value = self.deserialize_type__using_value(value)
62
63
  if annotation_origin is tuple and isinstance(value, list):
63
- # item_types = get_args(annotation) # todo: see if we should do type safety here
64
- value = tuple(value)
64
+ item_types = get_args(annotation)
65
+ if item_types:
66
+ value = Type_Safe__Tuple(expected_types=item_types, items=value) # Create a Type_Safe__Tuple with proper type conversion
67
+ else:
68
+ value = tuple(value)
65
69
  elif type_safe_annotations.obj_is_attribute_annotation_of_type(_self, key, dict): # handle the case when the value is a dict
66
70
  value = self.deserialize_dict__using_key_value_annotations(_self, key, value)
67
71
  elif type_safe_annotations.obj_is_attribute_annotation_of_type(_self, key, set): # handle the case when the value is a list
@@ -13,6 +13,8 @@ class Type_Safe__Step__Set_Attr:
13
13
  value = self.resolve_value__dict(_self, name, value)
14
14
  elif type(value) is list:
15
15
  value = self.resolve_value__list(_self, name, value)
16
+ elif type(value) is tuple:
17
+ value = self.resolve_value__tuple(_self, name, value)
16
18
  elif isinstance(annotations.get(name), type) and issubclass(annotations.get(name), Type_Safe__Primitive) and type(value) in (int, str, float):
17
19
  return annotations.get(name)(value)
18
20
  elif type(value) in (int, str): # for now only a small number of str and int classes are supported (until we understand the full implications of this)
@@ -53,6 +55,20 @@ class Type_Safe__Step__Set_Attr:
53
55
  return type_safe_list
54
56
 
55
57
  return value
58
+
59
+ def resolve_value__tuple(self, _self, name, value): # Convert regular tuples to Type_Safe__Tuple instances
60
+ annotations = type_safe_cache.get_obj_annotations(_self)
61
+ annotation = annotations.get(name)
62
+
63
+ if annotation:
64
+ origin = type_safe_cache.get_origin(annotation)
65
+ if origin is tuple:
66
+ args = get_args(annotation)
67
+ if args:
68
+ from osbot_utils.type_safe.type_safe_core.collections.Type_Safe__Tuple import Type_Safe__Tuple
69
+ return Type_Safe__Tuple(expected_types=args, items=value)
70
+
71
+ return value
56
72
  def resolve_value__from_origin(self, value):
57
73
  #origin = type_safe_cache.get_origin(value) # todo: figure out why this is the only place that the type_safe_cache.get_origin doesn't work (due to WeakKeyDictionary key error on value)
58
74
  origin = get_origin(value)
@@ -106,7 +122,7 @@ class Type_Safe__Step__Set_Attr:
106
122
  return _super.__setattr__(name, value)
107
123
 
108
124
  if value is not None:
109
- value = self.resolve_value (_self, annotations, name, value)
125
+ value = self.resolve_value (_self, annotations, name, value)
110
126
  value = self.handle_get_class(_self, annotations, name, value)
111
127
  else:
112
128
  type_safe_validation.validate_if_value_has_been_set(_self, annotations, name, value)
@@ -265,14 +265,18 @@ def pickle_load_from_bytes(pickled_data: bytes):
265
265
  return {}
266
266
 
267
267
  # todo: see if it is possible to add recursive protection to this logic
268
+ # todo: we should move this method to the type_safe classes and folders
268
269
  def serialize_to_dict(obj):
269
- from decimal import Decimal
270
- from enum import Enum
271
- from typing import List
272
-
273
- if hasattr(obj, '__primitive_base__') and isinstance(obj, (str, int, float)):
270
+ from decimal import Decimal
271
+ from enum import Enum
272
+ from typing import List
273
+ from osbot_utils.type_safe.Type_Safe__Base import Type_Safe__Base
274
+
275
+ if isinstance(obj, Type_Safe__Base) and hasattr(obj, 'json'): # if it is one of these Type_Safe__Base classes
276
+ return obj.json() # use the provided .json() method, which handles the type conversions more specifically to those types (dict, list, set and tuple)
277
+ elif hasattr(obj, '__primitive_base__') and isinstance(obj, (str, int, float)):
274
278
  return obj.__primitive_base__(obj)
275
- elif isinstance(obj, (str, int, float, bool, bytes, Decimal)) or obj is None: # todo: add support for objects like datetime
279
+ elif isinstance(obj, (str, int, float, bool, bytes, Decimal)) or obj is None: # todo: add support for objects like datetime
276
280
  return obj
277
281
  elif isinstance(obj, Enum):
278
282
  return obj.name
osbot_utils/version CHANGED
@@ -1 +1 @@
1
- v2.84.0
1
+ v2.86.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: osbot_utils
3
- Version: 2.84.0
3
+ Version: 2.86.0
4
4
  Summary: OWASP Security Bot - Utils
5
5
  License: MIT
6
6
  Author: Dinis Cruz
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # OSBot-Utils
23
23
 
24
- ![Current Release](https://img.shields.io/badge/release-v2.84.0-blue)
24
+ ![Current Release](https://img.shields.io/badge/release-v2.86.0-blue)
25
25
  ![Python](https://img.shields.io/badge/python-3.8+-green)
26
26
  ![Type-Safe](https://img.shields.io/badge/Type--Safe-✓-brightgreen)
27
27
  ![Caching](https://img.shields.io/badge/Caching-Built--In-orange)
@@ -351,7 +351,7 @@ osbot_utils/testing/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
351
351
  osbot_utils/testing/test_data/const__test__data__html.py,sha256=_DmA7OoCwvl1xxxn2aS8mfvf3Ct4bOt1KTUyTDqtwaQ,1718
352
352
  osbot_utils/type_safe/Type_Safe.py,sha256=G0HCBk52ehaJGhLYnt4cKUBsqfnxyRDxrY7_7YhktZg,6390
353
353
  osbot_utils/type_safe/Type_Safe__Base.py,sha256=cui8fIzUGaPsb-fnANj8nw9cYrVikdx1XZ8in3Y_-QU,9174
354
- osbot_utils/type_safe/Type_Safe__Primitive.py,sha256=-GBUcuFBBBKrVRSf7cmjPRbAxo7vnL4tOvr9ktmbVj4,3829
354
+ osbot_utils/type_safe/Type_Safe__Primitive.py,sha256=Eufm1CSenInqW8gAgULhUAXV_lMmA4UY4A5U9v8qmnU,4135
355
355
  osbot_utils/type_safe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
356
356
  osbot_utils/type_safe/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
357
  osbot_utils/type_safe/primitives/safe_float/Safe_Float.py,sha256=qgmO8S8wFHXA4O3hm4bdamFZ0HkaN_r59hSbUNevHhc,6687
@@ -363,31 +363,31 @@ osbot_utils/type_safe/primitives/safe_int/Safe_Int.py,sha256=IB_ZVtuQlAfRWZH1teZ
363
363
  osbot_utils/type_safe/primitives/safe_int/Timestamp_Now.py,sha256=OZwSwmYA1pZAnVglpx2lBL5t8Pu_HxzmYdNEJnmTqKI,536
364
364
  osbot_utils/type_safe/primitives/safe_int/__init__.py,sha256=Prle-pyYi8l4hjbzGACVxX89Uc5aAhYjGRojywWysQM,323
365
365
  osbot_utils/type_safe/primitives/safe_str/Enum__Safe_Str__Regex_Mode.py,sha256=15y_afYIf_LsweutaVVdIJ0qClbVITJGWNEqfRKapNI,120
366
- osbot_utils/type_safe/primitives/safe_str/Safe_Str.py,sha256=ywgETbj2zzOod3mUETI3hO4S-tZcjUz0DHojHA8wHKc,4631
366
+ osbot_utils/type_safe/primitives/safe_str/Safe_Str.py,sha256=u6AWM9CCVBxo2s_QmjgC-91m3N9mA3FJzmXcwneTwPg,5022
367
367
  osbot_utils/type_safe/primitives/safe_str/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
368
368
  osbot_utils/type_safe/primitives/safe_str/cryptography/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
369
- osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__Hash.py,sha256=4BVxxXQsOD5x96jOSkSZvDsR9x6Ne33cPhYS3uFKsSM,1291
370
- osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__SHA1.py,sha256=g1ZB7FlljyhgdKa9-Z4MHgSomofEhLlDbckhTu9Tq70,900
371
- osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__SHA1__Short.py,sha256=_nSpeZXio6Yei5HOdJKSMsGuvycRl8tQk2U8a6ownU4,825
369
+ osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__Hash.py,sha256=zmARKnR6k0d7zg2DESPSZU8Qj91nx-qrnNrXln6UcYk,1287
370
+ osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__SHA1.py,sha256=4GspFCkrBM9I-9Myb7I4dYUQ726LahwepWfuasFhD_M,899
371
+ osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/Safe_Str__SHA1__Short.py,sha256=UISofo58uSm3iAMA-css_inp1EKBqJrGMoS5m8ik7b4,824
372
372
  osbot_utils/type_safe/primitives/safe_str/cryptography/hashes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
373
- osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Safe_Str__NaCl__Private_Key.py,sha256=GH8Unh0m3SDgqwEyUf2iAIau5WLWk7dlZCO9PCk7HIE,1205
374
- osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Safe_Str__NaCl__Public_Key.py,sha256=gBC4y8EJvLfCrwSQvvkCy3r5yXCiElHeRDTxdzHHFUA,1307
373
+ osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Safe_Str__NaCl__Private_Key.py,sha256=4h3kPDP0hwQkn-USHZYPJZB2QeHPOkK-CD7fOc_Pddg,1204
374
+ osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Safe_Str__NaCl__Public_Key.py,sha256=OGmdTsuvwLl61omKNcgX3fe8rRXmlPL6g5Xy0HSBjPY,1306
375
375
  osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/Schema__NaCl__Keys.py,sha256=jYFBpUHZ94ouW0yHsEO3mUKnmSif9jB71kNNH1oA-2I,507
376
376
  osbot_utils/type_safe/primitives/safe_str/cryptography/nacl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
377
- osbot_utils/type_safe/primitives/safe_str/filesystem/Safe_Str__File__Name.py,sha256=ceL7iiIg_KqVs9xZRYk8QvREkBLlE8RHSlVECe7LbNg,371
377
+ osbot_utils/type_safe/primitives/safe_str/filesystem/Safe_Str__File__Name.py,sha256=xQWoqqs-ZXU6o2iROOvd62P15B5EulDMiAlYCQg2tOY,370
378
378
  osbot_utils/type_safe/primitives/safe_str/filesystem/Safe_Str__File__Path.py,sha256=bOihPzsLce2mv-g6BpsfhfLaQ3UEoYXaK8FbdpMGuYs,563
379
379
  osbot_utils/type_safe/primitives/safe_str/filesystem/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
380
380
  osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Branch.py,sha256=npoKUzforQCLqblCWfx2H_hZtq0CCybg5O_3RpZkOXE,870
381
- osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Ref.py,sha256=U-tEcNsgcZvhhDUYz506L3fgOijsd1IE8R0TPZ-lo7A,3133
382
- osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Ref_Base.py,sha256=XMDTfFy45aQp4db1Dn1eUVu5uLmN1ucexQNjjNa4H_A,3275
381
+ osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Ref.py,sha256=MmBHnwLyS-typs9ObzqHU05aoDx6jUBK7BpijcFibws,3132
382
+ osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Ref_Base.py,sha256=MZYYk4_Tn7BlyvXFVPIOCCAdYlzPszxxTvltUB_37AQ,3274
383
383
  osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Git__Tag.py,sha256=imUY7CkrJ_aBJ0tIuV5OSD6eqF7aSzPERfEhdaWejbY,440
384
- osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Version.py,sha256=5z0oQVHUP2qefDS5uEzKo-3n0PgWSC3TOjcEESuytsA,1397
384
+ osbot_utils/type_safe/primitives/safe_str/git/Safe_Str__Version.py,sha256=fuhNy7Q0cc_LD53Cyu8Q8emMXDT42if3YQqn2PpNJBY,1396
385
385
  osbot_utils/type_safe/primitives/safe_str/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
386
- osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo.py,sha256=q-dIzhfih4RD6JIvN3Dg_kRVto_4upHU7eqy2jQBMlA,2467
387
- osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo_Name.py,sha256=1rTtP2OemGHMUTVb1puwM9sRjKg7W3E9irBV2blS7QM,1268
388
- osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo_Owner.py,sha256=Grjrji9dIIm4zkvq_rdcZoiuRt3bK-yUjiDW2u2WzuE,1784
386
+ osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo.py,sha256=Ww_wfV_VJSC9go3ZUxt9wXaOFAc-uYlq3oUbjn6QfAo,2754
387
+ osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo_Name.py,sha256=kOzDDVBsgiL6itQzxqGmFLs_a9GY9nENsF37TdV4m4s,1305
388
+ osbot_utils/type_safe/primitives/safe_str/github/Safe_Str__GitHub__Repo_Owner.py,sha256=x69rNmVrjg_RCjUcZAOL0_Hv84-zGyy27kwp1pRx4Zc,1840
389
389
  osbot_utils/type_safe/primitives/safe_str/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
390
- osbot_utils/type_safe/primitives/safe_str/http/Safe_Str__Http__Content_Type.py,sha256=NEFSbKDw3EJG-N5PMCgpPC2Z8c7yDBj5QWlZ_HEceTk,529
390
+ osbot_utils/type_safe/primitives/safe_str/http/Safe_Str__Http__Content_Type.py,sha256=pdgTuzmd8vqr0h1J99GRl8LUDQOpB68iEtuG1_9s_gE,528
391
391
  osbot_utils/type_safe/primitives/safe_str/http/Safe_Str__Http__ETag.py,sha256=9dOX5mGCBaKmrgIp6uXFCpVyyhel42mUQgbLyN5cKMk,490
392
392
  osbot_utils/type_safe/primitives/safe_str/http/Safe_Str__Http__Last_Modified.py,sha256=LfA6ayIXaSjwVGrZUO4HIV1gbFXKc54omDJAZ_ZPtjI,451
393
393
  osbot_utils/type_safe/primitives/safe_str/http/Safe_Str__Http__Text.py,sha256=miVh53YT6VJla5XiZjzsgVSoMWiYXy-tml3a8HG8yM8,1801
@@ -411,10 +411,10 @@ osbot_utils/type_safe/primitives/safe_uint/Safe_UInt__Percentage.py,sha256=MKD2A
411
411
  osbot_utils/type_safe/primitives/safe_uint/Safe_UInt__Port.py,sha256=gcqi3UaWaFNSktqUTrfdgRKVI5JKWnqxcpi5FlX75J0,496
412
412
  osbot_utils/type_safe/primitives/safe_uint/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
413
413
  osbot_utils/type_safe/type_safe_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
414
- osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Dict.py,sha256=TYb1nXbVqn4bGoagGqr4U__LofpjDllKxiVJCL705PI,3159
415
- osbot_utils/type_safe/type_safe_core/collections/Type_Safe__List.py,sha256=VYlTzDXnreb5s6Ue5AIq-ehxg3jHppOVES0CppjhCsg,2607
416
- osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Set.py,sha256=j12fc8cbd9-s_a13ysaz723rNEW4Dt6hObCd0S-AjIg,1432
417
- osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Tuple.py,sha256=Kx7C4YfHybRbMmVMcmV6yFLi4T48pb592vEZfjjyLxo,1710
414
+ osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Dict.py,sha256=IM_5I_cMw6PhJk2bIRZ6siRAh5GR3QwuHCqzuELPzFs,3371
415
+ osbot_utils/type_safe/type_safe_core/collections/Type_Safe__List.py,sha256=os5dOU7iKnjKoWt00SLj0Wy_X1RL2iGEErsYvg04tto,2719
416
+ osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Set.py,sha256=AqaimwY8Ba-GRI9xsCCZwLmAjMHK3HLV_tJiKXEp7Sc,2575
417
+ osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Tuple.py,sha256=MEUHVwPDVqPmnZsvxwAhQAQY9JwFsMe2R42z4tWKRN4,3445
418
418
  osbot_utils/type_safe/type_safe_core/collections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
419
419
  osbot_utils/type_safe/type_safe_core/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
420
420
  osbot_utils/type_safe/type_safe_core/decorators/type_safe.py,sha256=wOTMvZBl5hWMz-HuIRZpPBGN0oSbXWd9wH5xxZkfLlA,1796
@@ -434,9 +434,9 @@ osbot_utils/type_safe/type_safe_core/shared/__init__.py,sha256=47DEQpj8HBSa-_TIm
434
434
  osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Class_Kwargs.py,sha256=BbMPfCv5-RUZzh-TbyLBvykXZkdkR91jCGJoZ4R697g,8237
435
435
  osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Default_Kwargs.py,sha256=tzKXDUc0HVP5QvCWsmcPuuZodNvQZ9FeMDNI2x00Ngw,1943
436
436
  osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Default_Value.py,sha256=mRu0yV3w7Ch1H8SOfXMRqMBp3ooY95yR_oni7JafJBc,4603
437
- osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__From_Json.py,sha256=GTZnGC7DvEBA_LxgLw_KZZ1iVUV0EwyIgcZzoh14Bro,15453
437
+ osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__From_Json.py,sha256=caRTpPbzvBbV18oGHf6MDiazxGfg4tvf4Ik9sc_ikIo,15747
438
438
  osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Init.py,sha256=lZpQCCTNt6JcqyWwDoj-9Zgrq10vHXIUBh9lx37vRkE,4990
439
- osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Set_Attr.py,sha256=uIWa5j7NfYcPDt-QGXErxI29HfM26mXAB-ScHC6ruCU,8507
439
+ osbot_utils/type_safe/type_safe_core/steps/Type_Safe__Step__Set_Attr.py,sha256=ywUYo97jcZkHZ7BJ7GTTuici2obz-Nwch4TcM6ilDcY,9237
440
440
  osbot_utils/type_safe/type_safe_core/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
441
441
  osbot_utils/type_safe/validators/Type_Safe__Validator.py,sha256=cJIPSBarjV716SZUOLvz7Mthjk-aUYKUQtRDtKUBmN4,779
442
442
  osbot_utils/type_safe/validators/Validator__Max.py,sha256=pCvYF5Jb_cBgn1ArGhf6FNUB-NGCXPq3D36oYDCyAzg,1275
@@ -458,7 +458,7 @@ osbot_utils/utils/Json.py,sha256=TvfDoXwOkWzWH-9KMnme5C7iFsMZOleAeue92qmkH6g,883
458
458
  osbot_utils/utils/Json_Cache.py,sha256=mLPkkDZN-3ZVJiDvV1KBJXILtKkTZ4OepzOsDoBPhWg,2006
459
459
  osbot_utils/utils/Lists.py,sha256=tPz5x5s3sRO97WZ_nsxREBPC5cwaHrhgaYBhsrffTT8,5599
460
460
  osbot_utils/utils/Misc.py,sha256=H_xexJgiTxB3jDeDiW8efGQbO0Zuy8MM0iQ7qXC92JI,17363
461
- osbot_utils/utils/Objects.py,sha256=ZgAwAI8DM8MhFe37WAr2Di5f9-ig3hgayMEinLCF5tc,13571
461
+ osbot_utils/utils/Objects.py,sha256=fLwnB0bv0vqGBE7uGYUxB4IUNEXjn-rjakYz8mp3VVY,14198
462
462
  osbot_utils/utils/Png.py,sha256=V1juGp6wkpPigMJ8HcxrPDIP4bSwu51oNkLI8YqP76Y,1172
463
463
  osbot_utils/utils/Process.py,sha256=lr3CTiEkN3EiBx3ZmzYmTKlQoPdkgZBRjPulMxG-zdo,2357
464
464
  osbot_utils/utils/Python_Logger.py,sha256=M9Oi62LxfnRSlCN8GhaiwiBINvcSdGy39FCWjyDD-Xg,12792
@@ -470,8 +470,8 @@ osbot_utils/utils/Toml.py,sha256=grjWkVPIMVkawJ499FVIJKxQp8FJ2wcsd0Z3YIR4drM,114
470
470
  osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
471
471
  osbot_utils/utils/Zip.py,sha256=mG42lgTY0tnm14T3P1-DSAIZKkTiYoO3odZ1aOUdc1I,14394
472
472
  osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
473
- osbot_utils/version,sha256=ESwW1ZvlyVyIbR4QPkYcAvo5MLsWHFvHuLuDhW9Qi6I,8
474
- osbot_utils-2.84.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
475
- osbot_utils-2.84.0.dist-info/METADATA,sha256=CnE2-oGdX31QV4nRgKaiaHUOf9aG7xZrh-8Rz_vHutk,7918
476
- osbot_utils-2.84.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
477
- osbot_utils-2.84.0.dist-info/RECORD,,
473
+ osbot_utils/version,sha256=6Cn7UOgy_SJPSb16yrGhCgZKuq2nwG2aj2B0loLVsZc,8
474
+ osbot_utils-2.86.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
475
+ osbot_utils-2.86.0.dist-info/METADATA,sha256=hVm2edAsrGB02PyLzWfO5xAOPsvFMntpGOGLCFV4AT4,7918
476
+ osbot_utils-2.86.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
477
+ osbot_utils-2.86.0.dist-info/RECORD,,