On Tue, Dec 4, 2012 at 4:10 PM, Peter Connell <Peter.Connell@xxxxxxxxxx> wrote:
Very interesting.
Do you if there is support for the reverse XLS(x) to CSV?

You can read XLS and XLSX files using the xlrd package, which is
written and maintained by the same guy responsible for xlwt. Python
comes with its own CSV module, so once you're able to read data from
the Excel file, it's rather trivial to write to CSV.

Note that for writing Excel files, xlwt only supports XLS. Right now,
the best Python package I know of for writing to XLSX is openpyxl. It
also reads XLSX but doesn't know how to do anything at all with XLS.
It's written by someone else, and the design is very different from
xlrd and xlwt. I have tried all of these on the i, and they all work,
as far as I can tell.


http://pypi.python.org/pypi/xlrd (to read XLS and XLSX)
http://pypi.python.org/pypi/xlwt (to write XLS)
http://pypi.python.org/pypi/openpyxl (to read and write XLSX)

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page