I am working on python and I want to read an *.ods file and convert it to a python dictionary.
The key will be the first column value and the value will be second column value.
How can I do it? I used xlrd
but it does not read *.ods files.
Some available options:
pyexcel-ods: "A wrapper library to read, manipulate and write data in ods format." Can be installed via: pip install pyexcel-ods
. I personally recommend this package as I've used it and it is being actively maintained.
py-odftools: "... a collection of tools for analyzing, converting and creating files in the ISO standard OpenDocument format." This project hasn't been updated since late 2007. It looks abandoned.
ezodf: "A Python package to create/manipulate OpenDocumentFormat files." Installable via pip install ezodf
. See caveat in the comments below about a serious issue with this package.