|
3 | 3 | You can adapt this file completely to your liking, but it should at least |
4 | 4 | contain the root `toctree` directive. |
5 | 5 |
|
6 | | -{%include "header.rst.jj2" %} |
| 6 | +`pyexcel-io` - Let you focus on data, instead of file formats |
| 7 | +================================================================================ |
| 8 | + |
| 9 | +:Author: chfw |
| 10 | +:Source code: http://github.com/pyexcel/pyexcel-io.git |
| 11 | +:Issues: http://github.com/pyexcel/pyexcel-io/issues |
| 12 | +:License: New BSD License |
| 13 | +:Development: |release| |
| 14 | +:Released: |version| |
| 15 | +:Generated: |today| |
7 | 16 |
|
8 | 17 | Introduction |
9 | 18 | -------------------------------------------------------------------------------- |
@@ -33,11 +42,104 @@ as of 2014. They are invented and supported by `pyexcel-io`_. |
33 | 42 | Installation |
34 | 43 | -------------------------------------------------------------------------------- |
35 | 44 |
|
36 | | -{%include "installation.rst.jj2" %} |
| 45 | + |
| 46 | +You can install pyexcel-io via pip: |
| 47 | + |
| 48 | +.. code-block:: bash |
| 49 | +
|
| 50 | + $ pip install pyexcel-io |
| 51 | +
|
| 52 | +
|
| 53 | +or clone it and install it: |
| 54 | + |
| 55 | +.. code-block:: bash |
| 56 | +
|
| 57 | + $ git clone https://github.com/pyexcel/pyexcel-io.git |
| 58 | + $ cd pyexcel-io |
| 59 | + $ python setup.py install |
37 | 60 |
|
38 | 61 | For individual excel file formats, please install them as you wish: |
39 | 62 |
|
40 | | -{%include "io-plugins-list.rst.jj2" %} |
| 63 | +.. _file-format-list: |
| 64 | +.. _a-map-of-plugins-and-file-formats: |
| 65 | + |
| 66 | +.. table:: A list of file formats supported by external plugins |
| 67 | + |
| 68 | + ======================== ======================= ================= ================== |
| 69 | + Package name Supported file formats Dependencies Python versions |
| 70 | + ======================== ======================= ================= ================== |
| 71 | + `pyexcel-io`_ >=v0.6.0 csv, csvz [#f1]_, tsv, 3.6+ |
| 72 | + tsvz [#f2]_ |
| 73 | + `pyexcel-io`_ <=0.5.20 same as above 2.6, 2.7, 3.3, |
| 74 | + 3.4, 3.5, 3.6 |
| 75 | + pypy |
| 76 | + `pyexcel-xls`_ xls, xlsx(read only), `xlrd`_, same as above |
| 77 | + xlsm(read only) `xlwt`_ |
| 78 | + `pyexcel-xlsx`_ xlsx `openpyxl`_ same as above |
| 79 | + `pyexcel-ods3`_ ods `pyexcel-ezodf`_, 2.6, 2.7, 3.3, 3.4 |
| 80 | + lxml 3.5, 3.6 |
| 81 | + `pyexcel-ods`_ ods `odfpy`_ same as above |
| 82 | + ======================== ======================= ================= ================== |
| 83 | + |
| 84 | +.. table:: Dedicated file reader and writers |
| 85 | + |
| 86 | + ======================== ======================= ================= ================== |
| 87 | + Package name Supported file formats Dependencies Python versions |
| 88 | + ======================== ======================= ================= ================== |
| 89 | + `pyexcel-xlsxw`_ xlsx(write only) `XlsxWriter`_ Python 2 and 3 |
| 90 | + `pyexcel-xlsxr`_ xlsx(read only) lxml same as above |
| 91 | + `pyexcel-xlsbr`_ xlsx(read only) pyxlsb same as above |
| 92 | + `pyexcel-odsr`_ read only for ods, fods lxml same as above |
| 93 | + `pyexcel-odsw`_ write only for ods loxun same as above |
| 94 | + `pyexcel-htmlr`_ html(read only) lxml,html5lib same as above |
| 95 | + `pyexcel-pdfr`_ pdf(read only) pdftables Python 2 only. |
| 96 | + ======================== ======================= ================= ================== |
| 97 | + |
| 98 | + |
| 99 | +Plugin shopping guide |
| 100 | +------------------------ |
| 101 | + |
| 102 | +Except csv files, xls, xlsx and ods files are a zip of a folder containing a lot of |
| 103 | +xml files |
| 104 | + |
| 105 | +The dedicated readers for excel files can stream read |
| 106 | + |
| 107 | + |
| 108 | +In order to manage the list of plugins installed, you need to use pip to add or remove |
| 109 | +a plugin. When you use virtualenv, you can have different plugins per virtual |
| 110 | +environment. In the situation where you have multiple plugins that does the same thing |
| 111 | +in your environment, you need to tell pyexcel which plugin to use per function call. |
| 112 | +For example, pyexcel-ods and pyexcel-odsr, and you want to get_array to use pyexcel-odsr. |
| 113 | +You need to append get_array(..., library='pyexcel-odsr'). |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +.. _pyexcel-io: https://github.com/pyexcel/pyexcel-io |
| 118 | +.. _pyexcel-xls: https://github.com/pyexcel/pyexcel-xls |
| 119 | +.. _pyexcel-xlsx: https://github.com/pyexcel/pyexcel-xlsx |
| 120 | +.. _pyexcel-ods: https://github.com/pyexcel/pyexcel-ods |
| 121 | +.. _pyexcel-ods3: https://github.com/pyexcel/pyexcel-ods3 |
| 122 | +.. _pyexcel-odsr: https://github.com/pyexcel/pyexcel-odsr |
| 123 | +.. _pyexcel-odsw: https://github.com/pyexcel/pyexcel-odsw |
| 124 | +.. _pyexcel-pdfr: https://github.com/pyexcel/pyexcel-pdfr |
| 125 | + |
| 126 | +.. _pyexcel-xlsxw: https://github.com/pyexcel/pyexcel-xlsxw |
| 127 | +.. _pyexcel-xlsxr: https://github.com/pyexcel/pyexcel-xlsxr |
| 128 | +.. _pyexcel-xlsbr: https://github.com/pyexcel/pyexcel-xlsbr |
| 129 | +.. _pyexcel-htmlr: https://github.com/pyexcel/pyexcel-htmlr |
| 130 | + |
| 131 | +.. _xlrd: https://github.com/python-excel/xlrd |
| 132 | +.. _xlwt: https://github.com/python-excel/xlwt |
| 133 | +.. _openpyxl: https://bitbucket.org/openpyxl/openpyxl |
| 134 | +.. _XlsxWriter: https://github.com/jmcnamara/XlsxWriter |
| 135 | +.. _pyexcel-ezodf: https://github.com/pyexcel/pyexcel-ezodf |
| 136 | +.. _odfpy: https://github.com/eea/odfpy |
| 137 | + |
| 138 | + |
| 139 | +.. rubric:: Footnotes |
| 140 | + |
| 141 | +.. [#f1] zipped csv file |
| 142 | +.. [#f2] zipped tsv file |
41 | 143 |
|
42 | 144 | After that, you can start get and save data in the loaded format. There |
43 | 145 | are two plugins for the same file format, e.g. pyexcel-ods3 and pyexcel-ods. |
@@ -91,7 +193,6 @@ get_data(.., library='pyexcel-ods') |
91 | 193 | csvz |
92 | 194 | sqlalchemy |
93 | 195 | django |
94 | | - options |
95 | 196 | extensions |
96 | 197 |
|
97 | 198 |
|
|
0 commit comments