MCPcopy
hub / github.com/wechatpy/wechatpy / __base64_encode

Method __base64_encode

wechatpy/fields.py:272–273  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

270class Base64EncodeField(StringField):
271
272 def __base64_encode(self, text):
273 return to_text(base64.b64encode(to_binary(text)))
274
275 converter = __base64_encode
276

Callers

nothing calls this directly

Calls 2

to_textFunction · 0.90
to_binaryFunction · 0.90

Tested by

no test coverage detected