safeshield 1.0.0__py3-none-any.whl → 1.0.1__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.

Potentially problematic release.


This version of safeshield might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: safeshield
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Library for Help Validation Control
5
5
  Home-page: https://github.com/WunsunTarniho/py-guard
6
6
  Author: Wunsun Tarniho
@@ -16,11 +16,8 @@ Classifier: Topic :: Security
16
16
  Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: Django==5.2
20
19
  Requires-Dist: Flask==3.1.1
21
20
  Requires-Dist: mysql-connector-repackaged==0.3.1
22
- Requires-Dist: odoo==1.0
23
- Requires-Dist: Pillow==11.2.1
24
21
  Requires-Dist: psycopg2==2.9.10
25
22
  Requires-Dist: python-dotenv==1.1.1
26
23
  Requires-Dist: python-dateutil==2.9.0.post0
@@ -30,3 +27,6 @@ Requires-Dist: Werkzeug==3.1.3
30
27
 
31
28
  ## License
32
29
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
30
+
31
+ ## v1.0.1 (2024-07-20)
32
+ - Fixed: Bug when import `validator`.
@@ -0,0 +1,29 @@
1
+ validator/__init__.py,sha256=udxDzUicPfxBOAQvzsnl3pHur9VUppKbWMgg35hpiww,244
2
+ validator/exceptions.py,sha256=y2v7CaXmeGFHWcnigtLl4U-sFta_jMiXkGKXWIIVglY,366
3
+ validator/factory.py,sha256=bImQNLhEJg5VTxtHiMYVb2EbHWvimTDqHq-UcA8uolw,812
4
+ validator/core/__init__.py,sha256=ZcqlXJSk03i_CVzmIN-nVe1UOyvwwO5jhbEj7f62Y_o,59
5
+ validator/core/validator.py,sha256=00qVnbH-EJC5KALlaoUBLAfsszAFLcoSxfRbmy0amyk,12751
6
+ validator/database/__init__.py,sha256=O-cB6-MhNapJ3iwe5jvifbMfr1dPjXLtEdfNTKIu0hc,171
7
+ validator/database/detector.py,sha256=mPNZlOgwNBPNwL_XcKSmT6H5Bq370nMkqqMMOqkM9WY,9568
8
+ validator/database/manager.py,sha256=Ezz4NUh22Hz2puh-NJggSGCaw3lAGyp3V88plMeBBVU,6232
9
+ validator/rules/__init__.py,sha256=s-wmjYcbWlb2Je-3UXVGlZD4OmHSwMbWNH6mZbIn36s,971
10
+ validator/rules/array.py,sha256=iw-Ya3E0-st37WswPgp0acAKX6sXURF4B8Hdz_Waohw,2824
11
+ validator/rules/base.py,sha256=Q7z3DN__LLPay3BghptQ7yuxO6Nt-hzqExbOTXcim2Y,2902
12
+ validator/rules/basic.py,sha256=KKoZED9K7guNdBVdUlwKFwGGgoxAZoXguzMAHq6ZT5o,1542
13
+ validator/rules/comparison.py,sha256=2h2Kpd9YfG6AD9XF6sb412igCWgnpI_XgTo1pnVaPcY,9417
14
+ validator/rules/conditional.py,sha256=767mfsV6esBr-hARl6FCZrbgVrS1FqSOMby1gfi4hpk,13008
15
+ validator/rules/date.py,sha256=Kyi8rW1ZAE1FYCCz6McEUZO4bdurpEdrQ33SlulYM28,5293
16
+ validator/rules/files.py,sha256=-YYeK8WCfbtpGI5jtKurcv-X00MoLqu0QXz-L-Qm474,6565
17
+ validator/rules/format.py,sha256=blxtCxj95RceEqiWDeaaFfB5H1Gzhy-MM4pI2mi3Br4,3759
18
+ validator/rules/string.py,sha256=7bdlKKef4n3JAZGgJZXX5FNGQInV_mQ_yG4JlvLggLY,3193
19
+ validator/rules/type.py,sha256=tk1vEsMo-dnaFU2B8oSwMeqnJnvkK4iIKP9uRLqcX9E,1611
20
+ validator/rules/utilities.py,sha256=TcGiML1m_dlBCxrJK4FJZYe3yDjWOz0fHZ59oN_naos,9739
21
+ validator/services/__init__.py,sha256=vcQtKsZhNuxbSnWAIwD1rLAXVG8NQII6QLsOOF8dh88,264
22
+ validator/services/rule_conflict.py,sha256=s1RJNUY5d0WtSMHkrKulBCgJ2BZL2GE0Eu5pdAoiIbM,4943
23
+ validator/services/rule_error_handler.py,sha256=MGvvkP6hbZLpVXxC3xpzg15OmVdPlk7l0M2Srmy5VfM,1729
24
+ validator/services/rule_preparer.py,sha256=jRcMNjqq2xyZjO64Pim8jWmja5DmTzf0V_uuHG0lJTg,5621
25
+ safeshield-1.0.1.dist-info/LICENSE,sha256=qugtRyKckyaks6hd2xyxOFSOYM6au1N80pMXuMTPvC4,1090
26
+ safeshield-1.0.1.dist-info/METADATA,sha256=RRvhVfB2efRuolhXGPp7hOD3zPgIKNHKf939thwGkw8,1203
27
+ safeshield-1.0.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
28
+ safeshield-1.0.1.dist-info/top_level.txt,sha256=iUtV3dlHOIiMfLuY4pruY00lFni8JzOkQ3Nh1II19OE,10
29
+ safeshield-1.0.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
 
