arpakitlib 1.7.116__py3-none-any.whl → 1.7.118__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,18 +1,23 @@
1
- [tool.poetry]
1
+ [project]
2
2
  name = "{PROJECT_NAME}"
3
3
  version = "0.1.0"
4
4
  description = "{PROJECT_NAME}"
5
- authors = ["arpakit <arpakit@gmail.com>", "arpakitsupport <support@arpakit.com>"]
5
+ authors = [
6
+ { name = "arpakit", email = "arpakit@gmail.com" },
7
+ { name = "arpakit_support", email = "support@arpakit.com" }
8
+ ]
6
9
  license = "Apache License 2.0"
7
10
  readme = "README.md"
8
11
  keywords = ["{PROJECT_NAME}", "arpakitlib", "arpakit", "arpakit-company", "arpakitcompany", "arpakit_company"]
9
- package-mode = false
12
+ requires-python = ">=3.12.4,<4.0"
13
+ dependencies = [
14
+ ]
10
15
 
11
16
 
12
- [tool.poetry.dependencies]
13
- python = "^3.12"
17
+ [tool.poetry]
18
+ package-mode = false
14
19
 
15
20
 
16
21
  [build-system]
17
- requires = ["poetry-core"]
22
+ requires = ["poetry-core>=2.0.0,<3.0.0"]
18
23
  build-backend = "poetry.core.masonry.api"
arpakitlib/ar_str_util.py CHANGED
@@ -87,35 +87,35 @@ def raise_if_string_blank(string: str) -> str:
87
87
 
88
88
  def __example():
89
89
  print("str_in:")
90
- print(str_in(string="hello", main_string="hello world")) # True
91
- print(str_in(string="bye", main_string="hello world")) # False
92
- print(str_in(string="hello", main_string="hello world", max_diff=6)) # True
93
- print(str_in(string="hello", main_string="hello world", max_diff=1)) # False
90
+ print(str_in(string="hello", main_string="hello world"))
91
+ print(str_in(string="bye", main_string="hello world"))
92
+ print(str_in(string="hello", main_string="hello world", max_diff=6))
93
+ print(str_in(string="hello", main_string="hello world", max_diff=1))
94
94
 
95
95
  print("\nbidirectional_str_in:")
96
- print(bidirectional_str_in(string1="hello", string2="hello world")) # True
97
- print(bidirectional_str_in(string1="world", string2="hello world")) # True
96
+ print(bidirectional_str_in(string1="hello", string2="hello world"))
97
+ print(bidirectional_str_in(string1="world", string2="hello world"))
98
98
 
99
99
  print("\nstr_startswith:")
100
- print(str_startswith(string="hello", main_string="hello world")) # True
101
- print(str_startswith(string="world", main_string="hello world")) # False
100
+ print(str_startswith(string="hello", main_string="hello world"))
101
+ print(str_startswith(string="world", main_string="hello world"))
102
102
 
103
103
  print("\nbidirectional_str_startswith:")
104
- print(bidirectional_str_startswith(string1="hello", string2="hello world")) # True
105
- print(bidirectional_str_startswith(string1="world", string2="hello world")) # False
104
+ print(bidirectional_str_startswith(string1="hello", string2="hello world"))
105
+ print(bidirectional_str_startswith(string1="world", string2="hello world"))
106
106
 
107
107
  print("\nmake blank_if_none:")
108
- print(make_blank_if_none()) # ""
109
- print(make_blank_if_none(string="test")) # "test"
108
+ print(make_blank_if_none())
109
+ print(make_blank_if_none(string="test"))
110
110
 
111
111
  print("\nremove_html:")
112
- print(remove_html(string="<div>Hello <b>World</b></div>")) # "Hello World"
112
+ print(remove_html(string="<div>Hello <b>World</b></div>"))
113
113
 
114
114
  print("\nremove_tags:")
115
- print(remove_tags(string="<div>Hello <b>World</b></div>")) # "divHello bWorldbdiv"
115
+ print(remove_tags(string="<div>Hello <b>World</b></div>"))
116
116
 
117
117
  print("\nremove_tags_and_html:")
118
- print(remove_tags_and_html("<div>Hello <b>World</b></div>")) # "Hello World"
118
+ print(remove_tags_and_html("<div>Hello <b>World</b></div>"))
119
119
 
120
120
 
121
121
  if __name__ == '__main__':
@@ -134,7 +134,7 @@ def __example():
134
134
  print("\nraise_for_types:")
135
135
  try:
136
136
  raise_for_types(comparable="test", need_types=[str, int]) # pass
