code: def _create_content_body(self, body):
          
          frames = int(math.ceil(len(body) / float(self._max_frame_size)))
          for offset in compatibility.RANGE(0, frames):
              start_frame = self._max_frame_size * offset
              end_frame = start_frame + self._max_frame_size
              body_len = len(body)
              if end_frame > body_len:
                  end_frame = body_len
              yield pamqp_body.ContentBody(body[start_frame:end_frame])
docs: Split body based on the maximum frame size.
  
              This function is based on code from Rabbitpy.
              https://github.com/gmr/rabbitpy
  
          :param bytes|str|unicode body: Message payload
  
          :rtype: collections.Iterable