most-client 1.0.43__tar.gz → 1.0.44__tar.gz
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_client-1.0.43/most_client.egg-info → most_client-1.0.44}/PKG-INFO +1 -1
- {most_client-1.0.43 → most_client-1.0.44}/most/types.py +8 -1
- {most_client-1.0.43 → most_client-1.0.44/most_client.egg-info}/PKG-INFO +1 -1
- {most_client-1.0.43 → most_client-1.0.44}/setup.py +1 -1
- {most_client-1.0.43 → most_client-1.0.44}/MANIFEST.in +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/README.md +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/__init__.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/_constrants.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/api.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/async_api.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/async_catalog.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/async_glossary.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/async_searcher.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/async_trainer_api.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/catalog.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/glossary.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/score_calculation.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/search_types.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/searcher.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most/trainer_api.py +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most_client.egg-info/SOURCES.txt +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most_client.egg-info/dependency_links.txt +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most_client.egg-info/requires.txt +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most_client.egg-info/top_level.txt +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/most_client.egg-info/zip-safe +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/requirements.txt +0 -0
- {most_client-1.0.43 → most_client-1.0.44}/setup.cfg +0 -0
@@ -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)
|
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
|