arpakitlib 1.8.7__py3-none-any.whl → 1.8.8__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.
@@ -30,8 +30,10 @@ class SimpleDBM(BaseDBM):
30
30
  index=True, sort_order=-10, nullable=False
31
31
  )
32
32
 
33
- def __repr__(self):
34
- return f"{self.__class__.__name__.removesuffix('DBM')} (id={self.id})"
33
+ def __repr__(self) -> str:
34
+ if self.slug is None:
35
+ return f"{self.__class__.__name__.removesuffix('DBM')} (id={self.id})"
36
+ return f"{self.__class__.__name__.removesuffix('DBM')} (id={self.id}, slug={self.slug})"
35
37
 
36
38
 
37
39
  class StoryLogDBM(SimpleDBM):
@@ -3,7 +3,7 @@ from uuid import uuid4
3
3
  from arpakitlib.ar_datetime_util import now_utc_dt
4
4
 
5
5
 
6
- def generate_api_key() -> str:
6
+ def generate_default_api_key() -> str:
7
7
  return (
8
8
  f"apikey"
9
9
  f"{str(uuid4()).replace('-', '')}"
@@ -20,7 +20,7 @@ def generate_default_long_id():
20
20
 
21
21
 
22
22
  def __example():
23
- print(generate_api_key())
23
+ print(generate_default_api_key())
24
24
  print(generate_default_long_id())
25
25
 
26
26
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.8.7
3
+ Version: 1.8.8
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -169,8 +169,8 @@ arpakitlib/_arpakit_project_template_v_2/project/sqladmin_/model_view.py,sha256=
169
169
  arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
170
170
  arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/const.py,sha256=dcvj5C9E2F2KCsGZPBBncQf_EvVJAC1qQgnyD8P4ZEw,6
171
171
  arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/sqlalchemy_db.py,sha256=9J2ne0pYh9NajXrNllsJ3LLGALi4Cgywe5SZFLPPSng,754
172
- arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/sqlalchemy_model.py,sha256=B19iftlxkbu3i5xm4hNzlc4w0uQbiKBLZFwPcXkbzlc,4727
173
- arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/util.py,sha256=rr-wYqK898FcLwg6Oa9j9lYfvBPs4ujKiY0rRTfwLqg,554
172
+ arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/sqlalchemy_model.py,sha256=Yl9RJfPQylaRPYplnDPykAQKhtuuZ52I0s3c9xknGoQ,4865
173
+ arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/util.py,sha256=QSA_nT6aWdtE412-Uj3VTd7yh3dzS4HugDK9FivjTPo,570
174
174
  arpakitlib/_arpakit_project_template_v_2/project/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
175
175
  arpakitlib/_arpakit_project_template_v_2/project/test_data/make_test_data_1.py,sha256=yRKf6HYZ2do2g7tAUB172nHA_u-yS9cyHhbinahc7sc,285
176
176
  arpakitlib/_arpakit_project_template_v_2/project/test_data/make_test_data_2.py,sha256=tBhhXKKlSUh_fEYoOvGRuBKUJxPentya1h_6lcd-hk0,285
@@ -254,8 +254,8 @@ arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,40
254
254
  arpakitlib/ar_wata_api_client.py,sha256=gdHOqDbuqxhTjVDtRW1DvkRJLdDofCrOq51GTctzLns,242
255
255
  arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
256
256
  arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
257
- arpakitlib-1.8.7.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
258
- arpakitlib-1.8.7.dist-info/METADATA,sha256=j60_ga9UK8VYn800MJy1Bo70xLHYpgJT2_dqNV-Vyic,3316
259
- arpakitlib-1.8.7.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
260
- arpakitlib-1.8.7.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
261
- arpakitlib-1.8.7.dist-info/RECORD,,
257
+ arpakitlib-1.8.8.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
258
+ arpakitlib-1.8.8.dist-info/METADATA,sha256=YC4Q12Y1a4Q5aAdL6LxFAht-cDDuiaBeBnYsEWShj5o,3316
259
+ arpakitlib-1.8.8.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
260
+ arpakitlib-1.8.8.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
261
+ arpakitlib-1.8.8.dist-info/RECORD,,