internal 0.1.99__py3-none-any.whl → 1.0.0__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.

@@ -3,6 +3,7 @@ import httpx
3
3
 
4
4
  from fastapi import status
5
5
  from fastapi.responses import JSONResponse
6
+ from fastapi.encoders import jsonable_encoder
6
7
  from beanie import Document, Link
7
8
 
8
9
 
@@ -27,6 +28,7 @@ async def async_response(data=None, message=None, code=None, page_no=None, total
27
28
  return JSONResponse(status_code=data.status_code, content=data.json())
28
29
 
29
30
  ret = {}
31
+ data = jsonable_encoder(data)
30
32
  if isinstance(data, list):
31
33
  data = [_serialize(d) for d in data]
32
34
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 0.1.99
3
+ Version: 1.0.0
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -17,13 +17,13 @@ internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbsw
17
17
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
18
18
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  internal/http/requests.py,sha256=C2MfPaRcFuF8p52aPwtOyzXQEVu5MWMY8UUCrggxONw,1675
20
- internal/http/responses.py,sha256=IVY-piFxA9iCUx6p_Y7OCgbx0-yJxc_laGDqrhZ4Z6I,1590
20
+ internal/http/responses.py,sha256=vTfc1pmnRPo_b1ayCNGOPgpslB6pmnxsbexIDBt1XW0,1670
21
21
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
23
23
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  internal/model/base_model.py,sha256=svULVdROpcnmTyhIbZ7M6pn40vhb_qIZ5W2CEyuEWZE,3002
25
25
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
26
26
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
27
- internal-0.1.99.dist-info/METADATA,sha256=zgtWH6BR3LOrePmG3TroFiKJHQAEQ5OfZbsl-OD_1EE,625
28
- internal-0.1.99.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
- internal-0.1.99.dist-info/RECORD,,
27
+ internal-1.0.0.dist-info/METADATA,sha256=_jL1Wwr7CV3yoMPJvcMpUMU4Nc6_jRBw2JJYs3F7iW0,624
28
+ internal-1.0.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
+ internal-1.0.0.dist-info/RECORD,,