arpakitlib 1.7.125__py3-none-any.whl → 1.7.126__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/README.md +1 -1
- arpakitlib/_arpakit_project_template/manage/docker_run_postgres_for_dev.sh +3 -3
- arpakitlib/_arpakit_project_template/manage/docker_start_postgres_for_dev.sh +1 -1
- arpakitlib/_arpakit_project_template/manage/docker_stop_postgres_for_dev.sh +1 -1
- arpakitlib/_arpakit_project_template/manage/git_set_arpakit_company_origin.sh +2 -2
- arpakitlib/_arpakit_project_template/manage/git_set_arpakit_origin.sh +2 -2
- arpakitlib/_arpakit_project_template/src/admin1/add_admin_in_app.py +2 -1
- arpakitlib/_arpakit_project_template/src/core/settings.py +8 -6
- arpakitlib/ar_arpakit_project_template_util.py +3 -3
- {arpakitlib-1.7.125.dist-info → arpakitlib-1.7.126.dist-info}/METADATA +1 -1
- {arpakitlib-1.7.125.dist-info → arpakitlib-1.7.126.dist-info}/RECORD +15 -15
- {arpakitlib-1.7.125.dist-info → arpakitlib-1.7.126.dist-info}/LICENSE +0 -0
- {arpakitlib-1.7.125.dist-info → arpakitlib-1.7.126.dist-info}/NOTICE +0 -0
- {arpakitlib-1.7.125.dist-info → arpakitlib-1.7.126.dist-info}/WHEEL +0 -0
- {arpakitlib-1.7.125.dist-info → arpakitlib-1.7.126.dist-info}/entry_points.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
1
|
cd ..
|
2
|
-
docker rm {PROJECT_NAME}_postgres
|
3
|
-
docker run --name {PROJECT_NAME}_postgres -d -p {SQL_DB_PORT}:5432 -e POSTGRES_USER={PROJECT_NAME} -e POSTGRES_PASSWORD={PROJECT_NAME} -e POSTGRES_DB={PROJECT_NAME} postgres:16 -c max_connections=100
|
4
|
-
docker start {PROJECT_NAME}_postgres
|
2
|
+
docker rm {{PROJECT_NAME}}_postgres
|
3
|
+
docker run --name {{PROJECT_NAME}}_postgres -d -p {{SQL_DB_PORT}}:5432 -e POSTGRES_USER={{PROJECT_NAME}} -e POSTGRES_PASSWORD={{PROJECT_NAME}} -e POSTGRES_DB={{PROJECT_NAME}} postgres:16 -c max_connections=100
|
4
|
+
docker start {{PROJECT_NAME}}_postgres
|
@@ -1,2 +1,2 @@
|
|
1
1
|
cd ..
|
2
|
-
docker start {PROJECT_NAME}_postgres
|
2
|
+
docker start {{PROJECT_NAME}}_postgres
|
@@ -1,2 +1,2 @@
|
|
1
1
|
cd ..
|
2
|
-
docker stop {PROJECT_NAME}_postgres
|
2
|
+
docker stop {{PROJECT_NAME}}_postgres
|
@@ -1,7 +1,7 @@
|
|
1
1
|
cd ..
|
2
2
|
|
3
3
|
git remote remove arpakit_company_github_1
|
4
|
-
git remote add arpakit_company_github_1 git@github.com:ARPAKIT-Company/{PROJECT_NAME}.git
|
4
|
+
git remote add arpakit_company_github_1 git@github.com:ARPAKIT-Company/{{PROJECT_NAME}}.git
|
5
5
|
|
6
6
|
git remote remove arpakit_company_gitlab_1
|
7
|
-
git remote add arpakit_company_gitlab_1 git@gitlab.com:ARPAKIT-Company/{PROJECT_NAME}.git
|
7
|
+
git remote add arpakit_company_gitlab_1 git@gitlab.com:ARPAKIT-Company/{{PROJECT_NAME}}.git
|
@@ -1,7 +1,7 @@
|
|
1
1
|
cd ..
|
2
2
|
|
3
3
|
git remote remove arpakit_github_1
|
4
|
-
git remote add arpakit_github_1 git@github.com:arpakit/{PROJECT_NAME}.git
|
4
|
+
git remote add arpakit_github_1 git@github.com:arpakit/{{PROJECT_NAME}}.git
|
5
5
|
|
6
6
|
git remote remove arpakit_gitlab_1
|
7
|
-
git remote add arpakit_gitlab_1 git@gitlab.com:arpakit/{PROJECT_NAME}.git
|
7
|
+
git remote add arpakit_gitlab_1 git@gitlab.com:arpakit/{{PROJECT_NAME}}.git
|
@@ -4,6 +4,7 @@ from sqladmin import Admin
|
|
4
4
|
from src.admin1.admin_auth import AdminAuth
|
5
5
|
from src.admin1.model_view import MODEL_VIEWS
|
6
6
|
from src.api.transmitted_api_data import TransmittedAPIData
|
7
|
+
from src.core.settings import get_cached_settings
|
7
8
|
|
8
9
|
|
9
10
|
def add_admin1_in_app(*, app: FastAPI) -> FastAPI:
|
@@ -16,7 +17,7 @@ def add_admin1_in_app(*, app: FastAPI) -> FastAPI:
|
|
16
17
|
engine=transmitted_api_data.sqlalchemy_db.engine,
|
17
18
|
base_url="/admin1",
|
18
19
|
authentication_backend=authentication_backend,
|
19
|
-
title=
|
20
|
+
title=get_cached_settings().project_name
|
20
21
|
)
|
21
22
|
|
22
23
|
for model_view in MODEL_VIEWS:
|
@@ -11,19 +11,21 @@ from src.core.const import BASE_DIRPATH, ENV_FILEPATH
|
|
11
11
|
|
12
12
|
|
13
13
|
class Settings(SimpleSettings):
|
14
|
-
project_name: str = "{PROJECT_NAME}"
|
14
|
+
project_name: str = "{{PROJECT_NAME}}"
|
15
|
+
|
16
|
+
sql_db_port: int | None = int("{{SQL_DB_PORT}}") if "{{SQL_DB_PORT}}".strip() else None
|
15
17
|
|
16
18
|
sql_db_url: str | None = (
|
17
|
-
"postgresql://{PROJECT_NAME}:{PROJECT_NAME}@127.0.0.1:{
|
18
|
-
) if
|
19
|
+
f"postgresql://{{PROJECT_NAME}}:{{PROJECT_NAME}}@127.0.0.1:{sql_db_port}/{{PROJECT_NAME}}"
|
20
|
+
) if sql_db_port is not None else None
|
19
21
|
|
20
22
|
sql_db_echo: bool = False
|
21
23
|
|
22
24
|
api_init_sql_db_at_start: bool = True
|
23
25
|
|
24
|
-
api_title: str =
|
26
|
+
api_title: str = project_name
|
25
27
|
|
26
|
-
api_description: str = "{
|
28
|
+
api_description: str = f"{project_name} (arpakitlib)"
|
27
29
|
|
28
30
|
api_create_story_log_before_response_in_handle_exception: bool = True
|
29
31
|
|
@@ -31,7 +33,7 @@ class Settings(SimpleSettings):
|
|
31
33
|
|
32
34
|
api_start_scheduled_operation_creator_worker: bool = False
|
33
35
|
|
34
|
-
api_port: int | None = int("{API_PORT}") if "{API_PORT}".strip()
|
36
|
+
api_port: int | None = int("{{API_PORT}}") if "{{API_PORT}}".strip() else None
|
35
37
|
|
36
38
|
api_correct_api_key: str | None = "1"
|
37
39
|
|
@@ -69,11 +69,11 @@ def init_arpakit_project_template(
|
|
69
69
|
with open(os.path.join(root, file), "r", encoding="utf-8") as _file:
|
70
70
|
_content = _file.read()
|
71
71
|
if project_name is not None:
|
72
|
-
_content = _content.replace("{PROJECT_NAME}", project_name)
|
72
|
+
_content = _content.replace("{{PROJECT_NAME}}", project_name)
|
73
73
|
if sql_db_port is not None:
|
74
|
-
_content = _content.replace("{SQL_DB_PORT}", str(sql_db_port))
|
74
|
+
_content = _content.replace("{{SQL_DB_PORT}}", str(sql_db_port))
|
75
75
|
if api_port is not None:
|
76
|
-
_content = _content.replace("{API_PORT}", str(api_port))
|
76
|
+
_content = _content.replace("{{API_PORT}}", str(api_port))
|
77
77
|
res[rel_path] = _content
|
78
78
|
return res
|
79
79
|
|
@@ -4,14 +4,14 @@ 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/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
|
7
|
-
arpakitlib/_arpakit_project_template/README.md,sha256=
|
7
|
+
arpakitlib/_arpakit_project_template/README.md,sha256=sHJKzTQBul4SDS13ad2RuIDsvNcZoI5dEecKFAESPKY,67
|
8
8
|
arpakitlib/_arpakit_project_template/example.env,sha256=CtNXgvXe8PfULfLpLdrLUrtOhwc4Ax4vEPvxvRb1Eds,543
|
9
9
|
arpakitlib/_arpakit_project_template/manage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
arpakitlib/_arpakit_project_template/manage/docker_ps.sh,sha256=uwm8vHgeuNLCOn0o9hgP_uc-PUkS9FwLyzZh6ItZ3do,15
|
11
11
|
arpakitlib/_arpakit_project_template/manage/docker_ps_a.sh,sha256=nOQejihYlzstg9oROvYwHIsSLt2Sw0DWQEeT3GBaBNs,18
|
12
|
-
arpakitlib/_arpakit_project_template/manage/docker_run_postgres_for_dev.sh,sha256=
|
13
|
-
arpakitlib/_arpakit_project_template/manage/docker_start_postgres_for_dev.sh,sha256=
|
14
|
-
arpakitlib/_arpakit_project_template/manage/docker_stop_postgres_for_dev.sh,sha256=
|
12
|
+
arpakitlib/_arpakit_project_template/manage/docker_run_postgres_for_dev.sh,sha256=nsFInQpyvXVmmtIjFlYm-PhYOgJMdVZiOV8WJitjqDg,290
|
13
|
+
arpakitlib/_arpakit_project_template/manage/docker_start_postgres_for_dev.sh,sha256=8BFspWCH-dNDJlzI7G7Cpathqxg8INna0BeVqgB0Uvc,45
|
14
|
+
arpakitlib/_arpakit_project_template/manage/docker_stop_postgres_for_dev.sh,sha256=03rAb9mQE878l9aPFsFJnzyOFK71376M6FGndG9c42Q,43
|
15
15
|
arpakitlib/_arpakit_project_template/manage/git_branch.sh,sha256=yMwBwT866WjxowbDrNHRDh8yod4eSn7JZnXUlQvrcOk,17
|
16
16
|
arpakitlib/_arpakit_project_template/manage/git_commit.sh,sha256=AW1NEel-ZHaYeVWFlRbgZSYPQdnVKsTkpR_07RQL1Mw,42
|
17
17
|
arpakitlib/_arpakit_project_template/manage/git_push_arpakit_company_github_1.sh,sha256=Sx-OegryHeNTIfAOoCfj3Z3CF-XKEY0AJF5HVJAgGpU,70
|
@@ -19,8 +19,8 @@ arpakitlib/_arpakit_project_template/manage/git_push_arpakit_company_gitlab_1.sh
|
|
19
19
|
arpakitlib/_arpakit_project_template/manage/git_push_arpakit_github_1.sh,sha256=j2wTeg7_tmJiWEtNAXpXjRSizEauoqF9uM679n6zidU,62
|
20
20
|
arpakitlib/_arpakit_project_template/manage/git_push_arpakit_gitlab_1.sh,sha256=W-85-OhGYLTijzM39G0Es74Y0VdbczELwS12owHN_Gs,62
|
21
21
|
arpakitlib/_arpakit_project_template/manage/git_remote_v.sh,sha256=DIcyWmY_mve_CmM1SND2gYgAGO7HaLtso3zvJfMqTRI,19
|
22
|
-
arpakitlib/_arpakit_project_template/manage/git_set_arpakit_company_origin.sh,sha256=
|
23
|
-
arpakitlib/_arpakit_project_template/manage/git_set_arpakit_origin.sh,sha256=
|
22
|
+
arpakitlib/_arpakit_project_template/manage/git_set_arpakit_company_origin.sh,sha256=x17EhSFaeabf83DvEkIAvH8DMKD7dKfssRtQltua5Ak,278
|
23
|
+
arpakitlib/_arpakit_project_template/manage/git_set_arpakit_origin.sh,sha256=qnzpxiR448EmhNzag_9YXlTRD5Cjq0CqulobQhBthSg,229
|
24
24
|
arpakitlib/_arpakit_project_template/manage/git_status.sh,sha256=N9JGYX5_UfCdirw4EQYzu4sS7pMLGrF4-QrTSTcpUtA,16
|
25
25
|
arpakitlib/_arpakit_project_template/manage/hello_world.py,sha256=OxvwkWqjmhhvMPG1TiQTo52hgEyzZfzUPoij0wmFmWA,95
|
26
26
|
arpakitlib/_arpakit_project_template/manage/json_beautify.py,sha256=AwBtDjb92LpGy9M3XGBoLOIQKlOPtm5pLl47i7xJpZY,239
|
@@ -62,7 +62,7 @@ arpakitlib/_arpakit_project_template/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
|
|
62
62
|
arpakitlib/_arpakit_project_template/src/additional_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
63
|
arpakitlib/_arpakit_project_template/src/additional_model/additional_model.py,sha256=4KCOvto9Hj5eMYpvfaJChghhR9bkCvKluGGPWrTezoY,134
|
64
64
|
arpakitlib/_arpakit_project_template/src/admin1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
|
-
arpakitlib/_arpakit_project_template/src/admin1/add_admin_in_app.py,sha256=
|
65
|
+
arpakitlib/_arpakit_project_template/src/admin1/add_admin_in_app.py,sha256=P1G7ppaec1tFkbKSFlf1CmvIfz9FpT2OPqQtXUVWmlA,755
|
66
66
|
arpakitlib/_arpakit_project_template/src/admin1/admin_auth.py,sha256=qEC7gMy9E6mwuQRxnSsmVthXahVai4zjiC6Z8O3MZn8,804
|
67
67
|
arpakitlib/_arpakit_project_template/src/admin1/model_view.py,sha256=kSscddS6RDZS1VpX0t1n0sjoCjT5O7U8d5YRmT3dauQ,357
|
68
68
|
arpakitlib/_arpakit_project_template/src/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -91,7 +91,7 @@ arpakitlib/_arpakit_project_template/src/core/check_logging.py,sha256=TXAG-v7rH3
|
|
91
91
|
arpakitlib/_arpakit_project_template/src/core/check_settings.py,sha256=m0fTAAFET2n6iE_rrFrWEHgKuJOKbJfkNRpIGsE69qU,328
|
92
92
|
arpakitlib/_arpakit_project_template/src/core/const.py,sha256=CZZew674y7LhCAlYhvuF5cV4Zb9nQ17j2Tcuj2GEBf4,1232
|
93
93
|
arpakitlib/_arpakit_project_template/src/core/generate_settings_env_example.py,sha256=DUfZtJL_iajxdihgPpO1b2Wg9Owe_3AYSUqIlBgCIEI,484
|
94
|
-
arpakitlib/_arpakit_project_template/src/core/settings.py,sha256=
|
94
|
+
arpakitlib/_arpakit_project_template/src/core/settings.py,sha256=Cy0iqZfitLtkVaPn5xjijFMpMq9UvtsXf-Id_mSqJQQ,2428
|
95
95
|
arpakitlib/_arpakit_project_template/src/core/util.py,sha256=5R8gvcZdvuDQes45FBnLC2IDv2Jhajp1VhJJYNKYjMQ,1539
|
96
96
|
arpakitlib/_arpakit_project_template/src/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
97
97
|
arpakitlib/_arpakit_project_template/src/db/check_conn_sqlalchemy_db.py,sha256=wv1N33nTGpsT9nk94OePlOSZ-O9UVKlMfRf8y5UeK1Y,213
|
@@ -121,7 +121,7 @@ arpakitlib/api_key_util.py,sha256=E84JlJXiDHtxLQmV8BNHvqNKu_G8-Dox0XxknYJQ37Q,42
|
|
121
121
|
arpakitlib/ar_additional_model_util.py,sha256=GFg-glLCxH9X95R2bhTJsscVwv37FgE1qbaAAyXrnIE,917
|
122
122
|
arpakitlib/ar_aiogram_util.py,sha256=5JPCDZpdBGTE-EIWPRez9amCZAX7XemFIVu5YrQK7Pw,12264
|
123
123
|
arpakitlib/ar_arpakit_lib_module_util.py,sha256=UEPU8wk29R_bBP_RENnhXYzNbj_RF9FWjowrj_yxWLA,5931
|
124
|
-
arpakitlib/ar_arpakit_project_template_util.py,sha256=
|
124
|
+
arpakitlib/ar_arpakit_project_template_util.py,sha256=c7yc8w2IvZGH5hH8eOpL7JuD005hUxZ0GVDcSkJF5iI,3705
|
125
125
|
arpakitlib/ar_arpakit_schedule_uust_api_client_util.py,sha256=jGbP6egs2yhgfheyqhM0J-SeM2qp2YrW7dV-u9djv4Q,19223
|
126
126
|
arpakitlib/ar_arpakitlib_cli_util.py,sha256=8lhEDxnwMSRX2PGV2xQtQru1AYKSA92SVolol5u7iBk,3154
|
127
127
|
arpakitlib/ar_base64_util.py,sha256=aZkg2cZTuAaP2IWeG_LXJ6RO7qhyskVwec-Lks0iM-k,676
|
@@ -183,9 +183,9 @@ arpakitlib/ar_str_util.py,sha256=yU5gOwNXUQaH5b_tM5t6fXUn9oUcv5EQbVnq2wXXIpQ,337
|
|
183
183
|
arpakitlib/ar_type_util.py,sha256=BJ5FcS5Vkj9KFNJgoh0qGLazy-wCubqhND3vle0yOTo,3717
|
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.
|
191
|
-
arpakitlib-1.7.
|
186
|
+
arpakitlib-1.7.126.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
187
|
+
arpakitlib-1.7.126.dist-info/METADATA,sha256=zvk78qIa_lx6IZ53CwYBX5btGHJZ273RW6QEJJZD6rc,3176
|
188
|
+
arpakitlib-1.7.126.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
|
189
|
+
arpakitlib-1.7.126.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
190
|
+
arpakitlib-1.7.126.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
191
|
+
arpakitlib-1.7.126.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|