fastapi-extra 0.2.1__cp312-cp312-win_amd64.whl → 0.2.2__cp312-cp312-win_amd64.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.
- fastapi_extra/__init__.py +1 -1
- fastapi_extra/cursor.cp312-win_amd64.pyd +0 -0
- fastapi_extra/database/service.py +2 -2
- fastapi_extra/native/routing.pyx +0 -1
- fastapi_extra/routing.cp312-win_amd64.pyd +0 -0
- {fastapi_extra-0.2.1.dist-info → fastapi_extra-0.2.2.dist-info}/METADATA +1 -1
- {fastapi_extra-0.2.1.dist-info → fastapi_extra-0.2.2.dist-info}/RECORD +10 -10
- {fastapi_extra-0.2.1.dist-info → fastapi_extra-0.2.2.dist-info}/WHEEL +0 -0
- {fastapi_extra-0.2.1.dist-info → fastapi_extra-0.2.2.dist-info}/licenses/LICENSE +0 -0
- {fastapi_extra-0.2.1.dist-info → fastapi_extra-0.2.2.dist-info}/top_level.txt +0 -0
fastapi_extra/__init__.py
CHANGED
|
Binary file
|
|
@@ -5,7 +5,7 @@ from contextvars import ContextVar
|
|
|
5
5
|
from typing import Any, Generic, Self, TypeVar
|
|
6
6
|
|
|
7
7
|
from fastapi_extra.database.model import SQLModel
|
|
8
|
-
from fastapi_extra.database.session import DefaultSession
|
|
8
|
+
from fastapi_extra.database.session import AsyncSession, DefaultSession
|
|
9
9
|
from fastapi_extra.dependency import AbstractService
|
|
10
10
|
|
|
11
11
|
Model = TypeVar("Model", bound=SQLModel)
|
|
@@ -32,7 +32,7 @@ class ModelService(AbstractService, Generic[Model], abstract=True):
|
|
|
32
32
|
self.__session_container__.set(session)
|
|
33
33
|
|
|
34
34
|
@property
|
|
35
|
-
def session(self):
|
|
35
|
+
def session(self) -> AsyncSession:
|
|
36
36
|
_session = self.__session_container__.get()
|
|
37
37
|
assert _session is not None, "Session is not initialized"
|
|
38
38
|
return _session
|
fastapi_extra/native/routing.pyx
CHANGED
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fastapi_extra/__init__.py,sha256=
|
|
2
|
-
fastapi_extra/cursor.cp312-win_amd64.pyd,sha256=
|
|
1
|
+
fastapi_extra/__init__.py,sha256=15p7teY89i6qSlOfYqQjU6a7fRvBPC-tPXGQU6Oo0O8,286
|
|
2
|
+
fastapi_extra/cursor.cp312-win_amd64.pyd,sha256=_Lkcm1Mi2PRMXa4M4QO5ydq-5N8Pk0pAjb8hiDLp13A,53760
|
|
3
3
|
fastapi_extra/cursor.pyi,sha256=t1_ub-dRhu3OcXB_dIw5MdBG9r1n7853Vtgzc6bk6dw,115
|
|
4
4
|
fastapi_extra/dependency.py,sha256=LtYnOTMyhOQUFSbNEViw7lxJvAFpPWbyuY4e2goSG-8,2130
|
|
5
5
|
fastapi_extra/form.py,sha256=Fs9uEDOQThjFroDVTrjWnIGJ107BgXCppIVTymwQLzg,1247
|
|
6
6
|
fastapi_extra/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
fastapi_extra/response.py,sha256=DHvhOSgwot5eBNKuI_jPYxZ5rshZ55Xkg-FNBJlHD1E,9609
|
|
8
|
-
fastapi_extra/routing.cp312-win_amd64.pyd,sha256=
|
|
8
|
+
fastapi_extra/routing.cp312-win_amd64.pyd,sha256=e_t1yZsSSJm-z1ppnXVOch9TGQF2q9ipphYNsY_9Otk,91136
|
|
9
9
|
fastapi_extra/routing.pyi,sha256=QslcOUnVJqFCqt14VJQwjUYQ7Qd3bQBTo34Yx1xS7TA,243
|
|
10
10
|
fastapi_extra/settings.py,sha256=cCcwaper5GiNNoT4gNKqf-iloSOTNnMsiUR0knJx4Mw,1461
|
|
11
11
|
fastapi_extra/types.py,sha256=3z6gUnao6WZL76asZYmex20xfY9mvYA-RbnsxUcui30,819
|
|
@@ -14,12 +14,12 @@ fastapi_extra/cache/__init__.py,sha256=kq4b_AYKCSJ0fEp4rqpeaoNJilko4XbtfC81xzUaY
|
|
|
14
14
|
fastapi_extra/cache/redis.py,sha256=-hr2DRkmruzH4cIArdjsytqRiiWWtDJt9GIDy38wmtQ,1600
|
|
15
15
|
fastapi_extra/database/__init__.py,sha256=pCYUoEylTponWqpR0AXJHcRo_cs4fnEXVVV9B5J9rt0,384
|
|
16
16
|
fastapi_extra/database/model.py,sha256=2lDi9PQ5F0PSM7BGZozZf1wSefpXnTWqAVzEyGPaXRI,2453
|
|
17
|
-
fastapi_extra/database/service.py,sha256
|
|
17
|
+
fastapi_extra/database/service.py,sha256=V5ojRpiWs9_B3XVQz-PtyvBePfmByTn8WG2gXwuhpO0,1828
|
|
18
18
|
fastapi_extra/database/session.py,sha256=PALArHhXNS2gCgeMkiKjyatvINV_VW1LjgEIwXDKyfQ,1903
|
|
19
19
|
fastapi_extra/native/cursor.pyx,sha256=GchJIPY6e5scuyl1BbA-Et0CdRcHOI3xgsTvDem0B70,1141
|
|
20
|
-
fastapi_extra/native/routing.pyx,sha256=
|
|
21
|
-
fastapi_extra-0.2.
|
|
22
|
-
fastapi_extra-0.2.
|
|
23
|
-
fastapi_extra-0.2.
|
|
24
|
-
fastapi_extra-0.2.
|
|
25
|
-
fastapi_extra-0.2.
|
|
20
|
+
fastapi_extra/native/routing.pyx,sha256=NisJ9YaxzceDVWJnF3EeVXWT8rv_6WRDuIfLEK0eWbc,6233
|
|
21
|
+
fastapi_extra-0.2.2.dist-info/licenses/LICENSE,sha256=0vTjHDa3VDsxTT-R-sH6SpYcA2F1hKtbX9ZFZQm-EcU,1516
|
|
22
|
+
fastapi_extra-0.2.2.dist-info/METADATA,sha256=buJJyc4jA2ve_5jdhJ0Gm6HXiazZC2rwJm6oGEktH3A,1371
|
|
23
|
+
fastapi_extra-0.2.2.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
|
|
24
|
+
fastapi_extra-0.2.2.dist-info/top_level.txt,sha256=B7D80bEftE2E-eSd1be2r9BWkLLMZN21dRTWpb4y4Ig,14
|
|
25
|
+
fastapi_extra-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|