137
- raise_for_types(comparable=100.5, need_types=[str, int], comment_for_error="Ooops") # raise
137
+ raise_for_types(comparable=100.5, need_types=[str, int], comment_for_error="ops") # raise
138
138
  except TypeError as e:
139
139
  print(e)
140
140
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.7.116
3
+ Version: 1.7.118
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -15,7 +15,7 @@ arpakitlib/_arpakit_project_template/manage/docker_start_postgres_for_dev.sh,sha
15
15
  arpakitlib/_arpakit_project_template/manage/docker_stop_postgres_for_dev.sh,sha256=Mlerpr5giJvpAtmYsudx-bYb4SuL1Hw7iF1Jv_b061k,41
16
16
  arpakitlib/_arpakit_project_template/manage/example_nginx_proxy.nginx,sha256=Ch4vCoa1QBdDpfRAz2tgOMO8Gw-6tgNyvOkte7A3MsA,326
17
17
  arpakitlib/_arpakit_project_template/manage/example_poetry_arpakitlib.sh,sha256=ChcLbdsciCUlv_k-gp_1n70K80xc-ulKz4MXz-hXMqs,206
18
- arpakitlib/_arpakit_project_template/manage/example_pyproject.toml,sha256=wLzoszIWqIC8qwgJD7FH_2UzKVh4PB7gi030zO6aYbA,485
18
+ arpakitlib/_arpakit_project_template/manage/example_pyproject.toml,sha256=EwzqwsuhD0gkAvvoxz4fssm5_f8W_NhoN4diwlrknrY,569
19
19
  arpakitlib/_arpakit_project_template/manage/example_systemd.service,sha256=Cunp3074ZKg1AQiX4Q_Xe5Q39Jca7hQj5ljXqryWwTU,143
20
20
  arpakitlib/_arpakit_project_template/manage/git_branch.sh,sha256=yMwBwT866WjxowbDrNHRDh8yod4eSn7JZnXUlQvrcOk,17
21
21
  arpakitlib/_arpakit_project_template/manage/git_commit.sh,sha256=AW1NEel-ZHaYeVWFlRbgZSYPQdnVKsTkpR_07RQL1Mw,42
@@ -181,13 +181,13 @@ arpakitlib/ar_sleep_util.py,sha256=OaLtRaJQWMkGjfj_mW1RB2P4RaSWsAIH8LUoXqsH0zM,1
181
181
  arpakitlib/ar_sqlalchemy_model_util.py,sha256=nKJGN32eg3Gn5kmJwHdVJznPT5TydLsfUfwJGdypdUo,6264
182
182
  arpakitlib/ar_sqlalchemy_util.py,sha256=Hcg1THrDsSR_-8dsY1CG3NWPEv0FqCbkPXFXLtjlSJ0,4207
183
183
  arpakitlib/ar_ssh_runner_util.py,sha256=e9deuUdBW7Eh0Exx2nTBhk57SaOZYaJaSjNk8q6dbJk,6804
184
- arpakitlib/ar_str_util.py,sha256=tFoGSDYoGpfdVHWor5Li9pEOFmDFlHkX-Z8iOy1LK7Y,3537
185
- arpakitlib/ar_type_util.py,sha256=7eqhkRcRpTIsIP_9EvnU-WoySLt1o1Ro88-5ZJui600,3719
184
+ arpakitlib/ar_str_util.py,sha256=yU5gOwNXUQaH5b_tM5t6fXUn9oUcv5EQbVnq2wXXIpQ,3378
185
+ arpakitlib/ar_type_util.py,sha256=BJ5FcS5Vkj9KFNJgoh0qGLazy-wCubqhND3vle0yOTo,3717
186
186
  arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
187
187
  arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
188
- arpakitlib-1.7.116.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
189
- arpakitlib-1.7.116.dist-info/METADATA,sha256=luJtLQ04tiVDbmtC_5MFFIJoUD3Jx19DOg5sMY4hwW8,3176
190
- arpakitlib-1.7.116.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
191
- arpakitlib-1.7.116.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
192
- arpakitlib-1.7.116.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
193
- arpakitlib-1.7.116.dist-info/RECORD,,
188
+ arpakitlib-1.7.118.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
189
+ arpakitlib-1.7.118.dist-info/METADATA,sha256=Wfl5IWVmjo9JCk2Lutv14re4lclwMUIfbPJhQKB-pHs,3176
190
+ arpakitlib-1.7.118.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
191
+ arpakitlib-1.7.118.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
192
+ arpakitlib-1.7.118.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
193
+ arpakitlib-1.7.118.dist-info/RECORD,,