most-client 1.0.43__py3-none-any.whl → 1.0.44__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.
most/types.py CHANGED
@@ -203,6 +203,13 @@ def is_valid_objectid(oid: str) -> bool:
203
203
  return bool(re.fullmatch(r"^[0-9a-fA-F]{24}$", oid))
204
204
 
205
205
 
206
+ def is_valid_english_word(text: str) -> bool:
207
+ """
208
+ Returns True if the text starts with a letter and contains only English letters and digits.
209
+ """
210
+ return bool(re.fullmatch(r"[A-Za-z][A-Za-z0-9]*", text))
211
+
212
+
206
213
  def is_valid_id(smth_id: Optional[str]) -> bool:
207
214
  if smth_id is None:
208
215
  return False
@@ -210,4 +217,4 @@ def is_valid_id(smth_id: Optional[str]) -> bool:
210
217
  if smth_id.startswith("most-"):
211
218
  smth_id = smth_id[5:]
212
219
 
213
- return is_valid_objectid(smth_id)
220
+ return is_valid_objectid(smth_id) or is_valid_english_word(smth_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: most-client
3
- Version: 1.0.43
3
+ Version: 1.0.44
4
4
  Summary: Most AI API for https://the-most.ai
5
5
  Home-page: https://github.com/the-most-ai/most-client
6
6
  Author: George Kasparyants
@@ -12,9 +12,9 @@ most/score_calculation.py,sha256=vLtGqXrR43xZhGjrH5dpQZfWX1q3s74LvTaHn-SKBAg,325
12
12
  most/search_types.py,sha256=GFwXaDJV4qI_gaFZToLMHoYH-JXVfIVwfVTgJ7RDWoY,7211
13
13
  most/searcher.py,sha256=9UdiSlScsE6EPc6RpK8xkRLeB5gHNxgPQpXTJ17i3lQ,2135
14
14
  most/trainer_api.py,sha256=ZwOv4mhROfY97n6i7IY_ZpafsuNRazOqMBAf2dh708k,992
15
- most/types.py,sha256=rfIfj_Dylrd_SGQl-GGlTMLUAjM6wI55TIsP3RwAsC4,5088
16
- most_client-1.0.43.dist-info/METADATA,sha256=jql2yXek-OubXmLj4v8TmaZDoIgZIQKAUNXpGBwZ5U0,1027
17
- most_client-1.0.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- most_client-1.0.43.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
19
- most_client-1.0.43.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
20
- most_client-1.0.43.dist-info/RECORD,,
15
+ most/types.py,sha256=7o8uqhQd8FbO7H50TMJPbSIG4VyyX-LumWYRlHeqwgg,5343
16
+ most_client-1.0.44.dist-info/METADATA,sha256=yZy3T34ZtdnW-C28iBLyf0kTEjKq0tA6-Wdha3gRF74,1027
17
+ most_client-1.0.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ most_client-1.0.44.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
19
+ most_client-1.0.44.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
20
+ most_client-1.0.44.dist-info/RECORD,,