Mawg
Mawg

Reputation: 40145

Convert Excel XLSX to CSV in Python without installing anything

We have very strict rules on what can be installed and there is no way around them and legal repercussions it I could. I can't even install PIP, let alone run it.

If we accept that, is there any way to convert an Excel .xlsx file to csv?

Is there a DOS command line that I can run? DuckDuckGo doesn't seem to think so.

Is there a Python module that I can simply download, with having to use PIP? (preferably a single file, rather than a directory tree, as I will have to distribute it with my script))

Is there any other way?

Upvotes: 0

Views: 1086

Answers (2)

Guido U. Draheim
Guido U. Draheim

Reputation: 3271

See my script tabxlsx.py - single file without addtional dependencies.

Installation can be done by copy-n-paste to a target system. It uses the internal xml and zip modules from standard Python to read and write Excel xlsx files converting to/from other formats including csv.

Upvotes: 1

kore666
kore666

Reputation: 1649

here is a lot of solutions to convert from csv to xlsx. With examples of libs which you can install via PIP. You can get the high level idea how you can convert. Python convert csv to xlsx

Without libs (xlsxWriter, openpyxl etc) you shoud have deep understanding of xlsx file structure.

Upvotes: -1

Related Questions