将Excel文件转换为可搜索可排序的HTML表的简单命令行实用程序。
excel2table的Python项目详细描述
卓越的表
简单的命令行实用程序,将csv、xls、xlsx、ods文件转换为可搜索的 可排序的HTML表。支持大数据集和大量列的水平滚动。
它是csvtotable的变体。
演示
^将sample ods文件的{a4}转换为带图表的html表。
安装
pip install --upgrade excel2table
开始
excel2table --help
将data.ods文件转换为data.html文件
excel2table data.ods data.html
在Web浏览器中打开输出文件,而不是写入文件
excel2table data.ods --serve
选项
-c, --caption Table caption -d, --delimiter CSV delimiter. Defaults to ',' -e, --encoding CSV encoding. Defaults to 'utf-8'. -q, --quotechar Quote chracter. Defaults to '"' -dl, --display-length Number of rows to show by default. Defaults to -1 (show all rows) -o, --overwrite Overwrite the output file if exists. Defaults to false. -s, --serve Open html output in a web browser. -h, --height Table height in px or in %. Default is 75% of the page. -p, --pagination Enable/disable pagination. Enabled by default. -vs, --virtual-scroll Number of rows after which virtual scroll is enabled. Default is set to 1000 rows. Set it to -1 to disable and 0 to always enable. -nh, --no-header Show default headers instead of picking first row as header. Disabled by default. -e, --export Enable filtered rows export options. -eo, --export-options Enable specific export options. By default shows all. For multiple options use -eo flag multiple times. For ex. -eo json -eo csv
更改日志
2.3.2-16.03.2019
- 在tar ball中添加测试