MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / is_base64

Method is_base64

utils/utils.py:42–50  ·  view source on GitHub ↗
(value:str)

Source from the content-addressed store, hash-verified

40
41 @staticmethod
42 def is_base64(value:str)->bool:
43 isBase64 = False
44 try:
45 b64decode(value)
46 isBase64 = True
47 except:
48 pass
49
50 return isBase64
51
52 @staticmethod
53 def is_readable(content:bytes)->bool:

Callers 1

create_filenameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected