def tar(self):
        """tar in bytes format"""
        if not self.generated:
            for data in self.generate():
                pass
        return self._tar_buffer.getvalue()
tar in bytes format