internal 1.1.36__py3-none-any.whl → 1.1.38__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 internal might be problematic. Click here for more details.
internal/http/requests.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
+
import json
|
|
2
3
|
import random
|
|
3
4
|
|
|
4
5
|
import httpx
|
|
@@ -21,9 +22,16 @@ async def invoke_request(timeout: httpx.Timeout, method: str, url: str, app: Fas
|
|
|
21
22
|
|
|
22
23
|
response = await client.request(method, url, **kwargs)
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
try:
|
|
26
|
+
response_json = json.loads(response.text)
|
|
27
|
+
response_text = json.dumps(response_json, ensure_ascii=False)
|
|
28
|
+
app.state.logger.info(
|
|
29
|
+
f"RESPONSE | {kwargs.get('headers').get(CORRELATION_ID_HEADER_KEY_NAME)} | {method} | {url} | {response.status_code} | {response_text}"
|
|
30
|
+
)
|
|
31
|
+
except json.decoder.JSONDecodeError:
|
|
32
|
+
app.state.logger.info(
|
|
33
|
+
f"RESPONSE | {kwargs.get('headers').get(CORRELATION_ID_HEADER_KEY_NAME)} | {method} | {url} | {response.status_code} | {response.text}"
|
|
34
|
+
)
|
|
27
35
|
|
|
28
36
|
return response
|
|
29
37
|
except httpx.TimeoutException as exc:
|
internal/model/base_model.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
-
from idlelib import query
|
|
3
2
|
|
|
4
3
|
from typing import List, Tuple, Union, Dict, Type, Optional, Any, Literal, Union, Set, Mapping
|
|
5
|
-
import typing_extensions
|
|
6
|
-
from pydantic_core import PydanticUndefined
|
|
7
4
|
from typing_extensions import Self, TypeAlias, Unpack
|
|
8
5
|
|
|
9
6
|
import arrow
|
|
@@ -24,17 +24,17 @@ internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
24
24
|
internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
|
|
25
25
|
internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
|
|
26
26
|
internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
|
-
internal/http/requests.py,sha256=
|
|
27
|
+
internal/http/requests.py,sha256=jLnOXEQOMEOpZrevVGFKlQ_MCkhjfudRqkuC-HWeHx0,8913
|
|
28
28
|
internal/http/responses.py,sha256=75vJGS_aA9a5ff0HI6N03KM0CErIsAOtD06x7qr6yoQ,3079
|
|
29
29
|
internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
|
|
31
31
|
internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
internal/middleware/log_request.py,sha256=OFwWnGfzXnllcQsBHolAWVsahXKoEhw3OQ1YWOm7RHM,2087
|
|
33
33
|
internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
-
internal/model/base_model.py,sha256=
|
|
34
|
+
internal/model/base_model.py,sha256=2M9EUWitzG-5FD4tYbUULBcWL6045HfS6OkpwzevmsY,7892
|
|
35
35
|
internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
|
|
36
36
|
internal/utils.py,sha256=wK1QumW1AaWE1ga2-WcDH2rtXRr2hSLwXzy-iI5dTzY,3962
|
|
37
37
|
internal/validator_utils.py,sha256=CqjaVFoAu5MqvBG_AkTP-r7AliWawtUWB851USj4moI,1519
|
|
38
|
-
internal-1.1.
|
|
39
|
-
internal-1.1.
|
|
40
|
-
internal-1.1.
|
|
38
|
+
internal-1.1.38.dist-info/METADATA,sha256=jrxrqhGAPBn8aifQnoksPEYfjit21Qe7uWwR7Fz18l8,939
|
|
39
|
+
internal-1.1.38.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
|
40
|
+
internal-1.1.38.dist-info/RECORD,,
|
|
File without changes
|