maleo-foundation 0.0.83__py3-none-any.whl → 0.0.84__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,12 +1,12 @@
1
1
  import pathlib
2
2
  from cryptography.hazmat.primitives import serialization
3
- from typing import Union
3
+ from typing import Optional, Union
4
4
  from maleo_foundation.enums import BaseEnums
5
5
 
6
6
  def load_key(
7
7
  type:BaseEnums.KeyType,
8
8
  path: Union[str, pathlib.Path],
9
- password:Union[str, bytes, None] = None,
9
+ password:Optional[Union[str, bytes]] = None,
10
10
  format:BaseEnums.KeyFormatType = BaseEnums.KeyFormatType.STRING,
11
11
  ) -> Union[bytes, str]:
12
12
  """
@@ -27,7 +27,7 @@ def load_key(
27
27
  if not file_path.is_file():
28
28
  raise FileNotFoundError(f"Key file not found: {file_path}")
29
29
 
30
- if not isinstance(password, (str, bytes, None)):
30
+ if not isinstance(password, (str, bytes)):
31
31
  raise TypeError("Invalid passsword type")
32
32
 
33
33
  if not isinstance(type, BaseEnums.KeyFormatType):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.83
3
+ Version: 0.0.84
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -58,12 +58,12 @@ maleo_foundation/services/token.py,sha256=mULGv3wEeeFdNtk0k5pY3g7htFQM9EZBI1QIJd
58
58
  maleo_foundation/utils/__init__.py,sha256=FavmL5XYGCm955EAKiWWcXYeU15p5rSzfcglpV2yI6c,387
59
59
  maleo_foundation/utils/controller.py,sha256=ECzPzpw36zBAjKcWcDbUAhIJGbc6UpeypdUUX6ipXBg,6396
60
60
  maleo_foundation/utils/exceptions.py,sha256=nk3rD57fDR-D7BQkU1JEKV-Mu7FGMpLSEsqxdDZdKjU,4532
61
- maleo_foundation/utils/keyloader.py,sha256=Pi40uU756j_iUUYqT045srDnYbzfmkzmP7fcbjZM3CI,2306
61
+ maleo_foundation/utils/keyloader.py,sha256=Cd9c5o9q6JjNtQA8MJo95IQh3dv19_Q5qD5c5dOxZbU,2314
62
62
  maleo_foundation/utils/logger.py,sha256=978P57JOhGR-WIu7xdPXBIwd3JrfLLA8WerVzxhE_Fs,3408
63
63
  maleo_foundation/utils/query.py,sha256=ODQ3adOYQNj5E2cRW9ytbjBz56nEDcnfq8mQ6YZbCCM,4375
64
64
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
65
65
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
66
- maleo_foundation-0.0.83.dist-info/METADATA,sha256=hcQI1xP2pmn5LhuQN-C33rh4M8WbI6jWz1hf2pauIw8,3190
67
- maleo_foundation-0.0.83.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
68
- maleo_foundation-0.0.83.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
69
- maleo_foundation-0.0.83.dist-info/RECORD,,
66
+ maleo_foundation-0.0.84.dist-info/METADATA,sha256=fpFbkFP2nsfXqoFDwXmLafVfmJ9LzWrrOlcnUBJmnm8,3190
67
+ maleo_foundation-0.0.84.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
68
+ maleo_foundation-0.0.84.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
69
+ maleo_foundation-0.0.84.dist-info/RECORD,,