Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Jun 8, 2017
1 parent 6344379 commit 1a519d8
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 50 deletions.
18 changes: 5 additions & 13 deletions .moban.d/docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,12 @@ get_data(.., library='pyexcel-ods')
.. _ods: https://github.com/pyexcel/pyexcel-ods
.. _ods3: https://github.com/pyexcel/pyexcel-ods3

Special Note on PyInstaller
********************************************************************************

When you packaging pyexcel-io with its plugins, please specify the plugins in
its hidden import options::

--hidden-import pyexcel_[nick_name] --hidden-import pyexcel_[nick_name].[nick_name]

Nick name here refers to the second part of the package name. Suppose you
wanted to package pyexcel-xls with pyexcel-io, the options to pyinstaller are::

--hidden-import pyexcel_xls --hidden-import pyexcel_xls.xls

.. toctree::
:caption: Migration Note
:maxdepth: 2

migration_from_dot_1_to_dot_2
pyinstaller

.. toctree::
:caption: Tutorial
Expand All @@ -106,6 +94,10 @@ wanted to package pyexcel-xls with pyexcel-io, the options to pyinstaller are::
API
--------------------------------------------------

.. toctree::
:maxdepth: 2
common_parameters

.. currentmodule:: pyexcel_io

.. autosummary::
Expand Down
19 changes: 19 additions & 0 deletions docs/source/common_parameters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Common parameters
================================================================================

auto_dectect_datetime
--------------------------------------------------------------------------------

The datetime formats are:

#. %Y-%m-%d
#. %Y-%m-%d %H:%M:%S
#. %Y-%m-%d %H:%M:%S.%f

Any other datetime formats will be thrown as ValueError

'library' option is added
--------------------------------------------------------------------------------

In order to have overlapping plugins co-exit, 'library' option is added to
get_data and save_data.
37 changes: 0 additions & 37 deletions docs/source/migration_from_dot_1_to_dot_2.rst

This file was deleted.

78 changes: 78 additions & 0 deletions docs/source/pyinstaller.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Packaging with PyInstaller
================================================================================

With pyexcel-io v0.4.0, the way to package it has been changed because it
uses lml for all plugins.

Built-in plugins of pyexcel-io
-------------------------------

In order to package every built-in plugins of pyexcel-io, you need to specify::

--hidden-import pyexcel_io.readers.csvr
--hidden-import pyexcel_io.readers.csvz
--hidden-import pyexcel_io.readers.tsv
--hidden-import pyexcel_io.readers.tsvz
--hidden-import pyexcel_io.writers.csvw
--hidden-import pyexcel_io.readers.csvz
--hidden-import pyexcel_io.readers.tsv
--hidden-import pyexcel_io.readers.tsvz
--hidden-import pyexcel_io.database.importers.django
--hidden-import pyexcel_io.database.importers.sqlalchemy
--hidden-import pyexcel_io.database.exporters.django
--hidden-import pyexcel_io.database.exporters.sqlalchemy

pyexcel-xlsx
----------------

In order to package pyexcel-xlsx, you need to specify::

--hidden-import pyexcel_xlsx
--hidden-import pyexcel_xlsx.xlsxr
--hidden-import pyexcel_xlsx.xlsxw

pyexcel-xlsxw
----------------

In order to package pyexcel-xlsxw, you need to specify::

--hidden-import pyexcel_xlsxw
--hidden-import pyexcel_xlsxw.xlsxw

pyexcel-xls
----------------

In order to package pyexcel-xls, you need to specify::

--hidden-import pyexcel_xls
--hidden-import pyexcel_xls.xlsr
--hidden-import pyexcel_xls.xlsw


pyexcel-ods
----------------

In order to package pyexcel-ods, you need to specify::

--hidden-import pyexcel_ods
--hidden-import pyexcel_ods.odsr
--hidden-import pyexcel_ods.odsw

pyexcel-ods3
----------------

In order to package pyexcel-ods3, you need to specify::

--hidden-import pyexcel_ods3
--hidden-import pyexcel_ods3.odsr
--hidden-import pyexcel_ods3.odsw

pyexcel-odsr
----------------

In order to package pyexcel-odsr, you need to specify::

--hidden-import pyexcel_odsr
--hidden-import pyexcel_ods4.odsr


0 comments on commit 1a519d8

Please sign in to comment.