arpakitlib 1.6.67__py3-none-any.whl → 1.6.74__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/_ar_arpakitlib_cli.py +52 -0
- arpakitlib/{_project_template → _arpakit_project_template}/README.md +1 -1
- arpakitlib/{_project_template → _arpakit_project_template}/manage/git_set_arpakit_company_origin.sh +2 -2
- arpakitlib/_arpakit_project_template/manage/poetry_add_plugin_export.sh +2 -0
- arpakitlib/_arpakit_project_template/manage/poetry_config_virtualenvs.in-project_true.sh +2 -0
- arpakitlib/_arpakit_project_template/manage/poetry_install.sh +2 -0
- arpakitlib/_arpakit_project_template/pyproject.toml +18 -0
- arpakitlib/_arpakit_project_template/src/util/__init__.py +0 -0
- arpakitlib/ar_file_util.py +6 -0
- arpakitlib/ar_parse_command.py +10 -4
- arpakitlib/ar_project_template_util.py +62 -0
- arpakitlib/ar_str_util.py +13 -1
- {arpakitlib-1.6.67.dist-info → arpakitlib-1.6.74.dist-info}/METADATA +2 -2
- {arpakitlib-1.6.67.dist-info → arpakitlib-1.6.74.dist-info}/RECORD +52 -46
- arpakitlib-1.6.74.dist-info/entry_points.txt +3 -0
- arpakitlib/_cli.py +0 -20
- arpakitlib/ar_arpakitlib_info.py +0 -13
- arpakitlib-1.6.67.dist-info/entry_points.txt +0 -3
- /arpakitlib/{_project_template → _arpakit_project_template}/.env_example +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/.gitignore +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/.python-version +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/AUTHOR.md +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/LICENSE +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/NOTICE +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/__init__.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/beutify_json.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/docker_ps.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/generate_env_example.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/git_commit.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/git_push_dev_arpakit_company_github_1.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/git_push_dev_arpakit_company_gitlab_1.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/git_remote_v.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/git_status.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/hello_world.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_check.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_clear_cache.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_generate_requirements.txt.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_lock.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_remove_and_add_arpakitlib.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_show.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_update.sh +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_update_arpakitlib.sh +0 -0
- /arpakitlib/{_project_template/resource → _arpakit_project_template/manage/src}/__init__.py +0 -0
- /arpakitlib/{_project_template/src → _arpakit_project_template/resource}/__init__.py +0 -0
- /arpakitlib/{_project_template/src/additional_model → _arpakit_project_template/src}/__init__.py +0 -0
- /arpakitlib/{_project_template/src/business_service → _arpakit_project_template/src/additional_model}/__init__.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/src/additional_model/additional_model.py +0 -0
- /arpakitlib/{_project_template/src/core → _arpakit_project_template/src/business_service}/__init__.py +0 -0
- /arpakitlib/{_project_template/src/util → _arpakit_project_template/src/core}/__init__.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/src/core/const.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/src/core/settings.py +0 -0
- /arpakitlib/{_project_template → _arpakit_project_template}/src/core/util.py +0 -0
- {arpakitlib-1.6.67.dist-info → arpakitlib-1.6.74.dist-info}/LICENSE +0 -0
- {arpakitlib-1.6.67.dist-info → arpakitlib-1.6.74.dist-info}/NOTICE +0 -0
- {arpakitlib-1.6.67.dist-info → arpakitlib-1.6.74.dist-info}/WHEEL +0 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
# arpakit
|
2
|
+
|
3
|
+
import sys
|
4
|
+
|
5
|
+
from arpakitlib.ar_need_type_util import parse_need_type, NeedTypes
|
6
|
+
from arpakitlib.ar_parse_command import parse_command
|
7
|
+
from arpakitlib.ar_project_template_util import init_arpakit_project_template
|
8
|
+
from arpakitlib.ar_str_util import raise_if_blank
|
9
|
+
|
10
|
+
|
11
|
+
def _arpakitlib_cli(*, full_command: str | None = None):
|
12
|
+
if full_command is None:
|
13
|
+
full_command = " ".join(sys.argv)
|
14
|
+
|
15
|
+
parsed_command = parse_command(text=full_command)
|
16
|
+
parsed_command.raise_for_command(needed_command="arpakitlib", lower_=True)
|
17
|
+
|
18
|
+
command = parsed_command.get_value_by_keys(keys=["command", "c"])
|
19
|
+
if command:
|
20
|
+
command = command.strip()
|
21
|
+
if not command:
|
22
|
+
raise Exception(f"not command, command={command}")
|
23
|
+
|
24
|
+
if command == "help":
|
25
|
+
print(
|
26
|
+
"Commands:"
|
27
|
+
"\n- init_arpakit_project_template"
|
28
|
+
" (project_dirpath, remove_if_exists, project_name, ignore_src_dir, ignore_manage_dir)"
|
29
|
+
)
|
30
|
+
|
31
|
+
elif command == "init_arpakit_project_template":
|
32
|
+
project_dirpath = raise_if_blank(parsed_command.get_value_by_keys(keys=["pd", "project_dirpath"]))
|
33
|
+
overwrite_if_exists: bool = parse_need_type(
|
34
|
+
value=parsed_command.get_value_by_keys(keys=["oie", "overwrite_if_exists"]),
|
35
|
+
need_type=NeedTypes.bool_
|
36
|
+
)
|
37
|
+
project_name: str = parsed_command.get_value_by_keys(keys=["pm", "project_name"])
|
38
|
+
ignore_paths_startswith: list[str] | None = parse_need_type(
|
39
|
+
value=parsed_command.get_value_by_keys(keys=["ipsw", "ignore_paths_startswith"]),
|
40
|
+
need_type=NeedTypes.list_of_str
|
41
|
+
)
|
42
|
+
init_arpakit_project_template(
|
43
|
+
project_dirpath=project_dirpath, overwrite_if_exists=overwrite_if_exists, project_name=project_name,
|
44
|
+
ignore_paths_startswith=ignore_paths_startswith
|
45
|
+
)
|
46
|
+
|
47
|
+
else:
|
48
|
+
raise Exception(f"not recognized command, command={command}")
|
49
|
+
|
50
|
+
|
51
|
+
if __name__ == '__main__':
|
52
|
+
_arpakitlib_cli(full_command="/arpakitlib -c help")
|
arpakitlib/{_project_template → _arpakit_project_template}/manage/git_set_arpakit_company_origin.sh
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
cd ..
|
2
2
|
|
3
3
|
git remote remove arpakit_company_github_1
|
4
|
-
git remote add arpakit_company_github_1 git@github.com:ARPAKIT-Company/{
|
4
|
+
git remote add arpakit_company_github_1 git@github.com:ARPAKIT-Company/{PROJECT_NAME}.git
|
5
5
|
|
6
6
|
git remote remove arpakit_company_gitlab_1
|
7
|
-
git remote add arpakit_company_gitlab_1 git@gitlab.com:ARPAKIT-Company/{
|
7
|
+
git remote add arpakit_company_gitlab_1 git@gitlab.com:ARPAKIT-Company/{PROJECT_NAME}.git
|
@@ -0,0 +1,18 @@
|
|
1
|
+
[tool.poetry]
|
2
|
+
name = "{PROJECT_NAME}"
|
3
|
+
version = "0.1.0"
|
4
|
+
description = "{PROJECT_NAME}"
|
5
|
+
authors = ["arpakit <arpakit@gmail.com>", "arpakit_support <support@arpakit.com>"]
|
6
|
+
license = "Apache License 2.0"
|
7
|
+
readme = "README.md"
|
8
|
+
keywords = ["{PROJECT_NAME}", "arpakit", "arpakit-company", "arpakitcompany", "arpakit_company"]
|
9
|
+
package-mode = false
|
10
|
+
|
11
|
+
|
12
|
+
[tool.poetry.dependencies]
|
13
|
+
python = "^3.12"
|
14
|
+
|
15
|
+
|
16
|
+
[build-system]
|
17
|
+
requires = ["poetry-core"]
|
18
|
+
build-backend = "poetry.core.masonry.api"
|
File without changes
|
arpakitlib/ar_parse_command.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# arpakit
|
2
2
|
|
3
3
|
import shlex
|
4
|
-
from typing import Optional
|
5
4
|
|
6
5
|
from pydantic import BaseModel
|
7
6
|
|
@@ -40,9 +39,15 @@ class ParsedCommand(BaseModel):
|
|
40
39
|
def values(self) -> list[str]:
|
41
40
|
return [self.key_to_value[k] for k in self.keys]
|
42
41
|
|
43
|
-
def get_value_by_key(self, key: str) ->
|
42
|
+
def get_value_by_key(self, key: str) -> str | None:
|
44
43
|
return self.key_to_value.get(key)
|
45
44
|
|
45
|
+
def get_value_by_keys(self, keys: list[str]) -> str | None:
|
46
|
+
for key in keys:
|
47
|
+
if self.key_exists(key=key):
|
48
|
+
return self.get_value_by_key(key=key)
|
49
|
+
return None
|
50
|
+
|
46
51
|
def key_exists(self, key: str) -> bool:
|
47
52
|
return key in self.key_to_value.keys()
|
48
53
|
|
@@ -55,13 +60,14 @@ class ParsedCommand(BaseModel):
|
|
55
60
|
def has_flag(self, flag: str) -> bool:
|
56
61
|
return flag in self.flags
|
57
62
|
|
58
|
-
def get_value_by_index(self, index: int) ->
|
63
|
+
def get_value_by_index(self, index: int) -> str | None:
|
59
64
|
if index >= len(self.values_without_key):
|
60
65
|
return None
|
61
66
|
return self.values_without_key[index]
|
62
67
|
|
63
68
|
|
64
69
|
def parse_command(text: str) -> ParsedCommand:
|
70
|
+
text = text.removeprefix("/")
|
65
71
|
text = " ".join([text_.strip() for text_ in text.split(" ") if text_.strip()]).strip()
|
66
72
|
|
67
73
|
parts = shlex.split(text)
|
@@ -72,7 +78,7 @@ def parse_command(text: str) -> ParsedCommand:
|
|
72
78
|
|
73
79
|
res = ParsedCommand(command=parts[0])
|
74
80
|
|
75
|
-
last_key:
|
81
|
+
last_key: str | None = None
|
76
82
|
for part in parts[1:]:
|
77
83
|
part = part.strip()
|
78
84
|
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# arpakit
|
2
|
+
|
3
|
+
import logging
|
4
|
+
import os
|
5
|
+
|
6
|
+
from arpakitlib.ar_str_util import make_none_if_blank
|
7
|
+
|
8
|
+
_ARPAKIT_LIB_MODULE_VERSION = "3.0"
|
9
|
+
|
10
|
+
_logger = logging.getLogger(__name__)
|
11
|
+
|
12
|
+
|
13
|
+
def init_arpakit_project_template(
|
14
|
+
*,
|
15
|
+
project_dirpath: str,
|
16
|
+
overwrite_if_exists: bool = False,
|
17
|
+
project_name: str | None = None,
|
18
|
+
ignore_paths_startswith: list[str] | str | None = None
|
19
|
+
):
|
20
|
+
if project_name:
|
21
|
+
project_name = project_name.strip()
|
22
|
+
project_name = make_none_if_blank(project_name)
|
23
|
+
|
24
|
+
if isinstance(ignore_paths_startswith, str):
|
25
|
+
ignore_paths_startswith = [ignore_paths_startswith]
|
26
|
+
if ignore_paths_startswith is None:
|
27
|
+
ignore_paths_startswith = []
|
28
|
+
|
29
|
+
def _generate_filepath_to_content() -> dict[str, str]:
|
30
|
+
arpakit_project_template_dirpath = os.path.abspath("_arpakit_project_template")
|
31
|
+
res = {}
|
32
|
+
for root, dirs, files in os.walk(arpakit_project_template_dirpath):
|
33
|
+
dirs[:] = [d for d in dirs if d != '__pycache__']
|
34
|
+
for file in files:
|
35
|
+
rel_path = os.path.relpath(os.path.join(root, file), arpakit_project_template_dirpath)
|
36
|
+
if any(rel_path.startswith(ignore_path) for ignore_path in ignore_paths_startswith):
|
37
|
+
_logger.info(f"Ignoring file: {rel_path}")
|
38
|
+
continue
|
39
|
+
with open(os.path.join(root, file), "r", encoding='utf-8') as _file:
|
40
|
+
_content = _file.read()
|
41
|
+
if project_name:
|
42
|
+
_content = _content.replace("{PROJECT_NAME}", project_name)
|
43
|
+
res[rel_path] = _content
|
44
|
+
return res
|
45
|
+
|
46
|
+
filepath_to_content = _generate_filepath_to_content()
|
47
|
+
|
48
|
+
if not os.path.exists(project_dirpath):
|
49
|
+
os.makedirs(project_dirpath)
|
50
|
+
|
51
|
+
for filepath, content in filepath_to_content.items():
|
52
|
+
full_filepath = os.path.join(project_dirpath, filepath)
|
53
|
+
|
54
|
+
if os.path.exists(full_filepath) and not overwrite_if_exists:
|
55
|
+
_logger.info(f"file exists and overwrite_if_exists is False, skipping: {full_filepath}")
|
56
|
+
continue
|
57
|
+
|
58
|
+
_logger.info(f"creating file: {full_filepath}")
|
59
|
+
os.makedirs(os.path.dirname(full_filepath), exist_ok=True)
|
60
|
+
with open(full_filepath, "w", encoding="utf-8") as file_:
|
61
|
+
file_.write(content)
|
62
|
+
_logger.info(f"file created: {full_filepath}")
|
arpakitlib/ar_str_util.py
CHANGED
@@ -52,12 +52,18 @@ def bidirectional_str_startswith(string1: str, string2: str, max_diff: Optional[
|
|
52
52
|
return False
|
53
53
|
|
54
54
|
|
55
|
-
def
|
55
|
+
def make_blank_if_none(string: Optional[str] = None) -> str:
|
56
56
|
if string is None:
|
57
57
|
return ""
|
58
58
|
return string
|
59
59
|
|
60
60
|
|
61
|
+
def make_none_if_blank(string: Optional[str] = None) -> str:
|
62
|
+
if not string:
|
63
|
+
return None
|
64
|
+
return string
|
65
|
+
|
66
|
+
|
61
67
|
def remove_html(string: str) -> str:
|
62
68
|
raise_for_type(string, str)
|
63
69
|
return BeautifulSoup(string, "html.parser").text
|
@@ -73,6 +79,12 @@ def remove_tags_and_html(string: str) -> str:
|
|
73
79
|
return remove_tags(remove_html(string))
|
74
80
|
|
75
81
|
|
82
|
+
def raise_if_blank(string: str) -> str:
|
83
|
+
if not string:
|
84
|
+
raise ValueError("not string")
|
85
|
+
return string
|
86
|
+
|
87
|
+
|
76
88
|
def __example():
|
77
89
|
pass
|
78
90
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: arpakitlib
|
3
|
-
Version: 1.6.
|
3
|
+
Version: 1.6.74
|
4
4
|
Summary: arpakitlib
|
5
5
|
Home-page: https://github.com/ARPAKIT-Company/arpakitlib
|
6
6
|
License: Apache-2.0
|
7
|
-
Keywords:
|
7
|
+
Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
|
8
8
|
Author: arpakit
|
9
9
|
Author-email: arpakit@gmail.com
|
10
10
|
Requires-Python: >=3.12,<4.0
|
@@ -1,46 +1,50 @@
|
|
1
1
|
arpakitlib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
arpakitlib/
|
3
|
-
arpakitlib/
|
4
|
-
arpakitlib/
|
5
|
-
arpakitlib/
|
6
|
-
arpakitlib/
|
7
|
-
arpakitlib/
|
8
|
-
arpakitlib/
|
9
|
-
arpakitlib/
|
10
|
-
arpakitlib/
|
11
|
-
arpakitlib/
|
12
|
-
arpakitlib/
|
13
|
-
arpakitlib/
|
14
|
-
arpakitlib/
|
15
|
-
arpakitlib/
|
16
|
-
arpakitlib/
|
17
|
-
arpakitlib/
|
18
|
-
arpakitlib/
|
19
|
-
arpakitlib/
|
20
|
-
arpakitlib/
|
21
|
-
arpakitlib/
|
22
|
-
arpakitlib/
|
23
|
-
arpakitlib/
|
24
|
-
arpakitlib/
|
25
|
-
arpakitlib/
|
26
|
-
arpakitlib/
|
27
|
-
arpakitlib/
|
28
|
-
arpakitlib/
|
29
|
-
arpakitlib/
|
30
|
-
arpakitlib/
|
31
|
-
arpakitlib/
|
32
|
-
arpakitlib/
|
33
|
-
arpakitlib/
|
34
|
-
arpakitlib/
|
35
|
-
arpakitlib/
|
36
|
-
arpakitlib/
|
37
|
-
arpakitlib/
|
38
|
-
arpakitlib/
|
2
|
+
arpakitlib/_ar_arpakitlib_cli.py,sha256=mXZkdO2lNVno-W6zqwBWqozYbG77lq9x4CmUnEshgnc,2007
|
3
|
+
arpakitlib/_arpakit_project_template/.env_example,sha256=IMwmQFJZKztgc-uXQz6YzplVrdFyOs7xLiEfmlLDp8c,69
|
4
|
+
arpakitlib/_arpakit_project_template/.gitignore,sha256=LVqBflpdgeidDY52su41mFA6a9hClSjNG-O0itRyLFc,496
|
5
|
+
arpakitlib/_arpakit_project_template/.python-version,sha256=XMd40XBnlTFfBSmMldd-7VdqXNyFCy6wtxhw5e1mnhc,7
|
6
|
+
arpakitlib/_arpakit_project_template/AUTHOR.md,sha256=5s2zJB3cHS_hpNBOGXfQPAfS9vuJ8BqZ6c2kNGBtfhc,65
|
7
|
+
arpakitlib/_arpakit_project_template/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
8
|
+
arpakitlib/_arpakit_project_template/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
|
9
|
+
arpakitlib/_arpakit_project_template/README.md,sha256=f59DOD3krCJHAxMfouIfG0ZWIPIAW9wB8SBH7sLSj7s,76
|
10
|
+
arpakitlib/_arpakit_project_template/manage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
+
arpakitlib/_arpakit_project_template/manage/beutify_json.py,sha256=mzmt-5piAHqgihLsqOpPx1JjDc1qA5F1XHBxDdR-BxY,215
|
12
|
+
arpakitlib/_arpakit_project_template/manage/docker_ps.sh,sha256=uwm8vHgeuNLCOn0o9hgP_uc-PUkS9FwLyzZh6ItZ3do,15
|
13
|
+
arpakitlib/_arpakit_project_template/manage/generate_env_example.py,sha256=gveKEz6zf5rwKNBXtHacPEjxxjPTbLy4n-Ztv0BqCWE,331
|
14
|
+
arpakitlib/_arpakit_project_template/manage/git_commit.sh,sha256=AW1NEel-ZHaYeVWFlRbgZSYPQdnVKsTkpR_07RQL1Mw,42
|
15
|
+
arpakitlib/_arpakit_project_template/manage/git_push_dev_arpakit_company_github_1.sh,sha256=rSxtv7pfRueHLfw-RSpFkLuQZjUtWcbyaTvexiIKvp8,81
|
16
|
+
arpakitlib/_arpakit_project_template/manage/git_push_dev_arpakit_company_gitlab_1.sh,sha256=aDoASNTbZmX-BXZpKXI1fnlsl-5pR99wUeE3wdODobk,81
|
17
|
+
arpakitlib/_arpakit_project_template/manage/git_remote_v.sh,sha256=DIcyWmY_mve_CmM1SND2gYgAGO7HaLtso3zvJfMqTRI,19
|
18
|
+
arpakitlib/_arpakit_project_template/manage/git_set_arpakit_company_origin.sh,sha256=qTi-SxgC6CfCTEAje0_XFcQ9wpuiyAZEU4MANeJjdWA,274
|
19
|
+
arpakitlib/_arpakit_project_template/manage/git_status.sh,sha256=N9JGYX5_UfCdirw4EQYzu4sS7pMLGrF4-QrTSTcpUtA,16
|
20
|
+
arpakitlib/_arpakit_project_template/manage/hello_world.py,sha256=1b1YIedAgtvBttAcKBeF03XsJ_pVKIThsr-0MYw0Uxg,83
|
21
|
+
arpakitlib/_arpakit_project_template/manage/poetry_add_plugin_export.sh,sha256=efbIvqO076HG5W3GGc5Iut9luswswqYYJ6IzzFOUABk,43
|
22
|
+
arpakitlib/_arpakit_project_template/manage/poetry_check.sh,sha256=mxkbFqw-mVlAkP_klLoXDANbIoKEu6Uj98tZ3pLKlpU,19
|
23
|
+
arpakitlib/_arpakit_project_template/manage/poetry_clear_cache.sh,sha256=5NmoMsA377JCeTMLERzE2GZywgi8mXQDTQ_yhIJtR8k,139
|
24
|
+
arpakitlib/_arpakit_project_template/manage/poetry_config_virtualenvs.in-project_true.sh,sha256=CHAGXfmyztxgimUQ4MC4IwnLzd2uZ7Da1Xvem_lw60w,47
|
25
|
+
arpakitlib/_arpakit_project_template/manage/poetry_generate_requirements.txt.sh,sha256=Df2ms0GlmAymMGqf9Bp2i3_DI61Ii1xYKf7S0By7tdw,76
|
26
|
+
arpakitlib/_arpakit_project_template/manage/poetry_install.sh,sha256=82N5l6Em507FPqY9OVJe1UN6YYvkO3mPMLbSQTUcUvY,20
|
27
|
+
arpakitlib/_arpakit_project_template/manage/poetry_lock.sh,sha256=9oiTdi8ynGQWctQjI3g4ThGkvpT07-g5ajLmG47iVh8,17
|
28
|
+
arpakitlib/_arpakit_project_template/manage/poetry_remove_and_add_arpakitlib.sh,sha256=-DvxXI-oaAQxIZFtiCfNBhqpRgJcWWuxhoHb9Nou0a4,197
|
29
|
+
arpakitlib/_arpakit_project_template/manage/poetry_show.sh,sha256=pclR9efCNrrGyJR2HrdDM4PCUFGg0OSlRtjQ3Srv8W8,24
|
30
|
+
arpakitlib/_arpakit_project_template/manage/poetry_update.sh,sha256=49tIXIzfXanbN5IIM6mkYcHRZQOlu-uHHRqVg3EWosU,31
|
31
|
+
arpakitlib/_arpakit_project_template/manage/poetry_update_arpakitlib.sh,sha256=chVSeDzTeKzwKld6h2kBx_Gd0dU2DZf0lJGlgPQtBfs,164
|
32
|
+
arpakitlib/_arpakit_project_template/manage/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
|
+
arpakitlib/_arpakit_project_template/pyproject.toml,sha256=lg2XoLCzS-ytsWE7xSKS-mgT_S6nr3jEZjP0UG0KThQ,472
|
34
|
+
arpakitlib/_arpakit_project_template/resource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
|
+
arpakitlib/_arpakit_project_template/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
|
+
arpakitlib/_arpakit_project_template/src/additional_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
+
arpakitlib/_arpakit_project_template/src/additional_model/additional_model.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
|
+
arpakitlib/_arpakit_project_template/src/business_service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
|
+
arpakitlib/_arpakit_project_template/src/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
|
+
arpakitlib/_arpakit_project_template/src/core/const.py,sha256=OWEKJUhrUdINJlPCwgMpcSZs0nNRM5caZRWfcj-nXmU,872
|
41
|
+
arpakitlib/_arpakit_project_template/src/core/settings.py,sha256=Kk0NqhWTdMqN3UguuTIPtK6lg6HNsXnJypIk2NRBPBA,883
|
42
|
+
arpakitlib/_arpakit_project_template/src/core/util.py,sha256=94v3h_bKEasd1di_CkAVSdQy4I5FxA5qkUFvtHp3tsQ,724
|
43
|
+
arpakitlib/_arpakit_project_template/src/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
44
|
arpakitlib/ar_additional_model_util.py,sha256=tNzZhZtvtJ1qC6Cn4UnyoEL58HudfpCdQy5ftkCqyik,473
|
40
45
|
arpakitlib/ar_aiogram_util.py,sha256=yOqH-Xmifw4niRtIy4EeP9xdeUA_0I-3ZrUrlE4cw_c,12508
|
41
46
|
arpakitlib/ar_arpakit_lib_module_util.py,sha256=V_mc3Ml73Tzz3arxmwEfIxruKMyrwbe8XZ9FfVDtUXY,5446
|
42
47
|
arpakitlib/ar_arpakit_schedule_uust_api_client_util.py,sha256=SYWWQDohPnw0qpBIu2hEvGZRVdaI4NUUQdEjnMnseo4,18237
|
43
|
-
arpakitlib/ar_arpakitlib_info.py,sha256=cvgrLnEznmYkCAg1adbY46ATjD6GJd-Yk8PTgOPjpKM,248
|
44
48
|
arpakitlib/ar_base64_util.py,sha256=aZkg2cZTuAaP2IWeG_LXJ6RO7qhyskVwec-Lks0iM-k,676
|
45
49
|
arpakitlib/ar_base_worker_util.py,sha256=8ruBoF9pARf3yc5duAajUOBi7Cce5KFAkp66lShRf7U,2796
|
46
50
|
arpakitlib/ar_cache_file_util.py,sha256=Fo2pH-Zqm966KWFBHG_pbiySGZvhIFCYqy7k1weRfJ0,3476
|
@@ -70,6 +74,7 @@ arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js,sha256=ffrLZHHEQ_g84A-ul3y
|
|
70
74
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js.map,sha256=9UhIW7MqCOZPAz1Sl1IKfZUuhWU0p-LJqrnjjJD9Xhc,1159454
|
71
75
|
arpakitlib/ar_fastapi_util.py,sha256=UDPaLaQECwAf_luYxSMC3wsBMebeq7U1I-fzF1g1v08,21458
|
72
76
|
arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
|
77
|
+
arpakitlib/ar_file_util.py,sha256=XiwmeycxoLqtYnGOu5q6IEaJJXilZvtLvsKDKtwqSLY,137
|
73
78
|
arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
|
74
79
|
arpakitlib/ar_hello_world.py,sha256=5B3GTgxGIFh_s6ttyB4UKn78ncyA_8blRnDT04l-ELg,158
|
75
80
|
arpakitlib/ar_http_request_util.py,sha256=hMzu2yedUvwIg6gafSakDjXUEC7WH5iplDGiRW9fgPw,3322
|
@@ -84,8 +89,9 @@ arpakitlib/ar_mongodb_util.py,sha256=2ECkTnGAZ92qxioL-fmN6R4yZOSr3bXdXLWTzT1C3vk
|
|
84
89
|
arpakitlib/ar_need_type_util.py,sha256=n2kBETxzOSVhSVoy7qUtHtuQzgrrxzgi1_iVQimPb9o,1615
|
85
90
|
arpakitlib/ar_openai_util.py,sha256=dHUbfg1sVVCjsNl_fra3iCMEz1bR-Hk9fE-DdYbu7Wc,1215
|
86
91
|
arpakitlib/ar_operation_execution_util.py,sha256=w_dz4XYEM4WbTxpBoYVkknG3U3_391cJmitgljJJTO0,12373
|
87
|
-
arpakitlib/ar_parse_command.py,sha256=
|
92
|
+
arpakitlib/ar_parse_command.py,sha256=yaaAX_ElvdRDECx3cO4UUX0CaEWRxlhunCdrOA-uP2M,3357
|
88
93
|
arpakitlib/ar_postgresql_util.py,sha256=1AuLjEaa1Lg4pzn-ukCVnDi35Eg1k91APRTqZhIJAdo,945
|
94
|
+
arpakitlib/ar_project_template_util.py,sha256=UciA86IX6rcooA6aEPSzu6AvdtJcUR5aD6wXiKVUmVU,2366
|
89
95
|
arpakitlib/ar_run_cmd_util.py,sha256=D_rPavKMmWkQtwvZFz-Io5Ak8eSODHkcFeLPzNVC68g,1072
|
90
96
|
arpakitlib/ar_schedule_uust_api_client_util.py,sha256=0X4yACjt8cxMvuoZUq4S0HuVhVUQW5fGmiPcG7vwM8Y,6027
|
91
97
|
arpakitlib/ar_settings_util.py,sha256=kJ5L2Ik-spgMjMjGZ6ZvPHv6T8dtip1sm-39HI6htvc,1214
|
@@ -93,13 +99,13 @@ arpakitlib/ar_sleep_util.py,sha256=9ZN4Qo4eZ_q3hjM7vNBQjFRcH-9-sqv3QLSjnxVJE90,1
|
|
93
99
|
arpakitlib/ar_sqlalchemy_model_util.py,sha256=ttdgOwQfoHTKqgivBtXoSbJoBCASHDjLEFK5tJ9kNNE,4779
|
94
100
|
arpakitlib/ar_sqlalchemy_util.py,sha256=3wejwPbH5VsTZAWvJQ4qQ8tda-PWBmqVThwRyKnyGqo,4153
|
95
101
|
arpakitlib/ar_ssh_util.py,sha256=jlnss4V4pziBN1rBzoK_lDiWm6nMOqGXfa6NFJSKH-Y,6796
|
96
|
-
arpakitlib/ar_str_util.py,sha256=
|
102
|
+
arpakitlib/ar_str_util.py,sha256=AhcdrEm-pXRilCaDWCdTfVkQSy0SnbE52ur43Ltr6cI,2128
|
97
103
|
arpakitlib/ar_type_util.py,sha256=5nDnXL5Oyozlg8XvxMrogsoYiG8_atItg46A0mtv-pk,2025
|
98
104
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=5GMvu8paByni8buhc1vpHB7n6oXe0gPfj1LSvnyZCrQ,5307
|
99
105
|
arpakitlib/ar_zabbix_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
100
|
-
arpakitlib-1.6.
|
101
|
-
arpakitlib-1.6.
|
102
|
-
arpakitlib-1.6.
|
103
|
-
arpakitlib-1.6.
|
104
|
-
arpakitlib-1.6.
|
105
|
-
arpakitlib-1.6.
|
106
|
+
arpakitlib-1.6.74.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
107
|
+
arpakitlib-1.6.74.dist-info/METADATA,sha256=fw6DHWUim00Ld19GH241xZjmAwLhdchmp4aXOtcLIKw,2665
|
108
|
+
arpakitlib-1.6.74.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
|
109
|
+
arpakitlib-1.6.74.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
110
|
+
arpakitlib-1.6.74.dist-info/entry_points.txt,sha256=RybYAcp2JEzQ3o5n9uFS4Ul3IKDx4Iojp63Wp6nbj04,76
|
111
|
+
arpakitlib-1.6.74.dist-info/RECORD,,
|
arpakitlib/_cli.py
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# arpakit
|
2
|
-
|
3
|
-
import sys
|
4
|
-
|
5
|
-
from arpakitlib.ar_parse_command import parse_command
|
6
|
-
|
7
|
-
|
8
|
-
def _cli():
|
9
|
-
parsed_command = parse_command(text=" ".join(sys.argv))
|
10
|
-
parsed_command.raise_for_command(needed_command="arpakitlib", lower_=True)
|
11
|
-
|
12
|
-
print(parsed_command)
|
13
|
-
|
14
|
-
|
15
|
-
def __example():
|
16
|
-
_cli()
|
17
|
-
|
18
|
-
|
19
|
-
if __name__ == '__main__':
|
20
|
-
__example()
|
arpakitlib/ar_arpakitlib_info.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/arpakitlib/{_project_template → _arpakit_project_template}/manage/poetry_update_arpakitlib.sh
RENAMED
File without changes
|
File without changes
|
File without changes
|
/arpakitlib/{_project_template/src/additional_model → _arpakit_project_template/src}/__init__.py
RENAMED
File without changes
|
File without changes
|
/arpakitlib/{_project_template → _arpakit_project_template}/src/additional_model/additional_model.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|