spakky-fastapi 1.1.3__tar.gz → 1.2.0__tar.gz
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.
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/PKG-INFO +2 -2
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/pyproject.toml +2 -2
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/aspects/authenticate.py +1 -1
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/post_processor.py +3 -4
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/README.md +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/__init__.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/aspects/__init__.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/error.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/middlewares/__init__.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/middlewares/error_handling.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/plugins/__init__.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/plugins/authenticate.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/plugins/fast_api.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/py.typed +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/stereotypes/__init__.py +0 -0
- {spakky_fastapi-1.1.3 → spakky_fastapi-1.2.0}/spakky_fastapi/stereotypes/api_controller.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: spakky-fastapi
|
3
|
-
Version: 1.
|
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.
|
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,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "spakky-fastapi"
|
3
|
-
version = "1.
|
3
|
+
version = "1.2.0"
|
4
4
|
description = "Highly abstracted Framework core to use DDD & DI/IoC & AOP & Etc..."
|
5
5
|
authors = ["Spakky <sejong418@icloud.com>"]
|
6
6
|
readme = "README.md"
|
@@ -12,7 +12,7 @@ build-backend = "poetry.core.masonry.api"
|
|
12
12
|
[tool.poetry.dependencies]
|
13
13
|
python = ">=3.10"
|
14
14
|
fastapi = "^0.109.2"
|
15
|
-
spakky-core = "^1.
|
15
|
+
spakky-core = "^1.2"
|
16
16
|
websockets = "^12.0"
|
17
17
|
orjson = "^3.9.15"
|
18
18
|
|
@@ -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
|
-
|
62
|
-
|
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("_")]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|