python3-commons 0.8.6__py3-none-any.whl → 0.8.8__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.
- python3_commons/db/__init__.py +4 -1
- {python3_commons-0.8.6.dist-info → python3_commons-0.8.8.dist-info}/METADATA +1 -1
- {python3_commons-0.8.6.dist-info → python3_commons-0.8.8.dist-info}/RECORD +7 -7
- {python3_commons-0.8.6.dist-info → python3_commons-0.8.8.dist-info}/WHEEL +0 -0
- {python3_commons-0.8.6.dist-info → python3_commons-0.8.8.dist-info}/licenses/AUTHORS.rst +0 -0
- {python3_commons-0.8.6.dist-info → python3_commons-0.8.8.dist-info}/licenses/LICENSE +0 -0
- {python3_commons-0.8.6.dist-info → python3_commons-0.8.8.dist-info}/top_level.txt +0 -0
python3_commons/db/__init__.py
CHANGED
@@ -31,6 +31,7 @@ class AsyncSessionManager:
|
|
31
31
|
def async_engine_from_db_settings(self, name):
|
32
32
|
db_settings = self.get_db_settings(name)
|
33
33
|
configuration = db_settings.model_dump(by_alias=True)
|
34
|
+
configuration['url'] = str(configuration['url'])
|
34
35
|
engine = async_engine_from_config(configuration, prefix='')
|
35
36
|
|
36
37
|
return engine
|
@@ -58,7 +59,9 @@ class AsyncSessionManager:
|
|
58
59
|
|
59
60
|
def get_async_session(self, name: str) -> Callable[[], AsyncGenerator[AsyncSession, None]]:
|
60
61
|
async def get_session() -> AsyncGenerator[AsyncSession, None]:
|
61
|
-
|
62
|
+
session_maker = self.get_session_maker(name)
|
63
|
+
|
64
|
+
async with session_maker() as session:
|
62
65
|
yield session
|
63
66
|
|
64
67
|
return get_session
|
@@ -6,7 +6,7 @@ python3_commons/fs.py,sha256=wfLjybXndwLqNlOxTpm_HRJnuTcC4wbrHEOaEeCo9Wc,337
|
|
6
6
|
python3_commons/helpers.py,sha256=OmuCF7UeJ6oe-rH1Y4ZYVW_uPQ973lCLsikj01wmNqs,3101
|
7
7
|
python3_commons/object_storage.py,sha256=Bte49twIJ4l6VAzIqK6tLx7DFYwijErUmmhWkrZpSJE,4074
|
8
8
|
python3_commons/permissions.py,sha256=V6kT7gBQ0fZRDQwreM9es90BvvpB3gUofuqnFvx2g-o,1553
|
9
|
-
python3_commons/db/__init__.py,sha256=
|
9
|
+
python3_commons/db/__init__.py,sha256=NP5ESM2etmP-mP6esZRmXpm3UjWCShw3bho68pqB_zY,2705
|
10
10
|
python3_commons/db/helpers.py,sha256=0z-pXAxQg0KqrqfoUcRooRHNrrKi-g2mSO6euVMscpE,1891
|
11
11
|
python3_commons/db/models/__init__.py,sha256=AeeTLUqdqQrhCTi14ACWO0ccyVyWFppZVtCeWShSvR0,193
|
12
12
|
python3_commons/db/models/auth.py,sha256=ctHiz_5x17TdXac7a3SjfuZ0-nEgnxK7RwKOY8qflZc,1195
|
@@ -19,9 +19,9 @@ python3_commons/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
19
19
|
python3_commons/serializers/json.py,sha256=P288wWz9ic38QWEMrpp_uwKPYkQiOgvE1cI4WZn6ZCg,808
|
20
20
|
python3_commons/serializers/msgpack.py,sha256=tzIGGyDL3UpZnnouCtnxuYDx6InKM_C3PP1N4PN8wd4,1269
|
21
21
|
python3_commons/serializers/msgspec.py,sha256=FuZVqOLJb0-lEKrs7dtjhwEbHIpfMUk5yu1hD64zRdc,2038
|
22
|
-
python3_commons-0.8.
|
23
|
-
python3_commons-0.8.
|
24
|
-
python3_commons-0.8.
|
25
|
-
python3_commons-0.8.
|
26
|
-
python3_commons-0.8.
|
27
|
-
python3_commons-0.8.
|
22
|
+
python3_commons-0.8.8.dist-info/licenses/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
|
23
|
+
python3_commons-0.8.8.dist-info/licenses/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
|
24
|
+
python3_commons-0.8.8.dist-info/METADATA,sha256=PDEwcNb5dW45EBgs9XfvhDUeQ5vbY_hJFs_Mw5NJau4,1149
|
25
|
+
python3_commons-0.8.8.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
26
|
+
python3_commons-0.8.8.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
|
27
|
+
python3_commons-0.8.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|