How to Convert ODS to XLSX in Python

pip install cloudmersive-convert-api-client
from __future__ import print_function
import time
import cloudmersive_convert_api_client
from cloudmersive_convert_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_convert_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = cloudmersive_convert_api_client.ConvertDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration))
input_file = '/path/to/inputfile' # file | Input file to perform the operation on.
try:
# Convert ODS Spreadsheet to XLSX
api_response = api_instance.convert_document_ods_to_xlsx(input_file)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConvertDocumentApi->convert_document_ods_to_xlsx: %s\n" % e)

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

AWS Glue + Hudi 0.10.1: Bugs

This Salesforce Developer is Building Free Apps to Help Future Developers

Looking for an open source java library that can execute SQL on Excel files

Convert Enum To Object or Class in c#

Targeting Kotlin for both Android and iOS

My personal journey to Agile

CS50 PSET1: Mario.c

i3status: meu arquivo de configuração

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

Convert Input Image to GIF Format in Python

Constructor Type in Python

Multiprocessing — Simple Guide to Create Processes and Pool of Processes in Python

how to bypass captcha in python