2
- from .detector import DatabaseAutoDetector
3
- from .manager import DatabaseManager
2
+ from validator.database.detector import DatabaseAutoDetector
3
+ from validator.database.manager import DatabaseManager
4
4
 
5
5
  __all__ = ['DatabaseDetector', 'DatabaseManager']
validator/factory.py CHANGED
@@ -1,7 +1,7 @@
1
1
  # factory.py
2
2
  from typing import Type, Dict, List
3
- from .rules import all_rules
4
- from .rules.base import ValidationRule
3
+ from validator.rules import all_rules
4
+ from validator.rules.base import ValidationRule
5
5
 
6
6
  class RuleFactory:
7
7
  _rules: Dict[str, Type[ValidationRule]] = all_rules
@@ -1,6 +1,6 @@
1
1
  import inspect
2
2
  from .base import ValidationRule
3
- from ..utils.string import pascal_to_snake
3
+ from validator.utils.string import pascal_to_snake
4
4
  from . import array, basic, comparison, date, type, files, format, conditional, string, utilities
5
5
 
6
6
  def _collect_rules():
validator/rules/array.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
 
4
4
  class ArrayRule(ValidationRule):
validator/rules/base.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from abc import ABC, abstractmethod
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
  from enum import Enum
4
- from ..utils.string import pascal_to_snake
4
+ from validator.utils.string import pascal_to_snake
5
5
  import inspect
6
6
 
7
7
  class ValidationRule(ABC):
validator/rules/basic.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
 
4
4
  # =============================================
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
 
4
4
  # =============================================
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
  from enum import Enum
4
4
  import re
validator/rules/date.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
  from datetime import datetime
4
4
  from dateutil.parser import parse
validator/rules/files.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
 
4
4
  class FileRule(ValidationRule):
validator/rules/format.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
  import re
4
4
  import zoneinfo
validator/rules/string.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
  import re
4
4
 
validator/rules/type.py CHANGED
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
  from datetime import datetime
4
4
 
@@ -1,4 +1,4 @@
1
- from .base import ValidationRule
1
+ from validator.rules.base import ValidationRule
2
2
  from typing import Any, Dict, List, Optional, Set, Union, Tuple, Type
3
3
 
4
4
  class AnyOfRule(ValidationRule):
@@ -1,5 +1,5 @@
1
- from .rule_preparer import RulePreparer
2
- from .rule_error_handler import RuleErrorHandler
3
- from .rule_conflict import RuleConflictChecker
1
+ from validator.services.rule_preparer import RulePreparer
2
+ from validator.services.rule_error_handler import RuleErrorHandler
3
+ from validator.services.rule_conflict import RuleConflictChecker
4
4
 
5
5
  __all__ = {'RulePreparer', 'RuleErrorHandler', 'RuleConflictChecker'}
