arpakitlib 1.7.105__py3-none-any.whl → 1.7.106__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,14 +1,16 @@
1
+ from sqlalchemy.orm import Session
2
+
1
3
  from arpakitlib.ar_operation_execution_util import BaseOperationExecutor
2
4
  from arpakitlib.ar_sqlalchemy_model_util import OperationDBM
3
5
 
4
6
 
5
7
  class OperationExecutor(BaseOperationExecutor):
6
- def sync_execute_operation(self, operation_dbm: OperationDBM) -> OperationDBM:
8
+ def sync_execute_operation(self, operation_dbm: OperationDBM, session: Session) -> OperationDBM:
7
9
  # ...
8
- operation_dbm = super().sync_execute_operation(operation_dbm=operation_dbm)
10
+ operation_dbm = super().sync_execute_operation(operation_dbm=operation_dbm, session=session)
9
11
  return operation_dbm
10
12
 
11
- async def async_execute_operation(self, operation_dbm: OperationDBM) -> OperationDBM:
13
+ async def async_execute_operation(self, operation_dbm: OperationDBM, session: Session) -> OperationDBM:
12
14
  # ...
13
- operation_dbm = await super().async_execute_operation(operation_dbm=operation_dbm)
15
+ operation_dbm = await super().async_execute_operation(operation_dbm=operation_dbm, session=session)
14
16
  return operation_dbm
@@ -9,9 +9,7 @@ def create_scheduled_operation_creator_worker() -> ScheduledOperationCreatorWork
9
9
  from src.operation_execution.scheduled_operations import ALL_SCHEDULED_OPERATIONS
10
10
  scheduled_operation_creator_worker = ScheduledOperationCreatorWorker(
11
11
  sqlalchemy_db=get_cached_sqlalchemy_db(),
12
- scheduled_operations=ALL_SCHEDULED_OPERATIONS,
13
- timeout_after_run=timedelta(seconds=0.1).total_seconds(),
14
- timeout_after_err_in_run=timedelta(seconds=1).total_seconds()
12
+ scheduled_operations=ALL_SCHEDULED_OPERATIONS
15
13
  )
16
14
  return scheduled_operation_creator_worker
17
15
 
@@ -33,7 +33,7 @@ class SimpleSettings(BaseSettings):
33
33
  @field_validator("mode_type")
34
34
  @classmethod
35
35
  def validate_mode_type(cls, v: str):
36
- cls.ModeTypes.parse_and_validate_values(v)
36
+ cls.ModeTypes.parse_and_validate_values(v.lower().strip())
37
37
  return v
38
38
 
39
39
  @property
@@ -1,21 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arpakitlib
3
- Version: 1.7.105
3
+ Version: 1.7.106
4
4
  Summary: arpakitlib
5
5
  Home-page: https://github.com/ARPAKIT-Company/arpakitlib
6
6
  License: Apache-2.0
7
7
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
8
8
  Author: arpakit
9
9
  Author-email: arpakit@gmail.com
10
- Requires-Python: >=3.12,<4.0
10
+ Requires-Python: >=3.12.4,<4.0
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: License :: OSI Approved :: Apache Software License
14
14
  Classifier: Operating System :: OS Independent
15
15
  Classifier: Programming Language :: Python
16
16
  Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.12
18
17
  Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Topic :: Software Development :: Libraries
20
20
  Requires-Dist: aiogram (>=3.15.0,<4.0.0)
21
21
  Requires-Dist: aiohttp-socks (>=0.9.1,<0.10.0)
@@ -105,11 +105,11 @@ arpakitlib/_arpakit_project_template/src/db/sqlalchemy_model.py,sha256=nXtayUkBa
105
105
  arpakitlib/_arpakit_project_template/src/db/util.py,sha256=8Jg9TtTwvyxVYIN_W5_lk9y-Pyh8To1aMRFUKCRDuuA,550
106
106
  arpakitlib/_arpakit_project_template/src/operation_execution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  arpakitlib/_arpakit_project_template/src/operation_execution/const.py,sha256=HjupGEDUWVijQlbzxZPI9vBbAVOETUYzYU9pdnc9IcI,176
108
- arpakitlib/_arpakit_project_template/src/operation_execution/operation_executor.py,sha256=5sZpn3tVxnmcuIVRD5sbBhiMY5SAqPCc4tHzoNzDe4c,619
108
+ arpakitlib/_arpakit_project_template/src/operation_execution/operation_executor.py,sha256=TuAlF3QPJq-Zsq693NHQ00dvCWAzuwce2q6ozesWFYY,725
109
109
  arpakitlib/_arpakit_project_template/src/operation_execution/scheduled_operations.py,sha256=hBPZIOJAX7ym54s2tJ2QRky15FqqDF9r4yTr8Nh2YqI,985
