internal 0.1.61__py3-none-any.whl → 0.1.63__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/base_factory.py CHANGED
@@ -1,4 +1,3 @@
1
- # -*- coding: UTF-8 -*-
2
1
  import logging
3
2
  import logging.handlers
4
3
  import os
@@ -9,7 +8,7 @@ from functools import lru_cache
9
8
  import dotenv
10
9
  import watchtower
11
10
  from beanie import init_beanie
12
- from fastapi import FastAPI, status, Request, HTTPException
11
+ from fastapi import FastAPI, status, Request
13
12
  from fastapi.exceptions import RequestValidationError
14
13
  from fastapi.middleware.cors import CORSMiddleware
15
14
 
@@ -24,7 +24,7 @@ async def async_response(data=None, message=None, code=None, page_no=None, total
24
24
  return data
25
25
 
26
26
  if isinstance(data, httpx.Response):
27
- return JSONResponse(status_code=status_code, content=data.json())
27
+ return JSONResponse(status_code=data.status_code, content=data.json())
28
28
 
29
29
  ret = {}
30
30
  if isinstance(data, list):
internal/model/operate.py CHANGED
@@ -1,3 +1,5 @@
1
+ from enum import Enum
2
+
1
3
  import dictdiffer
2
4
  from typing import Optional
3
5
 
@@ -43,3 +45,9 @@ class Operate(BaseModel):
43
45
  @classmethod
44
46
  async def remove_ignore_field(cls, model_dict: dict):
45
47
  return {k: v for k, v in model_dict.items() if k not in ['create_time', 'update_time']}
48
+
49
+
50
+ class OperatorTypeEnum(str, Enum):
51
+ SYSTEM = "SYSTEM"
52
+ USER = "USER"
53
+ CUSTOMER = "CUSTOMER"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 0.1.61
3
+ Version: 0.1.63
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=M2HMhJAerOHppSqy1O2J0tGrC5cTGmouf3Cyu0YfIXo,1020
3
- internal/base_factory.py,sha256=vgJogtay7GHUqPdGFm9iGRUEvRCncl4KskweviZTk58,6434
3
+ internal/base_factory.py,sha256=L5e_WT7OClyP7Jpr8IpgmTPSeEBB97WGTGONdTZhsxI,6395
4
4
  internal/const.py,sha256=U1S9r7bjtHgad2oYQoHO19s8D4V0WDUG-L-haV4UaIw,1025
5
5
  internal/database.py,sha256=MyRLlb0W8FB8Odq0UQpN3R7OD3yUPWgJXsZRuDWQC_w,1010
6
6
  internal/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -12,13 +12,13 @@ internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbsw
12
12
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
13
13
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  internal/http/requests.py,sha256=qRkDP23H8afC98Xx-P1CwDVeU_PUMEFbBEW6vuM6YcY,1290
15
- internal/http/responses.py,sha256=JW6CA11MDhM_RwIvZzr0mThUdga3EyYsuG9dfTAxZxw,1561
15
+ internal/http/responses.py,sha256=_N9d1qVBOGySv4Kj1mEV8SntjcIXiX-W2Sz8T_fQoeQ,1566
16
16
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
18
18
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  internal/model/base_model.py,sha256=gNbixWuGiK8Tbe78wHuLneZ8p3fwMwQRKurBDrGoh6s,1874
20
- internal/model/operate.py,sha256=3mOs7eQ2CPnCB6i6UQBOp8VdTPmVnayaUFqUEDOKoTY,1493
20
+ internal/model/operate.py,sha256=Yuq7oyM2xmBy_X9021SgrpnpYQW6D_bgydI9PRFuQVQ,1619
21
21
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
22
- internal-0.1.61.dist-info/METADATA,sha256=kUppBu2YcuMPe0W7bdfXTD8c9S9wDsfSZcGBYuvmkaw,625
23
- internal-0.1.61.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
- internal-0.1.61.dist-info/RECORD,,
22
+ internal-0.1.63.dist-info/METADATA,sha256=2gh8dhzxS1PLxnTd1lDIGtzVhWe1R1UbHdJo7XwVZBk,625
23
+ internal-0.1.63.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
+ internal-0.1.63.dist-info/RECORD,,