@@ -1,29 +0,0 @@
1
- validator/__init__.py,sha256=udxDzUicPfxBOAQvzsnl3pHur9VUppKbWMgg35hpiww,244
2
- validator/exceptions.py,sha256=y2v7CaXmeGFHWcnigtLl4U-sFta_jMiXkGKXWIIVglY,366
3
- validator/factory.py,sha256=9I_dIq22QxZxCqtCECp1T5K0GeyD_YuGc8xtw4eexMs,794
4
- validator/core/__init__.py,sha256=ZcqlXJSk03i_CVzmIN-nVe1UOyvwwO5jhbEj7f62Y_o,59
5
- validator/core/validator.py,sha256=00qVnbH-EJC5KALlaoUBLAfsszAFLcoSxfRbmy0amyk,12751
6
- validator/database/__init__.py,sha256=vpGhoYt32oiYyJVsoWZkRKBgDZp8bTKeW2jXKVoNKA8,135
7
- validator/database/detector.py,sha256=mPNZlOgwNBPNwL_XcKSmT6H5Bq370nMkqqMMOqkM9WY,9568
8
- validator/database/manager.py,sha256=Ezz4NUh22Hz2puh-NJggSGCaw3lAGyp3V88plMeBBVU,6232
9
- validator/rules/__init__.py,sha256=y1HsA25CIZoNmTDJp9CHspdybsNtrWEiX8w_NNANuGw,963
10
- validator/rules/array.py,sha256=tx8FCDqn-27Vs7tgtjeoCE9ceDMVrdBEb2-pq-lNLuo,2809
11
- validator/rules/base.py,sha256=UeUXJlNkBGxKhgNvcamJqoZKTh7HO5v-t0eAAks_MKM,2894
12
- validator/rules/basic.py,sha256=fMk0s5_IEQu27X1wndP_ocNyOZ1upXJCn7fR9YYbI74,1527
13
- validator/rules/comparison.py,sha256=9xb2mO5GiThR1iO8867ex2o7olQC2Bnew6MBdD2UtEo,9402
14
- validator/rules/conditional.py,sha256=8_O1etzCyCGeD8lmfhegJ1uzhkBSjTEVdufbZmkqgP4,12993
15
- validator/rules/date.py,sha256=18JIKTO5nzFtCnJEMXm4OUbneqTMB7HGPN6jUkxGU4Y,5278
16
- validator/rules/files.py,sha256=vu_TZFffDPzDojyTsFXSQ6MmQm3WU6ppFfz7-wuDy98,6550
17
- validator/rules/format.py,sha256=UeeIAkFn0CdzC5bS9tI78_lbPYRgcpaUujxdmyCSdzE,3744
18
- validator/rules/string.py,sha256=vYzu4ICKY9FCuGahmsQCoJLmnlBF7uNvVazFj9DQ438,3178
19
- validator/rules/type.py,sha256=Tu-EOBkTtxkcCe0ANXavurZC449n63iE_VXVzc3BIiM,1596
20
- validator/rules/utilities.py,sha256=AIm9JRGYf6cTCSkivg3gTj3U5DnXlCAJ5ej1yUSa1dU,9724
21
- validator/services/__init__.py,sha256=zzKTmqL7v4niFGWHJBfWLqgJ0iTaW_69OzYZN8uInzQ,210
22
- validator/services/rule_conflict.py,sha256=s1RJNUY5d0WtSMHkrKulBCgJ2BZL2GE0Eu5pdAoiIbM,4943
23
- validator/services/rule_error_handler.py,sha256=MGvvkP6hbZLpVXxC3xpzg15OmVdPlk7l0M2Srmy5VfM,1729
24
- validator/services/rule_preparer.py,sha256=jRcMNjqq2xyZjO64Pim8jWmja5DmTzf0V_uuHG0lJTg,5621
25
- safeshield-1.0.0.dist-info/LICENSE,sha256=qugtRyKckyaks6hd2xyxOFSOYM6au1N80pMXuMTPvC4,1090
26
- safeshield-1.0.0.dist-info/METADATA,sha256=UNfuutZuSxKkc4MTaVOIbVynevAieQqkm88GDyEIT2I,1223
27
- safeshield-1.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
28
- safeshield-1.0.0.dist-info/top_level.txt,sha256=iUtV3dlHOIiMfLuY4pruY00lFni8JzOkQ3Nh1II19OE,10
29
- safeshield-1.0.0.dist-info/RECORD,,