finalsa-common-http-client 0.1.4__py3-none-any.whl → 0.1.6__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.
- finalsa/http/_shared.py +2 -2
- finalsa/http/async_client/base.py +1 -1
- finalsa/http/sync_client/base.py +1 -1
- {finalsa_common_http_client-0.1.4.dist-info → finalsa_common_http_client-0.1.6.dist-info}/METADATA +1 -1
- finalsa_common_http_client-0.1.6.dist-info/RECORD +10 -0
- finalsa_common_http_client-0.1.4.dist-info/RECORD +0 -10
- {finalsa_common_http_client-0.1.4.dist-info → finalsa_common_http_client-0.1.6.dist-info}/WHEEL +0 -0
- {finalsa_common_http_client-0.1.4.dist-info → finalsa_common_http_client-0.1.6.dist-info}/licenses/LICENSE.md +0 -0
finalsa/http/_shared.py
CHANGED
|
@@ -77,9 +77,9 @@ def parse_params(params: Mapping[str, Any] | None ) -> dict[str, str | int | flo
|
|
|
77
77
|
if value is not None:
|
|
78
78
|
result[key] = value
|
|
79
79
|
if isinstance(value, dict):
|
|
80
|
-
result[key] = dumps(value)
|
|
80
|
+
result[key] = dumps(value).decode('utf-8')
|
|
81
81
|
if isinstance(value, list):
|
|
82
|
-
result[key] = dumps(value)
|
|
82
|
+
result[key] = dumps(value).decode('utf-8')
|
|
83
83
|
return result
|
|
84
84
|
|
|
85
85
|
|
|
@@ -186,7 +186,7 @@ class BaseAsyncHttpClient:
|
|
|
186
186
|
pagination_request_dict.pop('exclusive_start_key')
|
|
187
187
|
response = await self.get(path, params=pagination_request_dict, **kwargs)
|
|
188
188
|
data = await response.json()
|
|
189
|
-
items = [response_model
|
|
189
|
+
items = [response_model(**item) for item in data["items"]]
|
|
190
190
|
data["items"] = items
|
|
191
191
|
return PaginationResponse[response_model](**data)
|
|
192
192
|
|
finalsa/http/sync_client/base.py
CHANGED
|
@@ -164,7 +164,7 @@ class BaseSyncHttpClient:
|
|
|
164
164
|
pagination_request_dict.pop('exclusive_start_key')
|
|
165
165
|
response = self.get(path, params=pagination_request_dict, **kwargs)
|
|
166
166
|
data = response.json()
|
|
167
|
-
items = [response_model
|
|
167
|
+
items = [response_model(**item) for item in data["items"]]
|
|
168
168
|
data["items"] = items
|
|
169
169
|
return PaginationResponse[response_model](**data)
|
|
170
170
|
|
{finalsa_common_http_client-0.1.4.dist-info → finalsa_common_http_client-0.1.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: finalsa-common-http-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: HTTP client library for common data types used in business applications
|
|
5
5
|
Project-URL: Homepage, https://github.com/finalsa/finalsa-http-client
|
|
6
6
|
Project-URL: Documentation, https://github.com/finalsa/finalsa-http-client#readme
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
finalsa/http/__init__.py,sha256=w6M9CRcx2gCy1u-HLhLZ_0kQX92JEbFiGi4MBYqR3OI,498
|
|
2
|
+
finalsa/http/_shared.py,sha256=lIUwPSg3uZY9viTJ_KDbhHLQGw8PiQGtINFGJekJkWc,5278
|
|
3
|
+
finalsa/http/async_client/__init__.py,sha256=L25WfVpUpPZlMv6-cgeWlNvmK5UJOhLZ1NOndcIsA9w,73
|
|
4
|
+
finalsa/http/async_client/base.py,sha256=ktCJ7iorPdD3QUFpeVm5jgrCYLHM4OoteH_VsUlpGOU,7781
|
|
5
|
+
finalsa/http/sync_client/__init__.py,sha256=ocLE6dofwYCD9_rJpIP1KhlIujRFcaJfhoaeXVrSCVE,59
|
|
6
|
+
finalsa/http/sync_client/base.py,sha256=fbgyNvAWKOibbAa_BMjU80y5c_QGPTGLnAisxLfQDnQ,6868
|
|
7
|
+
finalsa_common_http_client-0.1.6.dist-info/METADATA,sha256=fM9UuyNbjXGbP8-SVFSgm0hDPvYPSk3qcK6WPpkddmc,9102
|
|
8
|
+
finalsa_common_http_client-0.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
9
|
+
finalsa_common_http_client-0.1.6.dist-info/licenses/LICENSE.md,sha256=yqzhfnTBr2S4lUBx-yibVPOIXRUDPrSUN9-_7AsC6OU,1084
|
|
10
|
+
finalsa_common_http_client-0.1.6.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
finalsa/http/__init__.py,sha256=w6M9CRcx2gCy1u-HLhLZ_0kQX92JEbFiGi4MBYqR3OI,498
|
|
2
|
-
finalsa/http/_shared.py,sha256=N3lH8m7hCHLTRCDASi2U8-TCweuEIfKQDVtMQgX_j38,5246
|
|
3
|
-
finalsa/http/async_client/__init__.py,sha256=L25WfVpUpPZlMv6-cgeWlNvmK5UJOhLZ1NOndcIsA9w,73
|
|
4
|
-
finalsa/http/async_client/base.py,sha256=PF6ELzWh79gv27Dx9ZogYwWVU9fGWp_4nOGzURZWSN4,7794
|
|
5
|
-
finalsa/http/sync_client/__init__.py,sha256=ocLE6dofwYCD9_rJpIP1KhlIujRFcaJfhoaeXVrSCVE,59
|
|
6
|
-
finalsa/http/sync_client/base.py,sha256=TLqyU7-dr0_zVj7gi6R6BeqZ_ZGnGzN3IGaEzl2kCRY,6881
|
|
7
|
-
finalsa_common_http_client-0.1.4.dist-info/METADATA,sha256=RXI5GGw7xfiADr6JZEHGqz3catKy54WjXmS6lXH8d9A,9102
|
|
8
|
-
finalsa_common_http_client-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
9
|
-
finalsa_common_http_client-0.1.4.dist-info/licenses/LICENSE.md,sha256=yqzhfnTBr2S4lUBx-yibVPOIXRUDPrSUN9-_7AsC6OU,1084
|
|
10
|
-
finalsa_common_http_client-0.1.4.dist-info/RECORD,,
|
{finalsa_common_http_client-0.1.4.dist-info → finalsa_common_http_client-0.1.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|