Skip to main content

Put together some CSV files into a single Excel file, in different sheets.

Project description

Put together some CSV files into a single Excel file, in different sheets.


You can install directly after cloning:

$ python install --user

Or use the Python package:

$ pip install --user csv2xls


Outside the standard library, the xlwt package is needed, and should be automatically installed with setuptools. Otherwise:

$ pip install --user xlwt


$ csv2xls examples/sheet_alpha.csv examples/sheet_beta.csv -o output.xls
Processing       examples/sheet_alpha.csv -> output.xls/alpha
Processing        examples/sheet_beta.csv -> output.xls/beta


$ csv2xls -h
usage: csv2xls [-h] [-o OUTPUT] [-k] [-f] [-c] [-d DATE_FORMAT]
               files [files ...]

Put together some CSV files into a single Excel file. Basic types are infered

positional arguments:

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Define name for output Excel file. Default is
  -k, --keep-prefix     Keep common prefix when building sheet names.
  -f, --force           If output already exists, override it.
  -c, --clean           Delete input files after successfully creating the
                        Excel file.
  -d DATE_FORMAT, --date-format DATE_FORMAT
                        Change date format used during date type inference.
                        Default is %Y-%m-%d.

Example: csv2xls examples/sheet_alpha.csv examples/sheet_beta.csv


To run the tests, you must install xls2txt:

$ git clone
$ cd xls2txt
$ make
$ sudo make install

Then run:

$ ./

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
csv2xls-0.2.2.tar.gz (12.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page