将Excel文件转换为可搜索可排序的HTML表的简单命令行实用程序。

excel2table的Python项目详细描述


卓越的表

https://api.travis-ci.org/pyexcel/excel2table.svg?branch=masterhttps://codecov.io/gh/pyexcel/excel2table/branch/master/graph/badge.svg

简单的命令行实用程序,将csv、xls、xlsx、ods文件转换为可搜索的 可排序的HTML表。支持大数据集和大量列的水平滚动。

它是csvtotable的变体。

演示

^将sample ods文件的{a4}转换为带图表的html表。

https://user-images.githubusercontent.com/4280312/30404140-006c035e-98dd-11e7-9cfd-1fcf3e405e2f.gif

安装

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

  1. 在tar ball中添加测试

2.3.0-15.03.2019

已添加

  1. 将此文件添加到酸焦油球中。
  2. 修复pyexcel可排序的问题&;python3PR17

2.2.1-21.02.2017

已添加

  1. 用烛台、吧台和线条可视化股票数据 csv可旋转PR 24

已更新

  1. 将CSV表的基线更新为2.1.1

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
字典java cassandra对象映射注释   java定制Solr TokenFilter lemmatizer   字符串从Java文件中读取windows文件名   java如何在Windows上设置StanfordCorenlp服务器以返回文本   java axis2“意外的子元素值”   java使用POI HSSF获取错误   多线程Java等待计时器线程完成   java ForkJoinPool BuffereImage处理风格   从java代码运行Python脚本   java将字节[]转换为短[],使每个短元素包含13位数据   java如何为swing jframe应用程序将代码划分为类   java使用okhttp更改baseurl   java AlertDialog。建设者setView导致堆栈溢出错误   java如何在特定的radius 安卓 studio中接收地址列表?