Skip to content

Instantly share code, notes, and snippets.

@blog-aspose-cloud
Last active January 26, 2022 23:01
Show Gist options
  • Save blog-aspose-cloud/ec8537c9459b91f5f773ae42b6e54fc8 to your computer and use it in GitHub Desktop.
Save blog-aspose-cloud/ec8537c9459b91f5f773ae42b6e54fc8 to your computer and use it in GitHub Desktop.
This Gist contains code snippets to convert Excel to CSV using Aspose.Cells Cloud SDK for 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment