Spreadsheet Format Export for Python
Aspose.Cells FOSS for Python provides straightforward export from Excel workbooks to every format the FOSS library supports. A single workbook.save() call handles the full output pipeline — XLSX, CSV, TSV, Markdown, or JSON — preserving cell values and formulas without requiring Microsoft Office.
Installation and Setup
pip install aspose-cells-fossImport the core classes:
from aspose.cells_foss import Workbook, SaveFormat, Cell
from aspose.cells_foss import MarkdownHandler, MarkdownSaveOptions
from aspose.cells_foss import CSVSaveOptionsSupported Output Formats
| Format | SaveFormat Constant | Notes |
|---|---|---|
| XLSX | SaveFormat.XLSX | Default format; preserves styles, formulas, charts |
| CSV | SaveFormat.CSV | Comma-separated; first sheet only by default |
| TSV | SaveFormat.TSV | Read-only constant. workbook.save() does not support TSV; raises ValueError. |
| Markdown | SaveFormat.MARKDOWN | Generates standard Markdown tables |
| JSON | SaveFormat.JSON | Structured JSON representation of sheet data |
Important: Aspose.Cells FOSS does not support export to PDF, HTML, PNG, TIFF, DOCX, or PPTX. These are available in the commercial
aspose-cells-pythonpackage only.