项目作者: teroyks

项目描述 :
Convert an Excel spreadsheet to CSV files
高级语言: Python
项目地址: git://github.com/teroyks/excel2csv.git
创建时间: 2019-03-19T15:49:00Z
项目社区:https://github.com/teroyks/excel2csv

开源协议:

下载


Excel to CSV Converter

Simple converter to save all the sheets in an Excel file to CSV files.

Installation

You need Python 3 with the following packages – install globally or with virtualenv.

  1. pip3 install pandas
  2. pip3 install xlrd
  3. pip3 install tqdm

Just download the files and run excel2csv.

Usage

  1. excel2csv [-h] [-d DELIMITER] [-f] excel_file
  2. positional arguments:
  3. excel_file input file
  4. optional arguments:
  5. -h, --help show this help message and exit
  6. -d DELIMITER, --delimiter DELIMITER
  7. CSV delimiter
  8. -f, --force force overwriting existing CSV files

Example

An example Excel file is included in the data directory.

Cd into the project directory and give the following command:

  1. ./excel2csv data/months.xlsx

Two CSV files were created in the data directory, containing the sample data from the Excel file.