arpakitlib 1.8.245__py3-none-any.whl → 1.8.247__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_5/arpakitlib_project_template_info.json +1 -1
- arpakitlib/_arpakit_project_template_v_5/command/alembic_history_verbose.sh +2 -0
- arpakitlib/_arpakit_project_template_v_5/command/ensure_sqlalchemy_check_constraints.py +11 -0
- arpakitlib/generate_simple_code.py +17 -0
- {arpakitlib-1.8.245.dist-info → arpakitlib-1.8.247.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.245.dist-info → arpakitlib-1.8.247.dist-info}/RECORD +9 -6
- {arpakitlib-1.8.245.dist-info → arpakitlib-1.8.247.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.245.dist-info → arpakitlib-1.8.247.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.245.dist-info → arpakitlib-1.8.247.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
from arpakitlib.ensure_sqlalchemy_check_constraints import ensure_sqlalchemy_check_constraints
|
2
|
+
from project.core.setup_logging import setup_logging
|
3
|
+
|
4
|
+
|
5
|
+
def __command():
|
6
|
+
setup_logging()
|
7
|
+
ensure_sqlalchemy_check_constraints()
|
8
|
+
|
9
|
+
|
10
|
+
if __name__ == '__main__':
|
11
|
+
__command()
|
@@ -0,0 +1,17 @@
|
|
1
|
+
from random import randint
|
2
|
+
|
3
|
+
|
4
|
+
def generate_simple_code(
|
5
|
+
*,
|
6
|
+
amount: int = 5
|
7
|
+
) -> str:
|
8
|
+
alphabet: list = list("JZSDQWRLGFZ" + "123456789")
|
9
|
+
return "".join(alphabet[randint(0, len(alphabet) - 1)] for _ in range(amount))
|
10
|
+
|
11
|
+
|
12
|
+
def __example():
|
13
|
+
print(generate_simple_code(amount=5))
|
14
|
+
|
15
|
+
|
16
|
+
if __name__ == '__main__':
|
17
|
+
__example()
|
@@ -8,9 +8,10 @@ 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=
|
11
|
+
arpakitlib/_arpakit_project_template_v_5/arpakitlib_project_template_info.json,sha256=UoKetK4zTpBysXy0mTDYjsHSOoPgzgYDeIuecYG27ZU,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
|
+
arpakitlib/_arpakit_project_template_v_5/command/alembic_history_verbose.sh,sha256=ovY9AxLbNC6oMfsvHIm0mMbEcNBBZmCeZAc1mremUhM,32
|
14
15
|
arpakitlib/_arpakit_project_template_v_5/command/alembic_revision_autogenerate.sh,sha256=yW2i-SBOtBx15Ya0poVQqKkJM5t2JZp06r9AEW-DmGE,46
|
15
16
|
arpakitlib/_arpakit_project_template_v_5/command/alembic_upgrade_head.sh,sha256=RIkhv5e5ERZHoxmTvvo_nCeDeVqeVIam7CjVoE9_E4k,38
|
16
17
|
arpakitlib/_arpakit_project_template_v_5/command/beautify_json.py,sha256=oyxkT3wGqCwGNgwGHW-gPLJd063V8-SXA5OXkszAE2g,215
|
@@ -25,6 +26,7 @@ arpakitlib/_arpakit_project_template_v_5/command/docker_stop_postgres.sh,sha256=
|
|
25
26
|
arpakitlib/_arpakit_project_template_v_5/command/drop_json_db.py,sha256=TjdM4kW6F4BBa07PoJmXgA5HX-vqoqK2oT-aAB4nF7s,325
|
26
27
|
arpakitlib/_arpakit_project_template_v_5/command/drop_sqlalchemy_db.py,sha256=U4eG5w9At8bTcU8PzB6GfZhxox836CRPWODXqgx4HOU,455
|
27
28
|
arpakitlib/_arpakit_project_template_v_5/command/emojize.py,sha256=RpIBA60HXqHvWGrB8pFGJ5glpI4tWfPGkw9QRy32YLg,134
|
29
|
+
arpakitlib/_arpakit_project_template_v_5/command/ensure_sqlalchemy_check_constraints.py,sha256=22qTo33waXGGqKBa6qePNZAJmsVXHY1PLmam6FeWC4w,274
|
28
30
|
arpakitlib/_arpakit_project_template_v_5/command/generate_settings_env_example.py,sha256=v05NKSG-hFZyFiMfV6n8uObv-1qoS59UdztSsq4lF1c,437
|
29
31
|
arpakitlib/_arpakit_project_template_v_5/command/git_commit.sh,sha256=AW1NEel-ZHaYeVWFlRbgZSYPQdnVKsTkpR_07RQL1Mw,42
|
30
32
|
arpakitlib/_arpakit_project_template_v_5/command/git_push_arpakit_company_github_1.sh,sha256=Sx-OegryHeNTIfAOoCfj3Z3CF-XKEY0AJF5HVJAgGpU,70
|
@@ -422,11 +424,12 @@ arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,40
|
|
422
424
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
|
423
425
|
arpakitlib/clone_pydantic_model_fields.py,sha256=xxLwtvJzDf8EWMvBE4psWIj8c-cyeCxLRX76oCY_4zk,1214
|
424
426
|
arpakitlib/ensure_sqlalchemy_check_constraints.py,sha256=JJbgaUiLT8D8oDVevP25wlMz1BTtx0JMasJ_ILyIJ3o,5328
|
427
|
+
arpakitlib/generate_simple_code.py,sha256=EkrebrTi7sArSRAuxvN5BPm_A0-dFSCZgdoJhx5kPhk,344
|
425
428
|
arpakitlib/pydantic_schema_from_sqlalchemy_model.py,sha256=_5Y79kQ4lLIOL6_afIFVwxY1EXzTMpi-veRR-WkPFOs,2879
|
426
429
|
arpakitlib/raise_own_exception_if_exception.py,sha256=A6TuNSBk1pHaQ_qxnUmE2LgsNGA1IGqX26b1_HEA4Nc,5978
|
427
430
|
arpakitlib/really_validate_email.py,sha256=HBfhyiDB3INI6Iq6hR2WOMKA5wVWWRl0Qun-x__OZ9o,1201
|
428
|
-
arpakitlib-1.8.
|
429
|
-
arpakitlib-1.8.
|
430
|
-
arpakitlib-1.8.
|
431
|
-
arpakitlib-1.8.
|
432
|
-
arpakitlib-1.8.
|
431
|
+
arpakitlib-1.8.247.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
432
|
+
arpakitlib-1.8.247.dist-info/METADATA,sha256=KuLLYzqCtHcPmC0q2RAay2FSjtC6ZVtvQ7OlJC7Rc-Q,3919
|
433
|
+
arpakitlib-1.8.247.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
434
|
+
arpakitlib-1.8.247.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
435
|
+
arpakitlib-1.8.247.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|