110
110
  arpakitlib/_arpakit_project_template/src/operation_execution/start_operation_executor_worker_for_dev.py,sha256=uC9KxA3n9ul4YVg2bD4626ikUIv_kLc6TqyUQV_tWtc,626
111
111
  arpakitlib/_arpakit_project_template/src/operation_execution/start_scheduled_operation_creator_worker_for_dev.py,sha256=qZFXZqdrL_vMSeajwhVFZrWhAlyU9G1PjKYMMgZn4sA,597
112
- arpakitlib/_arpakit_project_template/src/operation_execution/util.py,sha256=wEplkGcSCA9PV2-BgUNHRpuZnaC6z4FouyzVT-UFm48,886
112
+ arpakitlib/_arpakit_project_template/src/operation_execution/util.py,sha256=WfpeiHS-L6xTIoYI63Xw9mrADTgFJQlt4fG0U4wNAt4,749
113
113
  arpakitlib/_arpakit_project_template/src/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
114
114
  arpakitlib/_arpakit_project_template/src/test_data/make_test_data_1.py,sha256=3WVPgRsNCIxWpA-6t_Phe-nFULdHPhS1S_DO11XRmqk,80
115
115
  arpakitlib/_arpakit_project_template/src/test_data/make_test_data_2.py,sha256=MVDc71sj5I1muWin50GwrSxMwYtOOSDOtRmeFErHcXs,80
@@ -174,7 +174,7 @@ arpakitlib/ar_parse_command.py,sha256=-s61xcATIsfw1eV_iD3xi-grsitbGzSDoAFc5V0OFy
174
174
  arpakitlib/ar_postgresql_util.py,sha256=1AuLjEaa1Lg4pzn-ukCVnDi35Eg1k91APRTqZhIJAdo,945
175
175
  arpakitlib/ar_run_cmd_util.py,sha256=D_rPavKMmWkQtwvZFz-Io5Ak8eSODHkcFeLPzNVC68g,1072
176
176
  arpakitlib/ar_schedule_uust_api_client_util.py,sha256=0Ns0mMEXYEkVmP6YTAXHyNcrhNsvCJ8X-G_5XwILhJ4,6855
177
- arpakitlib/ar_settings_util.py,sha256=EFRh5WrB_iaqwxy0rGAtnyGtA6JkNCan-Y_Y6XWb4UY,1583
177
+ arpakitlib/ar_settings_util.py,sha256=eZhZ-zwSataBC07dKp0A5TAOb-RnrzZNHaIx16O6Fv8,1599
178
178
  arpakitlib/ar_sleep_util.py,sha256=OaLtRaJQWMkGjfj_mW1RB2P4RaSWsAIH8LUoXqsH0zM,1061
179
179
  arpakitlib/ar_sqlalchemy_model_util.py,sha256=nKJGN32eg3Gn5kmJwHdVJznPT5TydLsfUfwJGdypdUo,6264
180
180
  arpakitlib/ar_sqlalchemy_util.py,sha256=Hcg1THrDsSR_-8dsY1CG3NWPEv0FqCbkPXFXLtjlSJ0,4207
@@ -183,9 +183,9 @@ arpakitlib/ar_str_util.py,sha256=tFoGSDYoGpfdVHWor5Li9pEOFmDFlHkX-Z8iOy1LK7Y,353
183
183
  arpakitlib/ar_type_util.py,sha256=7eqhkRcRpTIsIP_9EvnU-WoySLt1o1Ro88-5ZJui600,3719
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.105.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
187
- arpakitlib-1.7.105.dist-info/METADATA,sha256=D5IJfRiZhi5JdIZ22aW6at2YKBKLpyw59nD5433YF-k,3140
188
- arpakitlib-1.7.105.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
189
- arpakitlib-1.7.105.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
190
- arpakitlib-1.7.105.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
191
- arpakitlib-1.7.105.dist-info/RECORD,,
186
+ arpakitlib-1.7.106.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
187
+ arpakitlib-1.7.106.dist-info/METADATA,sha256=sdsXzQDEJhpTe69aCeJKLVBc3slMeSOGDIsFF41Gm9E,3142
188
+ arpakitlib-1.7.106.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
189
+ arpakitlib-1.7.106.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
190
+ arpakitlib-1.7.106.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
191
+ arpakitlib-1.7.106.dist-info/RECORD,,