spakky-fastapi 1.1.3__py3-none-any.whl → 1.2.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.
@@ -5,9 +5,9 @@ from dataclasses import InitVar, field, dataclass
5
5
 
6
6
  from fastapi import Depends
7
7
  from fastapi.security import OAuth2PasswordBearer
8
- from spakky.aop.advice import Around
9
8
  from spakky.aop.aspect import Aspect, AsyncAspect, IAspect, IAsyncAspect
10
9
  from spakky.aop.error import SpakkyAOPError
10
+ from spakky.aop.pointcut import Around
11
11
  from spakky.core.annotation import FunctionAnnotation
12
12
  from spakky.core.types import AsyncFunc, Func, P
13
13
  from spakky.pod.order import Order
@@ -31,7 +31,6 @@ class FastAPIBeanPostProcessor(IPodPostProcessor):
31
31
  return pod
32
32
  controller = ApiController.get(pod)
33
33
  router: APIRouter = APIRouter(prefix=controller.prefix, tags=controller.tags)
34
- print(f"CONTROLLER {type(pod).__name__}")
35
34
  for name, method in getmembers(pod, callable):
36
35
  route: Route | None = Route.get_or_none(method)
37
36
  websocket_route: WebSocketRoute | None = WebSocketRoute.get_or_none(method)
@@ -58,9 +57,9 @@ class FastAPIBeanPostProcessor(IPodPostProcessor):
58
57
  router.add_api_route(endpoint=method, **asdict(route))
59
58
  if websocket_route is not None:
60
59
  # pylint: disable=line-too-long
61
- # self.__logger.info(
62
- # f"[{type(self).__name__}] [WebSocket] {controller.prefix}{websocket_route.path} -> {method.__qualname__}"
63
- # )
60
+ self.__logger.info(
61
+ f"[{type(self).__name__}] [WebSocket] {controller.prefix}{websocket_route.path} -> {method.__qualname__}"
62
+ )
64
63
  if websocket_route.name is None:
65
64
  websocket_route.name = " ".join(
66
65
  [x.capitalize() for x in name.split("_")]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spakky-fastapi
3
- Version: 1.1.3
3
+ Version: 1.2.0
4
4
  Summary: Highly abstracted Framework core to use DDD & DI/IoC & AOP & Etc...
5
5
  Author: Spakky
6
6
  Author-email: sejong418@icloud.com
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Requires-Dist: fastapi (>=0.109.2,<0.110.0)
13
13
  Requires-Dist: orjson (>=3.9.15,<4.0.0)
14
- Requires-Dist: spakky-core (>=1.1,<2.0)
14
+ Requires-Dist: spakky-core (>=1.2,<2.0)
15
15
  Requires-Dist: websockets (>=12.0,<13.0)
16
16
  Description-Content-Type: text/markdown
17
17
 
@@ -1,16 +1,16 @@
1
1
  spakky_fastapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  spakky_fastapi/aspects/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- spakky_fastapi/aspects/authenticate.py,sha256=XNvujzwIimsJXwfQgz9TLDj09KBOiNrL4TpNu8Mcumw,3995
3
+ spakky_fastapi/aspects/authenticate.py,sha256=Nzyh7iVJy5OmQ3x2ZCPobhPNWgvK604IHaN0pmTdjkI,3997
4
4
  spakky_fastapi/error.py,sha256=SWyNZk1kxbTCiy-tLxB8saLpX5rBxwvy7q7JRCtNQV0,1124
5
5
  spakky_fastapi/middlewares/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  spakky_fastapi/middlewares/error_handling.py,sha256=09cLArDGsN4mMIcC3qWr3SGivLfA6rUQ0PaRwQIT-YA,1816
7
7
  spakky_fastapi/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  spakky_fastapi/plugins/authenticate.py,sha256=63tsHFjEzHklsmNyjPoksqiwiwo04h1dJjpzJq9pRf0,434
9
9
  spakky_fastapi/plugins/fast_api.py,sha256=07tXOukory435Aw_EbGnbQUKSNEVq5AhZ078Lv_6nBc,653
10
- spakky_fastapi/post_processor.py,sha256=auD0iLTYkQoQkIC3WbUoOd6hTLMtd2Bu8qeqUn2ZeCg,3036
10
+ spakky_fastapi/post_processor.py,sha256=v8WPabfbp4WE80tbGkcMowZBa2AyJzS5fyc6RoroJn4,2980
11
11
  spakky_fastapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  spakky_fastapi/stereotypes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  spakky_fastapi/stereotypes/api_controller.py,sha256=NM0gyTQfuHnENtvyfm5T9Y427gQdxdUcVYDzAXryF2M,19320
14
- spakky_fastapi-1.1.3.dist-info/METADATA,sha256=I_nB-fVhr8CrqzDaILAdf5DEKq3juCg-LMh7xbI4FCM,1703
15
- spakky_fastapi-1.1.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
16
- spakky_fastapi-1.1.3.dist-info/RECORD,,
14
+ spakky_fastapi-1.2.0.dist-info/METADATA,sha256=V_WNXUTrjPraxSNb7gAMQn4YYfHIlkPbvbXw2hdnBHE,1703
15
+ spakky_fastapi-1.2.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
16
+ spakky_fastapi-1.2.0.dist-info/RECORD,,