madam.mime
module
- class madam.mime.MimeType(mediatype: Optional[Union[str, MimeType]], subtype: Optional[str] = None)[source]
Bases:
object
Represents a MIME type according to RFC 2045. This class behaves identical to its string representation in
dict
andset
.Limitations:
Suffixes are considered a part of the subtype
Parameters like
charset
are not supported and will be treated as part of the subtype