---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/csvhandler
---

# CSVHandler

## Overview

`CSVHandler` is a class in Aspose.Cells FOSS for Python.

Handles CSV import and export operations for workbooks.

This class declares 4 methods for CSVHandler objects in Python programs.
Available methods include: `load_csv`, `load_csv_from_string`, `save_csv`, `save_csv_to_string`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `save_csv(workbook, file_path: str, options: Optional[CSVSaveOptions])` | Saves a workbook worksheet to a CSV file. |
| `save_csv_to_string(workbook, options: Optional[CSVSaveOptions])` → `str` | Saves a workbook worksheet to a CSV string. |
| `load_csv(workbook, file_path: str, options: Optional[CSVLoadOptions])` | Loads a CSV file into a workbook. |
| `load_csv_from_string(workbook, csv_content: str, options: Optional[CSVLoadOptions])` | Loads CSV data from a string into a workbook. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)