arpakitlib 1.7.206__py3-none-any.whl → 1.7.208__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.
- arpakitlib/_arpakit_project_template/example.env +3 -0
- arpakitlib/_arpakit_project_template/src/core/settings.py +13 -2
- {arpakitlib-1.7.206.dist-info → arpakitlib-1.7.208.dist-info}/METADATA +1 -1
- {arpakitlib-1.7.206.dist-info → arpakitlib-1.7.208.dist-info}/RECORD +7 -7
- {arpakitlib-1.7.206.dist-info → arpakitlib-1.7.208.dist-info}/LICENSE +0 -0
- {arpakitlib-1.7.206.dist-info → arpakitlib-1.7.208.dist-info}/WHEEL +0 -0
- {arpakitlib-1.7.206.dist-info → arpakitlib-1.7.208.dist-info}/entry_points.txt +0 -0
@@ -12,11 +12,22 @@ from src.core.const import ProjectPaths
|
|
12
12
|
class Settings(SimpleSettings):
|
13
13
|
project_name: str = "{{PROJECT_NAME}}"
|
14
14
|
|
15
|
+
sql_db_user: str | None = project_name
|
16
|
+
|
17
|
+
sql_db_password: str | None = project_name
|
18
|
+
|
15
19
|
sql_db_port: int | None = int("{{SQL_DB_PORT}}") if "{{SQL_DB_PORT}}".strip().isdigit() else None
|
16
20
|
|
21
|
+
sql_db_database: str | None = project_name
|
22
|
+
|
17
23
|
sql_db_url: str | None = (
|
18
|
-
f"postgresql://{
|
19
|
-
) if
|
24
|
+
f"postgresql://{sql_db_user}:{sql_db_password}@127.0.0.1:{sql_db_port}/{sql_db_database}"
|
25
|
+
) if (
|
26
|
+
sql_db_user is not None
|
27
|
+
and sql_db_password is not None
|
28
|
+
and sql_db_port is not None
|
29
|
+
and sql_db_database is not None
|
30
|
+
) else None
|
20
31
|
|
21
32
|
sql_db_echo: bool = False
|
22
33
|
|
@@ -4,7 +4,7 @@ arpakitlib/_arpakit_project_template/.python-version,sha256=XMd40XBnlTFfBSmMldd-
|
|
4
4
|
arpakitlib/_arpakit_project_template/ARPAKITLIB,sha256=3-iAkMXtesLzJXHw_IIv2k2M0oH8cTjHzW22Vvbi0IE,4
|
5
5
|
arpakitlib/_arpakit_project_template/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
6
6
|
arpakitlib/_arpakit_project_template/README.md,sha256=AwqCtmMeywF2dJhZbKwCBA_wPnLF_VmoLGfPbFjH3bM,62
|
7
|
-
arpakitlib/_arpakit_project_template/example.env,sha256=
|
7
|
+
arpakitlib/_arpakit_project_template/example.env,sha256=Ko4SnDj-vlgfjmSDiZsu3qw8SJQaDgeTCnwc5RZfHFI,611
|
8
8
|
arpakitlib/_arpakit_project_template/manage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
arpakitlib/_arpakit_project_template/manage/docker_ps.sh,sha256=uwm8vHgeuNLCOn0o9hgP_uc-PUkS9FwLyzZh6ItZ3do,15
|
10
10
|
arpakitlib/_arpakit_project_template/manage/docker_ps_a.sh,sha256=nOQejihYlzstg9oROvYwHIsSLt2Sw0DWQEeT3GBaBNs,18
|
@@ -89,7 +89,7 @@ arpakitlib/_arpakit_project_template/src/core/_check_logging.py,sha256=APQp8jQa3
|
|
89
89
|
arpakitlib/_arpakit_project_template/src/core/_check_settings.py,sha256=BQUcr-yj3cxz5GQo0jXe99wMoqHKrrrKD3-UovsJAt0,284
|
90
90
|
arpakitlib/_arpakit_project_template/src/core/_generate_settings_env_example.py,sha256=SiEJe8AYQPOWicsaCwf9RdXp6UAmfkBdBT18AAInGb4,483
|
91
91
|
arpakitlib/_arpakit_project_template/src/core/const.py,sha256=e2Y0NIQHfzm3bmnbQnGy3Z5YKt6OYnIsRoqVY8oIV2E,1008
|
92
|
-
arpakitlib/_arpakit_project_template/src/core/settings.py,sha256=
|
92
|
+
arpakitlib/_arpakit_project_template/src/core/settings.py,sha256=yKuakhs8fFOEX-9G3w-ACvm-Mqdu58GrK94zVjjTD6g,2635
|
93
93
|
arpakitlib/_arpakit_project_template/src/core/util.py,sha256=mcikqcjljZa2qhYeoR1tR9JUSprrVSod8XcIK_PqS6o,1547
|
94
94
|
arpakitlib/_arpakit_project_template/src/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
95
95
|
arpakitlib/_arpakit_project_template/src/db/_check_conn_sqlalchemy_db.py,sha256=GPK7-w7x8ESqbZ0v1nI8m_ysWfnmjgRwyyh6kM8vYBQ,249
|
@@ -183,8 +183,8 @@ arpakitlib/ar_str_util.py,sha256=yU5gOwNXUQaH5b_tM5t6fXUn9oUcv5EQbVnq2wXXIpQ,337
|
|
183
183
|
arpakitlib/ar_type_util.py,sha256=9C3ErtUVs0tAUqtK-foFzjJOykfBOntfCz2IogDOgfA,4134
|
184
184
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
|
185
185
|
arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
186
|
-
arpakitlib-1.7.
|
187
|
-
arpakitlib-1.7.
|
188
|
-
arpakitlib-1.7.
|
189
|
-
arpakitlib-1.7.
|
190
|
-
arpakitlib-1.7.
|
186
|
+
arpakitlib-1.7.208.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
187
|
+
arpakitlib-1.7.208.dist-info/METADATA,sha256=YfM1RLOvGM660Ltux3qv38xeqRIs4iMnqAs1eg-lfe0,3176
|
188
|
+
arpakitlib-1.7.208.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
189
|
+
arpakitlib-1.7.208.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
190
|
+
arpakitlib-1.7.208.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|