arpakitlib 1.8.6__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.
- arpakitlib/_arpakit_project_template_v_2/README.md +1 -0
- arpakitlib/_arpakit_project_template_v_2/alembic/versions/__init__.py +0 -0
- arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/sqlalchemy_model.py +4 -2
- arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/util.py +2 -2
- {arpakitlib-1.8.6.dist-info → arpakitlib-1.8.8.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.6.dist-info → arpakitlib-1.8.8.dist-info}/RECORD +9 -8
- {arpakitlib-1.8.6.dist-info → arpakitlib-1.8.8.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.6.dist-info → arpakitlib-1.8.8.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.6.dist-info → arpakitlib-1.8.8.dist-info}/entry_points.txt +0 -0
File without changes
|
@@ -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
|
-
|
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
|
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(
|
23
|
+
print(generate_default_api_key())
|
24
24
|
print(generate_default_long_id())
|
25
25
|
|
26
26
|
|
@@ -2,10 +2,11 @@ arpakitlib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
arpakitlib/_arpakit_project_template_v_2/.gitignore,sha256=BItFW9CofJiiKw3vEGSM2ZuK0d0wKQgxisMn-THIb7I,603
|
3
3
|
arpakitlib/_arpakit_project_template_v_2/.python-version,sha256=XMd40XBnlTFfBSmMldd-7VdqXNyFCy6wtxhw5e1mnhc,7
|
4
4
|
arpakitlib/_arpakit_project_template_v_2/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
5
|
-
arpakitlib/_arpakit_project_template_v_2/README.md,sha256=
|
5
|
+
arpakitlib/_arpakit_project_template_v_2/README.md,sha256=1RDDTgZ0Jn048KawBU9unI8zY3xMfH09FyuuydhDFWw,73
|
6
6
|
arpakitlib/_arpakit_project_template_v_2/alembic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
7
7
|
arpakitlib/_arpakit_project_template_v_2/alembic/env.py,sha256=nixwh3fLCGE-1E_DMv06GY3rsQ5b1WPcTMMgNxo3ACk,2465
|
8
8
|
arpakitlib/_arpakit_project_template_v_2/alembic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
9
|
+
arpakitlib/_arpakit_project_template_v_2/alembic/versions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
10
|
arpakitlib/_arpakit_project_template_v_2/alembic.ini,sha256=8fuyeEvGBiPGbxEFy8ISBV3xX_fgVmuhEGpB10_B5Uo,3733
|
10
11
|
arpakitlib/_arpakit_project_template_v_2/arpakitlib_project_template_info.json,sha256=hc1BqLUMjtbGzTXksqqVA3GkeW1CtiBGLz1Zgd8p8Rc,48
|
11
12
|
arpakitlib/_arpakit_project_template_v_2/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -168,8 +169,8 @@ arpakitlib/_arpakit_project_template_v_2/project/sqladmin_/model_view.py,sha256=
|
|
168
169
|
arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
169
170
|
arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/const.py,sha256=dcvj5C9E2F2KCsGZPBBncQf_EvVJAC1qQgnyD8P4ZEw,6
|
170
171
|
arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/sqlalchemy_db.py,sha256=9J2ne0pYh9NajXrNllsJ3LLGALi4Cgywe5SZFLPPSng,754
|
171
|
-
arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/sqlalchemy_model.py,sha256=
|
172
|
-
arpakitlib/_arpakit_project_template_v_2/project/sqlalchemy_db_/util.py,sha256=
|
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
|
173
174
|
arpakitlib/_arpakit_project_template_v_2/project/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
174
175
|
arpakitlib/_arpakit_project_template_v_2/project/test_data/make_test_data_1.py,sha256=yRKf6HYZ2do2g7tAUB172nHA_u-yS9cyHhbinahc7sc,285
|
175
176
|
arpakitlib/_arpakit_project_template_v_2/project/test_data/make_test_data_2.py,sha256=tBhhXKKlSUh_fEYoOvGRuBKUJxPentya1h_6lcd-hk0,285
|
@@ -253,8 +254,8 @@ arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,40
|
|
253
254
|
arpakitlib/ar_wata_api_client.py,sha256=gdHOqDbuqxhTjVDtRW1DvkRJLdDofCrOq51GTctzLns,242
|
254
255
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
|
255
256
|
arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
256
|
-
arpakitlib-1.8.
|
257
|
-
arpakitlib-1.8.
|
258
|
-
arpakitlib-1.8.
|
259
|
-
arpakitlib-1.8.
|
260
|
-
arpakitlib-1.8.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|