(self, attachment_name)
Read attachment content

        Avoid this method because it reads the entire attachment into
        memory at once.
Read attachment content
Read attachment content
def get_attachment(self, attachment_name):
        """Read attachment content

        Avoid this method because it reads the entire attachment into
        memory at once.
        """
        attachment = self.get_attachment_meta(attachment_name)
        with attachment.open() as content:
            return content.read()
def get_attachment ( self , attachment_name ) : attachment = self . get_attachment_meta ( attachment_name ) with attachment . open ( ) as content : return content . read ( )