the gpg python module should make it really easy for a python user who has an email.message.EmailMessage to produce an encrypted+signed version of the same message.
i'm thinking of a function like:
gpg.Context.encrypt_email(msg: email.message.EmailMessage) → email.message.EmailMessage
(though obviously there might be some more parameters that a sophisticated user might want to set.)
The idea is that the gpg module would extract the necessary recipient and sender information from the headers already there, and produce the best valid PGP/MIME encrypted+signed message it knows how to do.
This would be useful for projects like alot if we want them to use GnuPG.