osbot-utils 2.50.0__py3-none-any.whl → 2.51.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.
@@ -1,5 +1,6 @@
1
1
  import re
2
2
  from osbot_utils.helpers.safe_str.Safe_Str import Safe_Str
3
+ from osbot_utils.utils.Misc import str_md5
3
4
 
4
5
  # Constants for hash validation
5
6
  SIZE__VALUE_HASH = 10
@@ -11,4 +12,7 @@ class Safe_Str__Hash(Safe_Str):
11
12
  allow_empty = False # Don't allow empty hash values
12
13
  trim_whitespace = True # Trim any whitespace
13
14
  strict_validation = True # Enable strict validation - new attribute
14
- exact_length = True # Require exact length match - new attribute
15
+ exact_length = True # Require exact length match - new attribute
16
+
17
+ def safe_str_hash(value : str):
18
+ return str_md5(value)[0:SIZE__VALUE_HASH]
osbot_utils/version CHANGED
@@ -1 +1 @@
1
- v2.50.0
1
+ v2.51.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: osbot_utils
3
- Version: 2.50.0
3
+ Version: 2.51.0
4
4
  Summary: OWASP Security Bot - Utils
5
5
  License: MIT
6
6
  Author: Dinis Cruz
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  Powerful Python util methods and classes that simplify common apis and tasks.
25
25
 
26
- ![Current Release](https://img.shields.io/badge/release-v2.50.0-blue)
26
+ ![Current Release](https://img.shields.io/badge/release-v2.51.0-blue)
27
27
  [![codecov](https://codecov.io/gh/owasp-sbot/OSBot-Utils/graph/badge.svg?token=GNVW0COX1N)](https://codecov.io/gh/owasp-sbot/OSBot-Utils)
28
28
 
29
29
 
@@ -236,7 +236,7 @@ osbot_utils/helpers/python_compatibility/python_3_8.py,sha256=kh846vs3ir8xD0RSAR
236
236
  osbot_utils/helpers/safe_str/Safe_Str.py,sha256=BKyS0hTRvP-f0uLFtT8KCE9rVQBzhWKNoSxlttEjrEE,3261
237
237
  osbot_utils/helpers/safe_str/Safe_Str__File__Name.py,sha256=ncjkQ2hAhw0a3UulrCuQsA9ytrFwg5CT1XRJIGChMpY,289
238
238
  osbot_utils/helpers/safe_str/Safe_Str__File__Path.py,sha256=K0yBcvH_Ncqiw7tMqjGqaNyWQh1Zs9qxZ-TR8nEIAow,550
239
- osbot_utils/helpers/safe_str/Safe_Str__Hash.py,sha256=AE-CvX0_lYKpPfszisOanb_IYt366Mkf90UIwSZ9vxY,812
239
+ osbot_utils/helpers/safe_str/Safe_Str__Hash.py,sha256=0qL-C418UX6xYwSh05Vl_TgBZjLYgW_sUkkZTwNRW64,935
240
240
  osbot_utils/helpers/safe_str/Safe_Str__Text.py,sha256=QxuWqF8hNYdOPDn3Yac86h_1ZaX-THbTBDakberiJcs,313
241
241
  osbot_utils/helpers/safe_str/Safe_Str__Text__Dangerous.py,sha256=6-fkXBuWgjz70eQicD07f38eEuKqNzJzaFFY6hozhNQ,388
242
242
  osbot_utils/helpers/safe_str/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -398,8 +398,8 @@ osbot_utils/utils/Toml.py,sha256=Rxl8gx7mni5CvBAK-Ai02EKw-GwtJdd3yeHT2kMloik,166
398
398
  osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
399
399
  osbot_utils/utils/Zip.py,sha256=pR6sKliUY0KZXmqNzKY2frfW-YVQEVbLKiyqQX_lc-8,14052
400
400
  osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
401
- osbot_utils/version,sha256=Sfic_5AyOSvZdVnIKvXbhV3Vki85TkZrpIBGHX2vAQA,8
402
- osbot_utils-2.50.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
403
- osbot_utils-2.50.0.dist-info/METADATA,sha256=AJO3NhBL-2s1dY3nJYW5RuxwKzhdojBmN50ymQ99frk,1329
404
- osbot_utils-2.50.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
405
- osbot_utils-2.50.0.dist-info/RECORD,,
401
+ osbot_utils/version,sha256=3pjyCNI6feI53jNDvOPiiOgb7XbYsxyo7WABfsNLeYw,8
402
+ osbot_utils-2.51.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
403
+ osbot_utils-2.51.0.dist-info/METADATA,sha256=AGRyZ9xloQ28HoIAwgjWRkaFtOusYgANISdEBm89RZ8,1329
404
+ osbot_utils-2.51.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
405
+ osbot_utils-2.51.0.dist-info/RECORD,,