base64.encode(input, output) Encode the contents of the binary input file and write the resulting base64 encoded data
json.dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
fold_binary(name, value) The same as fold(), except that the returned value should be a bytes object rather than
fold(name, value) Headers are folded using the
parse(fp, headersonly=False) Read all the data from the binary file-like object fp, parse the resulting bytes, and
get_from() Return a string representing the “From ” line that marks the start of the message in an mbox mailbox. The leading
binascii.b2a_uu(data) Convert binary data to a line of ASCII characters, the return value is the converted line, including a
MimeTypes.readfp(fp, strict=True) Load MIME type information from an open file fp. The file must have the format of
MimeTypes.guess_extension(type, strict=True) Similar to the guess_extension() function, using the tables stored
mimetypes.encodings_map Dictionary mapping filename extensions to encoding types.
Page 13 of 44