maleo-foundation 0.3.75__py3-none-any.whl → 0.3.76__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.
- maleo_foundation/utils/extractor.py +4 -4
- {maleo_foundation-0.3.75.dist-info → maleo_foundation-0.3.76.dist-info}/METADATA +2 -1
- {maleo_foundation-0.3.75.dist-info → maleo_foundation-0.3.76.dist-info}/RECORD +5 -5
- {maleo_foundation-0.3.75.dist-info → maleo_foundation-0.3.76.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.3.75.dist-info → maleo_foundation-0.3.76.dist-info}/top_level.txt +0 -0
@@ -17,6 +17,10 @@ from maleo_foundation.models.transfers.general.request import RequestContext
|
|
17
17
|
from .parser import parse_user_agent
|
18
18
|
|
19
19
|
|
20
|
+
def extract_operation_id(request: Request) -> UUID:
|
21
|
+
return request.state.operation_id
|
22
|
+
|
23
|
+
|
20
24
|
def extract_authentication(request: Request) -> Authentication:
|
21
25
|
# validate credentials
|
22
26
|
request_credentials = request.auth
|
@@ -55,10 +59,6 @@ def extract_client_ip(conn: HTTPConnection) -> str:
|
|
55
59
|
return conn.client.host if conn.client else "unknown"
|
56
60
|
|
57
61
|
|
58
|
-
def extract_operation_id(request: Request) -> UUID:
|
59
|
-
return request.state.operation_id
|
60
|
-
|
61
|
-
|
62
62
|
def extract_request_context(request: Request) -> RequestContext:
|
63
63
|
request_id = request.state.request_id
|
64
64
|
requested_at = request.state.requested_at
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: maleo_foundation
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.76
|
4
4
|
Summary: Foundation package for Maleo
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
6
6
|
License: MIT
|
@@ -101,6 +101,7 @@ Requires-Dist: typing_extensions>=4.13.2
|
|
101
101
|
Requires-Dist: ua-parser>=1.0.1
|
102
102
|
Requires-Dist: ua-parser-builtins>=0.18.0.post1
|
103
103
|
Requires-Dist: urllib3>=2.4.0
|
104
|
+
Requires-Dist: user-agents>=2.2.0
|
104
105
|
Requires-Dist: uvicorn>=0.34.2
|
105
106
|
Requires-Dist: virtualenv>=20.31.2
|
106
107
|
Requires-Dist: wrapt>=1.17.2
|
@@ -122,7 +122,7 @@ maleo_foundation/utils/__init__.py,sha256=advf6IhKQOz64jbI0f9gyabHWa7ti8wTYDkYLD
|
|
122
122
|
maleo_foundation/utils/cache.py,sha256=PWNef00iA2m0g3boR7JbzrJQIRITf5nKgdCmMs3s6ag,1159
|
123
123
|
maleo_foundation/utils/client.py,sha256=KDkIEqGX6Tw07Z5HHW4HrG8IWUVkErlqnVijXnpWZGQ,2940
|
124
124
|
maleo_foundation/utils/controller.py,sha256=S69NluxjGCB_toAu3JDLi_izE0-x2ARE_7YK3V8T1Q0,7413
|
125
|
-
maleo_foundation/utils/extractor.py,sha256=
|
125
|
+
maleo_foundation/utils/extractor.py,sha256=e8Vc4o61Py3rZUNnL7-CoRmFCFeHhWTbbyrkKnSP0Po,3527
|
126
126
|
maleo_foundation/utils/logging.py,sha256=f9sLv_pgGRBSnCRIwINzhFAf2aYO6-nnFIPChoBiIt0,11714
|
127
127
|
maleo_foundation/utils/merger.py,sha256=UGiuH0EUQJu0WlS1xdPUuvnsNknd3k0DODjdiOTiBdI,704
|
128
128
|
maleo_foundation/utils/parser.py,sha256=xkIMpG4z2pgAK7OsWmdlpSw63yjV9v7nNKY0nqEJouU,300
|
@@ -142,7 +142,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=g-cAxkTE2EtHaG8Tv52
|
|
142
142
|
maleo_foundation/utils/loaders/credential/google.py,sha256=GCJl-bsKSSxoE_ERAkIzRrRNIbIEeqYOhHwzFuBr0mk,6576
|
143
143
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=RfqIbUxkdlx1xrbzJZPD_JHiRFNFLRuQs8JoUPCGCv4,108
|
144
144
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=UXcP0rr4QVacTsHLNQuU05wcow5CHWz-JW-zsVxlbPs,4121
|
145
|
-
maleo_foundation-0.3.
|
146
|
-
maleo_foundation-0.3.
|
147
|
-
maleo_foundation-0.3.
|
148
|
-
maleo_foundation-0.3.
|
145
|
+
maleo_foundation-0.3.76.dist-info/METADATA,sha256=pT0M0XUs1SH_a5BWB-vOgpjr81-NFwGW1HDFtsUgcI0,4264
|
146
|
+
maleo_foundation-0.3.76.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
147
|
+
maleo_foundation-0.3.76.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
148
|
+
maleo_foundation-0.3.76.dist-info/RECORD,,
|
File without changes
|
File without changes
|