passphera-core 0.25.0__py3-none-any.whl → 0.25.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.
@@ -1,19 +1,16 @@
1
- from passphera_core.entities import Password
2
-
3
-
4
1
  class PasswordNotFoundException(Exception):
5
2
  def __init__(self) -> None:
6
3
  super().__init__("Password not found")
7
4
 
8
5
 
9
6
  class DuplicatePasswordException(Exception):
10
- def __init__(self, password: Password) -> None:
7
+ def __init__(self, password) -> None:
11
8
  self.password = password
12
9
  message = self._build_message(password)
13
10
  super().__init__(message)
14
11
 
15
12
  @staticmethod
16
- def _build_message(password: Password) -> str:
13
+ def _build_message(password) -> str:
17
14
  if hasattr(password, 'context') and password.context:
18
15
  return f"Password for context '{password.context}' already exists"
19
16
  return "Duplicate password detected"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: passphera-core
3
- Version: 0.25.0
3
+ Version: 0.25.1
4
4
  Summary: The core system of passphera project
5
5
  Home-page: https://github.com/passphera/core
6
6
  Author: Fathi Abdelmalek
@@ -1,12 +1,12 @@
1
1
  passphera_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  passphera_core/entities.py,sha256=RBdCOiBPJ8feMaP1v6LB0z8UIf5Reg_aqmcADzsXnVs,7709
3
- passphera_core/exceptions.py,sha256=T3H6-R-h8BaiRXbeIr2Ak1PlVvzsn8sxbpu8BwLFGD8,853
3
+ passphera_core/exceptions.py,sha256=Tqb-FKJ1_JfX5gSC8Wc0CP84AhwouvnP2gkg83xAlUY,786
4
4
  passphera_core/interfaces.py,sha256=DpHFh_vnamORf69P1dwLrZ8AYZPcYIol0Lq_VKRBkXc,855
5
5
  passphera_core/utilities.py,sha256=n7cAVox-yGd60595RjLvrGKSGqFQRm279YqKS3-R1X0,748
6
6
  passphera_core/application/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  passphera_core/application/generator.py,sha256=hBSk6vktJ2KPxzKSRnH_WVnCvg7vOHVzN-TQ5GdgXEQ,2769
8
8
  passphera_core/application/password.py,sha256=9wsSz3uMWEZCgfnX5V7WYiWp2OqjSmsn6OSWK4HIIfo,2876
9
- passphera_core-0.25.0.dist-info/METADATA,sha256=9DbHT_Lx5kuiAyzwi0jUKYpeaFyK_F8AGiEEgxao2hM,868
10
- passphera_core-0.25.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- passphera_core-0.25.0.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
12
- passphera_core-0.25.0.dist-info/RECORD,,
9
+ passphera_core-0.25.1.dist-info/METADATA,sha256=dbjJwhUCTuvmygjRNWKJDUvbJ29hyYbk5UT_4eE7H2I,868
10
+ passphera_core-0.25.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ passphera_core-0.25.1.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
12
+ passphera_core-0.25.1.dist-info/RECORD,,