The steps given below provide the details on how to convert XLSX workbook to CSV format using Aspose.Cells Cloud SDK for Python.
We recommend visiting the following blog post for information on how to Convert Excel to CSV using Python.
The steps given below provide the details on how to convert XLSX workbook to CSV format using Aspose.Cells Cloud SDK for Python.
We recommend visiting the following blog post for information on how to Convert Excel to CSV using Python.
This Gist contains code snippets to convert Excel to CSV using Aspose.Cells Cloud SDK for Python |
# For more examples, please visit https://github.com/aspose-cells-cloud/aspose-cells-cloud-python | |
def ExceltoCSV(): | |
try: | |
# client credentials details from cloud dashboard | |
client_secret = "1c9379bb7d701c26cc87e741a29987bb" | |
client_id = "bbf94a2c-6d7e-4020-b4d2-b9809741374e" | |
# initialize an object of Cells Cloud API | |
cellsApi = asposecellscloud.CellsApi(client_id, client_secret) | |
# input Excel workbook | |
input_file = "TestCase(2).xlsx" | |
# desired output format | |
format = "CSV" | |
# resultant file name | |
output = "Converted.csv" | |
# Call the API to convert input XLSX to CSV format | |
response = cellsApi.cells_workbook_get_workbook(name=input_file, format=format, out_path=output) | |
# Print response in console | |
print("Result {0}".format(response)) | |
except ApiException as e: | |
print("Exception when calling CellsApi->cells_workbook_get_workbook: %s\n" % e) |