pyexcel.Sheet.save_to_memory

Sheet.save_to_memory(file_type, stream=None, **keywords)

Save the content to memory

Parameters:
  • file_type – any value of ‘csv’, ‘tsv’, ‘csvz’, ‘tsvz’, ‘xls’, ‘xlsm’, ‘xlsm’, ‘ods’
  • stream – the memory stream to be written to. Note in Python 3, for csv and tsv format, please pass an instance of StringIO. For xls, xlsx, and ods, an instance of BytesIO.