python3-commons 0.8.24__py3-none-any.whl → 0.8.26__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/conf.py +2 -2
- python3_commons/db/__init__.py +8 -2
- {python3_commons-0.8.24.dist-info → python3_commons-0.8.26.dist-info}/METADATA +1 -1
- {python3_commons-0.8.24.dist-info → python3_commons-0.8.26.dist-info}/RECORD +8 -8
- {python3_commons-0.8.24.dist-info → python3_commons-0.8.26.dist-info}/WHEEL +0 -0
- {python3_commons-0.8.24.dist-info → python3_commons-0.8.26.dist-info}/licenses/AUTHORS.rst +0 -0
- {python3_commons-0.8.24.dist-info → python3_commons-0.8.26.dist-info}/licenses/LICENSE +0 -0
- {python3_commons-0.8.24.dist-info → python3_commons-0.8.26.dist-info}/top_level.txt +0 -0
python3_commons/conf.py
CHANGED
@@ -26,7 +26,7 @@ class ValkeySettings(BaseSettings):
|
|
26
26
|
class DBSettings(BaseSettings):
|
27
27
|
model_config = SettingsConfigDict(env_prefix='DB_', validate_by_name=True, validate_by_alias=True)
|
28
28
|
|
29
|
-
dsn: PostgresDsn | None =
|
29
|
+
dsn: PostgresDsn | None = None
|
30
30
|
scheme: str = 'postgresql+asyncpg'
|
31
31
|
host: str = 'localhost'
|
32
32
|
port: int = 5432
|
@@ -55,7 +55,7 @@ class DBSettings(BaseSettings):
|
|
55
55
|
password=self.password.get_secret_value() if self.password else None,
|
56
56
|
host=self.host,
|
57
57
|
port=self.port,
|
58
|
-
path=
|
58
|
+
path=self.name,
|
59
59
|
)
|
60
60
|
|
61
61
|
return self
|
python3_commons/db/__init__.py
CHANGED
@@ -30,8 +30,14 @@ class AsyncSessionManager:
|
|
30
30
|
|
31
31
|
def async_engine_from_db_settings(self, name):
|
32
32
|
db_settings = self.get_db_settings(name)
|
33
|
-
configuration =
|
34
|
-
|
33
|
+
configuration = {
|
34
|
+
'url': str(db_settings.dsn),
|
35
|
+
'echo': db_settings.echo,
|
36
|
+
'pool_size': db_settings.pool_size,
|
37
|
+
'max_overflow': db_settings.max_overflow,
|
38
|
+
'pool_timeout': db_settings.pool_timeout,
|
39
|
+
'pool_recycle': db_settings.pool_recycle,
|
40
|
+
}
|
35
41
|
engine = async_engine_from_config(configuration, prefix='')
|
36
42
|
|
37
43
|
return engine
|
@@ -3,12 +3,12 @@ python3_commons/api_client.py,sha256=LT7_YmnYVHK2ucKxIhUJCZrmxgfy-lfOxx08-R0WvW0
|
|
3
3
|
python3_commons/audit.py,sha256=osx2ywZXf-V0zOkrhlNgSyzCBvojXQwSYBQ4-ze1xiM,6249
|
4
4
|
python3_commons/auth.py,sha256=X8mo7L0dhy1EwzHjOkjBAPvHCCqeTS6yhkcVfVi89cU,2459
|
5
5
|
python3_commons/cache.py,sha256=lf27LTD4Z9Iqi5GaK8jH8UC0cL9sHH8wicZ88YDp6Mg,7725
|
6
|
-
python3_commons/conf.py,sha256=
|
6
|
+
python3_commons/conf.py,sha256=JenspXyTqTlYeEb8X9Njfje1AiLCee23nm0k8zhYLfs,2283
|
7
7
|
python3_commons/fs.py,sha256=wfLjybXndwLqNlOxTpm_HRJnuTcC4wbrHEOaEeCo9Wc,337
|
8
8
|
python3_commons/helpers.py,sha256=ygnTv3KYoiibOFIi99-g8EXaETKHLt5i3jvykGrv6aE,3079
|
9
9
|
python3_commons/object_storage.py,sha256=nQsXca0zzzeSY35qhnjE6pLfkLuxn7jDul0-hw0jizE,3985
|
10
10
|
python3_commons/permissions.py,sha256=bhjTp-tq-oaTGFMHNnSBlcVX5XQCTL0nWcu6SdPEAB4,1555
|
11
|
-
python3_commons/db/__init__.py,sha256=
|
11
|
+
python3_commons/db/__init__.py,sha256=5nArsGm17e-pelpOwAeBKy2n_Py20XqklZsNgkcJ-DQ,2947
|
12
12
|
python3_commons/db/helpers.py,sha256=PY0h08aLiGx-J54wmP3GHPCgGCcLd60rayAUnR3aWdI,1742
|
13
13
|
python3_commons/db/models/__init__.py,sha256=Utr5AJf1FwcrxNtdesgjq92WMK4zpK4VL_8z1JEkJw0,185
|
14
14
|
python3_commons/db/models/auth.py,sha256=dmyD3BX7LVBgKiepPN-bxlY6J3PhcmUfVdQwhNR45fU,1187
|
@@ -21,9 +21,9 @@ python3_commons/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
21
21
|
python3_commons/serializers/json.py,sha256=91UaXLGKGj0yPyrnuMeNrkG2GuPUgcgAsmIokUgEwpU,808
|
22
22
|
python3_commons/serializers/msgpack.py,sha256=WrvaPE187shSK8zkH4UHHMimEZNMv9RaDSwsBE2HlCw,1269
|
23
23
|
python3_commons/serializers/msgspec.py,sha256=5SS_wQXcrThPmCWjI7k1a_cHWLz46Jzn3pit89SYJGY,2038
|
24
|
-
python3_commons-0.8.
|
25
|
-
python3_commons-0.8.
|
26
|
-
python3_commons-0.8.
|
27
|
-
python3_commons-0.8.
|
28
|
-
python3_commons-0.8.
|
29
|
-
python3_commons-0.8.
|
24
|
+
python3_commons-0.8.26.dist-info/licenses/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
|
25
|
+
python3_commons-0.8.26.dist-info/licenses/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
|
26
|
+
python3_commons-0.8.26.dist-info/METADATA,sha256=t7Qlr6Yt-JZM0jZTswSuFXhmga_xJqqtdS9nFH_m_JE,1127
|
27
|
+
python3_commons-0.8.26.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
28
|
+
python3_commons-0.8.26.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
|
29
|
+
python3_commons-0.8.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|