MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / _base62_encode

Function _base62_encode

backend/tkhelper/utils/base_62.py:7–18  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

5
6
7def _base62_encode(num):
8 # Define the character set for base-62 encoding
9 chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
10 result = []
11
12 # Convert to base-62
13 while num > 0:
14 num, rem = divmod(num, 62)
15 result.append(chars[rem])
16
17 # Return the result reversed (since we've computed it backwards)
18 return "".join(reversed(result))
19
20
21def get_base62_date():

Callers 1

get_base62_dateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected