arpakitlib 1.8.190__py3-none-any.whl → 1.8.192__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.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "arpakitlib_project_template_version": "5",
3
- "arpakitlib_project_template_subversion": "45"
3
+ "arpakitlib_project_template_subversion": "47"
4
4
  }
@@ -20,6 +20,9 @@ class Settings(SimpleSettings):
20
20
  if self.prod_mode:
21
21
  raise ValueError(f"self.prod_mode")
22
22
 
23
+ def raise_if_mode_prod(self):
24
+ self.raise_if_prod_mode()
25
+
23
26
  def raise_if_not_prod_mode(self):
24
27
  if not self.prod_mode:
25
28
  raise ValueError(f"not self.prod_mode")
@@ -2,7 +2,7 @@ from datetime import timedelta
2
2
  from typing import Any, Callable
3
3
 
4
4
  from pydantic import ConfigDict
5
- from pydantic.v1 import BaseModel
5
+ from pydantic import BaseModel
6
6
 
7
7
  from project.operation_execution.util import every_timedelta_is_time_func
8
8
  from project.sqlalchemy_db_.sqlalchemy_model import OperationDBM
@@ -17,25 +17,25 @@ class ScheduledOperation(BaseModel):
17
17
  timeout_after_creation: timedelta | None = None
18
18
 
19
19
 
