def to_bytes()

in components/processing/libs/processor-xlsx/src/processors/xlsx/xlsx_generator.py [0:0]


    def to_bytes(self, suffix=".xlsx") -> bytes:
        # Save and return as bytes
        with tempfile.NamedTemporaryFile(suffix=suffix) as f:
            self.save(GCSPath(f.name))
            with open(f.name, "rb") as r:
                return r.read()