arpakitlib 1.8.67__py3-none-any.whl → 1.8.68__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,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import fastapi.requests
2
4
  from fastapi import APIRouter
3
5
 
@@ -13,13 +15,11 @@ class _UserToken1ClientSO(UserToken1ClientSO):
13
15
  user: User1ClientSO
14
16
 
15
17
  @classmethod
16
- def from_dbm(cls, *, simple_dbm: UserTokenDBM) -> UserToken1ClientSO:
18
+ def from_dbm(cls, *, simple_dbm: UserTokenDBM, **kwargs) -> _UserToken1ClientSO:
17
19
  simple_dict = simple_dbm.simple_dict(
18
20
  include_columns_and_sd_properties=cls.model_fields.keys(),
19
21
  kwargs={
20
- "user": simple_dbm.user.simple_dict(
21
- include_columns_and_sd_properties=User1ClientSO.model_fields.keys()
22
- )
22
+ "user": User1ClientSO.from_dbm(simple_dbm=simple_dbm.user)
23
23
  }
24
24
  )
25
25
  return cls.model_validate(simple_dict)
@@ -37,7 +37,7 @@ def make_test_data_1():
37
37
  _logger.info(arpakit_user)
38
38
 
39
39
  for i in range(1000):
40
- user_token_dbm = UserTokenDBM(user_id=arpakit_user.id)
40
+ user_token_dbm = UserTokenDBM(user_id=arpakit_user.id, value=str(i))
41
41
  session.add(user_token_dbm)
42
42
  _logger.info(user_token_dbm)
43
43
  session.commit()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.8.67
3
+ Version: 1.8.68
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -114,7 +114,7 @@ arpakitlib/_arpakit_project_template_v_5/project/api/router/admin/raise_fake_err
114
114
  arpakitlib/_arpakit_project_template_v_5/project/api/router/admin/reinit_sqlalchemy_db.py,sha256=CdTXbkkl0IWa-tAFSwc5dq-rx0u1EBhOAlwbat5mPOU,1325
115
115
  arpakitlib/_arpakit_project_template_v_5/project/api/router/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
116
  arpakitlib/_arpakit_project_template_v_5/project/api/router/client/get_current_user.py,sha256=5cT2Z2tK0Hld6a9Aev2vxe-LpVS3sc_Zq0CZduJ-3qE,1217
117
- arpakitlib/_arpakit_project_template_v_5/project/api/router/client/get_current_user_token.py,sha256=fJbdpezvsmWb44-4iDMDIFQpz44EAWW2wRZ1w78fO1Y,1814
117
+ arpakitlib/_arpakit_project_template_v_5/project/api/router/client/get_current_user_token.py,sha256=9_kV6U2iKXy1oqUOHrQNlQXu75M-PN3V61xmGKS00RI,1777
118
118
  arpakitlib/_arpakit_project_template_v_5/project/api/router/client/main_router.py,sha256=IIy6VxG5xPR4ZjGaMwDM59izMIMoFxjqVmAvh-Fq330,386
119
119
  arpakitlib/_arpakit_project_template_v_5/project/api/router/general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
120
120
  arpakitlib/_arpakit_project_template_v_5/project/api/router/general/check_authorization.py,sha256=NUQK4KI0XpwzPEGjgQMxU43ZaTm-dEXrmU1BMIFcA3k,1853
@@ -245,7 +245,7 @@ arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model
245
245
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
246
246
  arpakitlib/_arpakit_project_template_v_5/project/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
247
247
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_api_keys.py,sha256=9F2bMfymaqx_Czh_tF945BKpKqNrVNjSIfCQl13Dkxw,911
248
- arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_1.py,sha256=UoGSmEMmgEw57maYGRotiiH6vaYfk3PH4SW0D7bDqLw,1530
248
+ arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_1.py,sha256=z8Ok1WaKxC3fZ5TmaJCTS5lvOW1RZPZ1PGq07-gT1Yg,1544
249
249
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_2.py,sha256=VcCvxRLA0XnLaQcsaoZkIVV8rTO3uMyLTYoEsdxKtYE,416
250
250
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_3.py,sha256=9QJTgM4qsJXPgFhfVueQ9vObXr_dAldzP_p8dPO42uA,416
251
251
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_4.py,sha256=OyU9601WACF7cCpPT33x6CpizNJeQIPDDFezIvEO01A,416
@@ -373,8 +373,8 @@ arpakitlib/ar_str_util.py,sha256=NisRtt4xwE7qthkkXzL49jvGKMGlvJ4KKcvpQfmRlIw,441
373
373
  arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
374
374
  arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
375
375
  arpakitlib/ar_zabbix_api_client_util.py,sha256=oHNS-2WckQxp7cVqsRne9JgkP9I7RQGBKVKZSMLN8zw,9427
376
- arpakitlib-1.8.67.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
377
- arpakitlib-1.8.67.dist-info/METADATA,sha256=6QbRtn4HicTjo8U6rdjyo1ZKGwBbd7sNQ0LBI_1JpJs,3475
378
- arpakitlib-1.8.67.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
379
- arpakitlib-1.8.67.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
380
- arpakitlib-1.8.67.dist-info/RECORD,,
376
+ arpakitlib-1.8.68.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
377
+ arpakitlib-1.8.68.dist-info/METADATA,sha256=ZT8kJF0pQ8evlfB6-ClU5jmowdYK_7kzCD7dQ_lMCzw,3475
378
+ arpakitlib-1.8.68.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
379
+ arpakitlib-1.8.68.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
380
+ arpakitlib-1.8.68.dist-info/RECORD,,