20
- healthcheck_every_0_01_seconds_scheduled_operation = ScheduledOperation(
20
+ healthcheck_every_0_01_seconds_so = ScheduledOperation(
21
21
  type=OperationDBM.Types.healthcheck_,
22
22
  input_data={"healthcheck": "healthcheck"},
23
23
  is_time_func=every_timedelta_is_time_func(td=timedelta(seconds=0.01))
24
24
  )
25
25
 
26
- healthcheck_every_3_seconds_scheduled_operation = ScheduledOperation(
26
+ healthcheck_every_3_seconds_so = ScheduledOperation(
27
27
  type=OperationDBM.Types.healthcheck_,
28
28
  input_data={"healthcheck": "healthcheck"},
29
29
  is_time_func=every_timedelta_is_time_func(td=timedelta(seconds=3))
30
30
  )
31
31
 
32
- healthcheck_every_24_hours_scheduled_operation = ScheduledOperation(
32
+ healthcheck_every_24_hours_so = ScheduledOperation(
33
33
  type=OperationDBM.Types.healthcheck_,
34
34
  input_data={"healthcheck": "healthcheck"},
35
35
  is_time_func=every_timedelta_is_time_func(td=timedelta(hours=24))
36
36
  )
37
37
 
38
- raise_fake_error_every_3_seconds_scheduled_operation = ScheduledOperation(
38
+ raise_fake_error_every_3_seconds_so = ScheduledOperation(
39
39
  type=OperationDBM.Types.raise_fake_error_,
40
40
  input_data={"raise_fake_error": "raise_fake_error"},
41
41
  is_time_func=every_timedelta_is_time_func(td=timedelta(seconds=3))
@@ -44,6 +44,6 @@ raise_fake_error_every_3_seconds_scheduled_operation = ScheduledOperation(
44
44
 
45
45
  def get_scheduled_operations() -> list[ScheduledOperation]:
46
46
  res = []
47
- res.append(healthcheck_every_3_seconds_scheduled_operation)
48
- res.append(healthcheck_every_24_hours_scheduled_operation)
47
+ res.append(healthcheck_every_3_seconds_so)
48
+ res.append(healthcheck_every_24_hours_so)
49
49
  return res
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.8.190
3
+ Version: 1.8.192
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -8,7 +8,7 @@ arpakitlib/_arpakit_project_template_v_5/alembic/env.py,sha256=Qesmnj5A2kB-Doeuf
8
8
  arpakitlib/_arpakit_project_template_v_5/alembic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
9
9
  arpakitlib/_arpakit_project_template_v_5/alembic/versions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  arpakitlib/_arpakit_project_template_v_5/alembic.ini,sha256=8fuyeEvGBiPGbxEFy8ISBV3xX_fgVmuhEGpB10_B5Uo,3733
11
- arpakitlib/_arpakit_project_template_v_5/arpakitlib_project_template_info.json,sha256=NJYmP3Ip2h0QJ4bRaW6pQjNWP--54opz50U72nADw9w,98
11
+ arpakitlib/_arpakit_project_template_v_5/arpakitlib_project_template_info.json,sha256=keN0tdh9_6aLOtkeJVCIYHkLvF4tANK-0kYtV_s6Nic,98
12
12
  arpakitlib/_arpakit_project_template_v_5/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  arpakitlib/_arpakit_project_template_v_5/command/alembic_history.sh,sha256=OMnDNtHIksGh9iavWnzbtxcudZW4vjdcISsBXvzZSPw,22
14
14
  arpakitlib/_arpakit_project_template_v_5/command/alembic_revision_autogenerate.sh,sha256=yW2i-SBOtBx15Ya0poVQqKkJM5t2JZp06r9AEW-DmGE,46
@@ -181,7 +181,7 @@ arpakitlib/_arpakit_project_template_v_5/project/core/dump_file_storage_in_dir.p
181
181
  arpakitlib/_arpakit_project_template_v_5/project/core/easy_openai_api_client.py,sha256=ssQ8Ju6CBQeXSOa_lfLaqycSf0a-NIj6ucOhEsPseVc,1141
182
182
  arpakitlib/_arpakit_project_template_v_5/project/core/jinja2_templates.py,sha256=jCNLaBauGC7YNvZdTLNHuPp7hmRGt94O23Skg6ewo7o,352
183
183
  arpakitlib/_arpakit_project_template_v_5/project/core/media_file_storage_in_dir.py,sha256=fMofTsfJtA8pp5lEUhucEUu3PBsmj-elaRZzExDsdLI,623
184
- arpakitlib/_arpakit_project_template_v_5/project/core/settings.py,sha256=ciIBp9xSGVpUIYRone_PSDvjMmkoeHfuMO3Q_3Q76EI,6589
184
+ arpakitlib/_arpakit_project_template_v_5/project/core/settings.py,sha256=3CouqCjoStxMeNUDF8y-fjMcNXAryZ4ILXviUod3-Z0,6658
185
185
  arpakitlib/_arpakit_project_template_v_5/project/core/setup_logging.py,sha256=7VRejVMUNeR-MywrVw7B1RxVkIBHwVNQJFC4wlpBJco,1497
186
186
  arpakitlib/_arpakit_project_template_v_5/project/core/util.py,sha256=iCwpuRqr6TfW0sKVH-3asQjhueJuad3ffq6sPI6ZUrs,347
187
187
  arpakitlib/_arpakit_project_template_v_5/project/emailer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -195,7 +195,7 @@ arpakitlib/_arpakit_project_template_v_5/project/operation_execution/__init__.py
195
195
  arpakitlib/_arpakit_project_template_v_5/project/operation_execution/const.py,sha256=dcvj5C9E2F2KCsGZPBBncQf_EvVJAC1qQgnyD8P4ZEw,6
196
196
  arpakitlib/_arpakit_project_template_v_5/project/operation_execution/operation_executor_worker.py,sha256=GlJYHw63RONeTfQa6goLoFSlcLp0m7CcAYai-1RtSl0,12130
197
197
  arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operation_creator_worker.py,sha256=WzZC6r0GVSwOpphsxqpRZIdeewK_wzi3YshjLOutYGA,4524
198
- arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py,sha256=WZyRWzrLvGre_1TjWy0I8V7WfKFZJ0f_8LuZZNrzgy8,1712
198
+ arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py,sha256=4Wo-tuC2AbeCYTa5_snMJ2EkXwASCe08vXNnM5feJos,1607
199
199
  arpakitlib/_arpakit_project_template_v_5/project/operation_execution/util.py,sha256=sqHF2AU5Y5IurYHcIH2bu3-JbS1amLO3GD13Zvy8epM,923
200
200
  arpakitlib/_arpakit_project_template_v_5/project/resource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
201
201
  arpakitlib/_arpakit_project_template_v_5/project/resource/static/1,sha256=IIO7Wvjwlr2-LPSQ7Y8O35hcI6t0_s8zqITDxkYCO8I,11
@@ -413,8 +413,8 @@ arpakitlib/ar_sqlalchemy_util.py,sha256=vdhSLtSNVrWejDzR2XEfwNSXgR4QJ-IqaJryEp1a
413
413
  arpakitlib/ar_str_util.py,sha256=2lGpnXDf2h1cBZpVf5i1tX_HCv5iBd6IGnrCw4QWWlY,4350
414
414
  arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
415
415
  arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
416
- arpakitlib-1.8.190.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
417
- arpakitlib-1.8.190.dist-info/METADATA,sha256=gmlGob24vHuKGIWVqd9NHuyNymoqb6lGcyWYYTpGx28,3741
418
- arpakitlib-1.8.190.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
419
- arpakitlib-1.8.190.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
420
- arpakitlib-1.8.190.dist-info/RECORD,,
416
+ arpakitlib-1.8.192.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
417
+ arpakitlib-1.8.192.dist-info/METADATA,sha256=dvKU4KYR-HkoI-8kPYac7xphpBm_9x50Qrnnm76YnzM,3741
418
+ arpakitlib-1.8.192.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
419
+ arpakitlib-1.8.192.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
420
+ arpakitlib-1.8.192.dist-info/RECORD,,