MCPcopy
hub / github.com/1Panel-dev/MaxKB / decode

Method decode

apps/common/utils/chat_link_code.py:38–44  ·  view source on GitHub ↗
(encoded: str)

Source from the content-addressed store, hash-verified

36
37 @staticmethod
38 def decode(encoded: str) -> uuid.UUID:
39
40 num = 0
41 for char in encoded:
42 num = num * UUIDEncoder.BASE62_LEN + UUIDEncoder.BASE62_ALPHABET.index(char)
43
44 return uuid.UUID(int=num)
45
46 @staticmethod
47 def decode_to_str(encoded: str) -> str:

Callers 15

get_child_tool_listMethod · 0.80
exportMethod · 0.80
get_appstore_toolsMethod · 0.80
call_toolMethod · 0.80
get_url_contentFunction · 0.80
exportMethod · 0.80
convertFunction · 0.80
speech_to_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected