一个命令实用程序,用于读取和写入csv、tsv、xls、xlsx和ods格式的数据。

pyexcel-cli的Python项目详细描述


而对于一个还没到目前为止还还没有一个够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够够一、二、二、三、三、三、三、四、四、四、四、四、四、四、四、四、四、四、六、六、六、六、六、六、六、六、六、六。图片::https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
:目标:https://www.patreon.com/pyexcel

…图片::https://api.travis-ci.org/pyexcel/pyexcel-cli.svg?branch=master
:目标:http://travis ci.org/pyexcel/pyexcel cli

…图像::https://codecov.io/github/pyexcel/pyexcel cli/coverage.png
:目标:https://codecov.io/github/pyexcel/pyexcel cli

…图片::https://img.shields.io/gitter/room/gitterhq/gitter.svg
:目标:https://gitter.im/pyexcel/lobby

…图片::https://readthedocs.org/projects/pyexcel-cli/badge/?最新版本
:目标:http://pyexcel-cli.readthedocs.org/en/最新/




>支持该项目
======================================================br/>


:如果您的公司已经将pyexcel及其组件嵌入到一个创收产品中,如果您的公司已经将pyexcel及其组件嵌入到一个创收产品中,则


请在patreon<;上支持我https://www.patreon.com/bepatron?u=5537627>;``维护项目并进一步发展。


作为一个patreon,您将获得对pyexcel相关内容的早期访问<;https://www.patreon.com/pyexcel/posts>;` `.


在您的财务支持下,我将能够在编码、文档编制和撰写有趣的文章方面投入更多的时间。



也不支持图表。



导论
===========================================================================
**pyexcel cli**带来的是“pyexcel<;pyexcel<;http://github.com/pyexcel/pyexcel>;`````让消费变得容易,
=============================================在命令行界面上生成存储在excel文件中的信息。
此库可以将excel数据放入一个列表列表、一个记录列表(字典)、
一个列表字典中。反之亦然。因此,它可以让您专注于shell程序中的数据,而不是文件格式。在没有Microsoft Office或打开Office的情况下查看Excel文件中的数据。在支持的excel文件格式之间转换数据。将各种excel文件格式的文件合并为一个文件。将多页Excel文件拆分为单个页文件
。查找两个excel文件之间的数据差异

代码块::bash

$cd demo
$pyexcel view--in browser--output file type sortable.html--sheet index 0 https://github.com/pyexcel/excel2table/raw/master/sample/goog.ods

图片::https://github.com/pyexcel/pyexcel cli/raw/master/pyexcel cli sortable.gif

…注意:

您将需要安装pyexcel sortable,它将呈现它。


下面是另一个cli示例用法:

…代码块:bash


$pyexcel查看https://github.com/pyexcel/pyexcel/pyexcel cli/blob/master/tests/fixtures/mulmulmultisheets.xls
sheet 1:
++---++------++
1 2 2 3;
++--++--++--++--++--++
4 5 5 6;
>>>++--++--++-++---++-++--++-++--++
7;7 8 9
+——+——+——+
第2页:
+——+——+——+——+
| X | Y | Z |
+---+---+---+
| 1 | 2 | 3 |
+---+---+---+
| 4 | 5 | 6 |
+---+---+---+
Sheet 3:
+---+---+---+
| O | P | Q |
+---+---+---+
| 3 | 2 | 1 |
+---+---+---+
| 4 | 3 | 2 |
+---+---+---+

Because pyexcel family is loosely coupled, 尤其是文件格式支持,哟u
安装所需的库。如果需要支持xls格式,则需要安装pyexcel xls。有关更多信息,请参见插件部分。
。_文件格式列表:
…_插件和文件格式映射:

…表::外插件所支持的文件格式列表





=====================================================================
包名支持的文件格式依赖依赖依赖文件格式依赖python版本的依赖文件格式依赖python版本的依赖依赖依赖python版本的依赖文件格式的依赖python版本的依赖关系
==================================================================================
` pyexcel io`csv,csvz[f1]懔,tsv,2.6,2.7,3.3,
tsvz[懔f2]懔3.4,3.5,3.6
pypy
pyexcel xls`懔xls,xlsx(只读),`xlrd`懔,同上
xlsm(只读)`xlwt`
`pyexcel xlsx``xlsx`openpyxl``同上
`pyexcel xlsxw``xlsx(只读)`xlsxwriter``同上
`pyexcel-ods3``ods`ezodf`,2.6,2.7,3.3,3.4
lxml 3.5,3.6
`pyexcel ods``odfpy``同上
`pyexcel odsr`` ods(只读)lxml同上
`pyexcel text`` uu(只读)json,rst,`tablate`` 2.6,2.7,3.3,3.4
mediawiki,HTML,3.5,3.6,pypy
乳胶,网格,管道,
orgtbl,简单易懂
“pyexcel handsontable”在HTML handsontable中的handsontable与上面一样
“pyexcel pygal”SVG图表“pygal”2.7,3.3,3.4,3.5
3.6,pypy
`pyexcel sortable``在html`csvtotable``中的sortable``与上面一样
===========================================================================================================================================_ pyexcel-io:https://github.com/pyexcel/pyexcel io
。_ pyexcel-xls:https://github.com/pyexcel/pyexcel xls
。_ pyexcel-xlsx:https://github.com/pyexcel/pyexcel xlsx
…_ pyexcel-ods:https://github.com/pyexcel/pyexcel ods
。_ pyexcel-ods3:https://github.com/pyexcel/pyexcel-ods3
。_ pyexcel-odsr:https://github.com/pyexcel/pyexcel-odsr
。_ pyexcel-xlsxw:https://github.com/pyexcel/pyexcel xlsxw

…_ xlrd:https://github.com/python excel/xlrd
…_ xlwt:https://github.com/python excel/xlwt
。_ openpyxl:https://bitbucket.org/openpyxl/openpyxl
。_ xlsxwriter:https://github.com/jmcnamara/xlsxwriter
。_ ezodf:https://github.com/t0ha/ezodf
。_ odfpy:https://github.com/eea/odfpy

…_ pyexcel-text:https://github.com/pyexcel/pyexcel文本
…_表格:https://bitbucket.org/astanin/python tablate
…_ pyexcel-handsontable:https://github.com/pyexcel/pyexcel handsontable
。_可手持:https://cdnjs.com/libraries/handsontable
。_ pyexcel-pygal:https://github.com/pyexcel/pyexcel图表
…_ pygal:https://github.com/kozea/pygal
。_ pyexcel-matplotlib:https://github.com/pyexcel/pyexcel matplotlib
。_ matplotlib:https://matplotlib.org
。_ pyexcel-sortable:https://github.com/pyexcel/pyexcel可排序
…_ csvtotable:https://github.com/livitvilla/csvtotable



使用virtualenv时,每个虚拟环境中可以有不同的插件。如果您的环境中有多个插件执行相同的操作,则需要告诉pyexcel每个函数调用使用哪个插件。
例如,pyexcel ods和pyexcel odsr,并且您希望获得使用pyexcel odsr的数组。
您需要附加get_数组(…,library='pyexcel-odsr')。

准则:脚注

…[f1]压缩csv文件
…[f2]压缩TSV文件








安装
=代码块::bash

$pip安装pyexcel cli



代码块::bash


$git克隆https://github.com/pyexcel/pyexcel/pyexcel-cli.git
$cd-pyexcel-cli
$python setup.py安装





《开发指南

=>
=====================================================================================================


代码更改的开发步骤

。git克隆https://github.com/pyexcel/pyexcel cli.git
cd pyexcel cli

升级安装工具和pip。它们仅用于开发和测试:

。pip install——升级setuptools pip

,然后安装相关的开发需求:

。PIP安装-r rnnReavest.txt>如果存在这样的文件
pip install-r requirements.txt
pip install-r test s/requirements.txt

完成更改后,请提供测试用例、相关文档
,并更新changelog.rst.

注意:

对于rnd_requirements.txt,通常是在依赖库未释放时创建的。一旦安装了依赖项
(将发布),requirements.txt中的依赖项的未来版本将是有效的。




` doctest`的合并只是为了确保文档中的代码示例在不同的开发版本中保持有效。

test.bat

如何更新测试环境并更新文档
---------------------------------


需要执行其他步骤:

。pip安装moban
。Git克隆https://github.com/pyexcel/pyexcel-commons.git commons
在`.moban.d`目录中进行更改,然后发出命令`moban`

etc.存储在“pyexcel commons”项目中。


what is.moban.d
---------------------------

`.moban.d`存储库的特定元数据。


编写了测试用例。已测试所有代码行。通过所有travis ci构建。如果您的更改比较复杂,请提供相当数量的文档。Agree on NEW BSD License for your contribution




License
================================================================================

New BSD License

Change log
================================================================================

0.0.3 - 2017年7月15日
-----------------------------------

允许在浏览器中查看csvtotable,语法为:
pyexcel view--in browser--output file type sortable.html--sheet index 0 goog.ods

0.0.2-2017年6月19日
-----------------------------------

更新版
+++++++++++++++++++++++++++++++++++++++++++++++++使用pyexcel v0.5.0


0.0.1-2016年7月11日

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

推荐PyPI第三方库


热门话题
java显示ArrayList中的文本   在Android/Java平台上加密共享密钥   java如何解决此错误{无法启动组件[Connector[HTTP/1.18080]]}?   java无法初始化ActionListener中的类。。。请帮忙!   在Java中访问无顶级类的非顶级类的编译器构造   java前向标头变量Spring Boot   java查找JSF资源的路径   通过Android应用程序中的ContentProvider对临时字段进行java查询   JavaSWT中的Resizeble对话框   java为什么将变量声明为int类型需要强制转换流?长类型不需要强制转换   java应用程序主题在预览中显示,但不在手机上显示   java FirebaseRecyclerAdapter未在我的RecyclerView布局中显示数据   javasocket大容量读取返回一个零数组   java JMX数据作为JSON   java您的应用程序已使用来自Google Cloud SDK的最终用户凭据进行身份验证,而translate不支持这些凭据。古格里皮斯。通用域名格式   java ORA02289:序列不存在,但数据库中不存在序列   在Java中如何将对象数组转换为列表?   java如何在eclipse中进行代码格式转换?