passphera-core 0.29.0__py3-none-any.whl → 0.30.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.
- passphera_core/entities.py +6 -6
- {passphera_core-0.29.0.dist-info → passphera_core-0.30.1.dist-info}/METADATA +1 -1
- {passphera_core-0.29.0.dist-info → passphera_core-0.30.1.dist-info}/RECORD +5 -5
- {passphera_core-0.29.0.dist-info → passphera_core-0.30.1.dist-info}/WHEEL +0 -0
- {passphera_core-0.29.0.dist-info → passphera_core-0.30.1.dist-info}/top_level.txt +0 -0
passphera_core/entities.py
CHANGED
@@ -30,8 +30,8 @@ _default_properties: dict[str, str] = {
|
|
30
30
|
@dataclass
|
31
31
|
class Password:
|
32
32
|
id: UUID = field(default_factory=uuid4)
|
33
|
-
created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
|
34
|
-
updated_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
|
33
|
+
created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc).isoformat())
|
34
|
+
updated_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc).isoformat())
|
35
35
|
context: str = field(default_factory=str)
|
36
36
|
text: str = field(default_factory=str)
|
37
37
|
password: str = field(default_factory=str)
|
@@ -82,8 +82,8 @@ class Password:
|
|
82
82
|
@dataclass
|
83
83
|
class Generator:
|
84
84
|
id: UUID = field(default_factory=uuid4)
|
85
|
-
created_at: datetime = field(default_factory=datetime.now)
|
86
|
-
updated_at: datetime = field(default_factory=datetime.now)
|
85
|
+
created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc).isoformat())
|
86
|
+
updated_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc).isoformat())
|
87
87
|
shift: int = field(default=_default_properties["shift"])
|
88
88
|
multiplier: int = field(default=_default_properties["multiplier"])
|
89
89
|
key: str = field(default=_default_properties["key"])
|
@@ -131,7 +131,7 @@ class Generator:
|
|
131
131
|
:raises ValueError: If the property name is not one of the allowed properties
|
132
132
|
:return: None
|
133
133
|
"""
|
134
|
-
if prop not in {"shift", "multiplier", "key", "algorithm", "prefix", "postfix"}:
|
134
|
+
if prop not in {"id", "created_at", "updated_at", "shift", "multiplier", "key", "algorithm", "prefix", "postfix"}:
|
135
135
|
raise InvalidPropertyNameException(prop)
|
136
136
|
if prop in ["shift", "multiplier"]:
|
137
137
|
value = int(value)
|
@@ -147,7 +147,7 @@ class Generator:
|
|
147
147
|
:raises ValueError: If the property name is not one of the allowed properties
|
148
148
|
:return: None
|
149
149
|
"""
|
150
|
-
if prop not in {"shift", "multiplier", "key", "algorithm", "prefix", "postfix"}:
|
150
|
+
if prop not in {"id", "created_at", "updated_at", "shift", "multiplier", "key", "algorithm", "prefix", "postfix"}:
|
151
151
|
raise InvalidPropertyNameException(prop)
|
152
152
|
setattr(self, prop, _default_properties[prop])
|
153
153
|
if prop == "algorithm":
|
@@ -1,12 +1,12 @@
|
|
1
1
|
passphera_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
passphera_core/entities.py,sha256=
|
2
|
+
passphera_core/entities.py,sha256=fUCjf7D9FCKEB2tMoNUr9RJLn_50qcggTDOrBhGEHVI,8892
|
3
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.
|
10
|
-
passphera_core-0.
|
11
|
-
passphera_core-0.
|
12
|
-
passphera_core-0.
|
9
|
+
passphera_core-0.30.1.dist-info/METADATA,sha256=yQf5woOolmMgufQYpwSqlJN_KcdMthXzM1nPaF93vfI,868
|
10
|
+
passphera_core-0.30.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
passphera_core-0.30.1.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
|
12
|
+
passphera_core-0.30.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|