MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / is_valid_uuid

Function is_valid_uuid

apps/common/utils/common.py:408–414  ·  view source on GitHub ↗

判断字符串是否为有效的UUID

(uuid_string)

Source from the content-addressed store, hash-verified

406
407
408def is_valid_uuid(uuid_string):
409 """判断字符串是否为有效的UUID"""
410 try:
411 uuid_obj = uuid.UUID(uuid_string)
412 return str(uuid_obj) == uuid_string
413 except ValueError:
414 return False
415
416
417def common_convert_value(_type, value):

Callers 1

get_chat_recordMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected