KeyisBClient-mmbp 0.0.0.1.5__py3-none-any.whl → 0.0.0.1.9__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.
- KeyisBClient_mmbp/Client.py +10 -2
- {KeyisBClient_mmbp-0.0.0.1.5.dist-info → KeyisBClient_mmbp-0.0.0.1.9.dist-info}/METADATA +6 -5
- KeyisBClient_mmbp-0.0.0.1.9.dist-info/RECORD +8 -0
- {KeyisBClient_mmbp-0.0.0.1.5.dist-info → KeyisBClient_mmbp-0.0.0.1.9.dist-info}/WHEEL +1 -1
- KeyisBClient_mmbp-0.0.0.1.5.dist-info/RECORD +0 -8
- {KeyisBClient_mmbp-0.0.0.1.5.dist-info → KeyisBClient_mmbp-0.0.0.1.9.dist-info}/LICENSE +0 -0
- {KeyisBClient_mmbp-0.0.0.1.5.dist-info → KeyisBClient_mmbp-0.0.0.1.9.dist-info}/top_level.txt +0 -0
KeyisBClient_mmbp/Client.py
CHANGED
@@ -45,12 +45,16 @@ class Client:
|
|
45
45
|
timeout=request.timeout,
|
46
46
|
extensions=request.extensions
|
47
47
|
)
|
48
|
+
try:
|
49
|
+
json = response.json()
|
50
|
+
except:
|
51
|
+
json = None
|
48
52
|
return Response(
|
49
53
|
status_code=response.status_code,
|
50
54
|
headers=response.headers,
|
51
55
|
content=response.content,
|
52
56
|
text=response.text,
|
53
|
-
json=
|
57
|
+
json=json,
|
54
58
|
stream=response.aiter_bytes(),
|
55
59
|
request=request,
|
56
60
|
extensions=response.extensions,
|
@@ -95,12 +99,16 @@ class Client:
|
|
95
99
|
timeout=request.timeout,
|
96
100
|
extensions=request.extensions
|
97
101
|
)
|
102
|
+
try:
|
103
|
+
json = response.json()
|
104
|
+
except:
|
105
|
+
json = None
|
98
106
|
return Response(
|
99
107
|
status_code=response.status_code,
|
100
108
|
headers=response.headers,
|
101
109
|
content=response.content,
|
102
110
|
text=response.text,
|
103
|
-
json=
|
111
|
+
json=json,
|
104
112
|
stream=response.aiter_bytes(),
|
105
113
|
request=request,
|
106
114
|
extensions=response.extensions,
|
@@ -1,16 +1,17 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
|
-
Name:
|
3
|
-
Version: 0.0.0.1.
|
4
|
-
Summary:
|
5
|
-
Home-page: https://github.com/KeyisB/libs/tree/main/
|
2
|
+
Name: KeyisBClient_mmbp
|
3
|
+
Version: 0.0.0.1.9
|
4
|
+
Summary: KeyisBClient_mmbp
|
5
|
+
Home-page: https://github.com/KeyisB/libs/tree/main/KeyisBClient_mmbp
|
6
6
|
Author: KeyisB
|
7
7
|
Author-email: keyisb.pip@gmail.com
|
8
8
|
License: MMB License v1.0
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Requires-Python: >=3.12
|
12
|
-
Description-Content-Type: text/
|
12
|
+
Description-Content-Type: text/plain
|
13
13
|
License-File: LICENSE
|
14
14
|
Requires-Dist: KeyisBClient
|
15
15
|
Requires-Dist: httpx
|
16
16
|
|
17
|
+
GW and MMB Project libraries
|
@@ -0,0 +1,8 @@
|
|
1
|
+
KeyisBClient_mmbp/Client.py,sha256=_RaG6lwSX_OEYOXDxPo809DCFSUzgdh3HNLZ3nJHQHU,5453
|
2
|
+
KeyisBClient_mmbp/__init__.py,sha256=y8gLgE6Z2VvJFPnXGVeO7P_OYRoRZufvurQrR5RG1jg,1562
|
3
|
+
KeyisBClient_mmbp/gw_certs/v0.0.1.crt,sha256=4SZKPldOi2FXuOl1Lv9JgjojA8-RL2dzn_mh4XVeuZs,1342
|
4
|
+
KeyisBClient_mmbp-0.0.0.1.9.dist-info/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
|
5
|
+
KeyisBClient_mmbp-0.0.0.1.9.dist-info/METADATA,sha256=a_QUcU9-40kY9RhPWtyBgfsq3aHoZQt6qUEPyVHejzM,512
|
6
|
+
KeyisBClient_mmbp-0.0.0.1.9.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
7
|
+
KeyisBClient_mmbp-0.0.0.1.9.dist-info/top_level.txt,sha256=h6s4YlLhQ13xiqaDqhXJamhuez9D23BmPTwQvMr54FA,18
|
8
|
+
KeyisBClient_mmbp-0.0.0.1.9.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
KeyisBClient_mmbp/Client.py,sha256=RHV3QHD5ArNIV36AirR2lDu8OcpwhnUSJFGmGFfC7nA,5259
|
2
|
-
KeyisBClient_mmbp/__init__.py,sha256=y8gLgE6Z2VvJFPnXGVeO7P_OYRoRZufvurQrR5RG1jg,1562
|
3
|
-
KeyisBClient_mmbp/gw_certs/v0.0.1.crt,sha256=4SZKPldOi2FXuOl1Lv9JgjojA8-RL2dzn_mh4XVeuZs,1342
|
4
|
-
KeyisBClient_mmbp-0.0.0.1.5.dist-info/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
|
5
|
-
KeyisBClient_mmbp-0.0.0.1.5.dist-info/METADATA,sha256=WVI7uxgoePu10ZuQGyiJ7GznufwOXtSleip95WWsPY8,485
|
6
|
-
KeyisBClient_mmbp-0.0.0.1.5.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
7
|
-
KeyisBClient_mmbp-0.0.0.1.5.dist-info/top_level.txt,sha256=h6s4YlLhQ13xiqaDqhXJamhuez9D23BmPTwQvMr54FA,18
|
8
|
-
KeyisBClient_mmbp-0.0.0.1.5.dist-info/RECORD,,
|
File without changes
|
{KeyisBClient_mmbp-0.0.0.1.5.dist-info → KeyisBClient_mmbp-0.0.0.1.9.dist-info}/top_level.txt
RENAMED
File without changes
|