👕 coding style update
This commit is contained in:
parent
b512b1dc06
commit
7f54170075
|
@ -0,0 +1,10 @@
|
|||
[settings]
|
||||
line_length=79
|
||||
known_first_party=lml, pyexcel, odfpy
|
||||
known_third_party=nose
|
||||
indent=' '
|
||||
multi_line_output=3
|
||||
length_sort=1
|
||||
default_section=FIRSTPARTY
|
||||
no_lines_before=LOCALFOLDER
|
||||
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER
|
|
@ -0,0 +1,30 @@
|
|||
{%extends 'README.rst.jj2' %}
|
||||
|
||||
{%block documentation_link%}
|
||||
{%endblock%}
|
||||
|
||||
{%block description%}
|
||||
**pyexcel-ods** is a tiny wrapper library to read, manipulate and write data in
|
||||
ods format using python 2.6 and python 2.7. You are likely to use it with
|
||||
`pyexcel <https://github.com/pyexcel/pyexcel>`_.
|
||||
`pyexcel-ods3 <https://github.com/pyexcel/pyexcel-ods3>`_ is a sister library that
|
||||
depends on ezodf and lxml. `pyexcel-odsr <https://github.com/pyexcel/pyexcel-odsr>`_
|
||||
is the other sister library that has no external dependency but do ods reading only
|
||||
{%endblock%}
|
||||
|
||||
{% block pagination_note%}
|
||||
Special notice 30/01/2017: due to the constraints of the underlying 3rd party
|
||||
library, it will read the whole file before returning the paginated data. So
|
||||
at the end of day, the only benefit is less data returned from the reading
|
||||
function. No major performance improvement will be seen.
|
||||
|
||||
With that said, please install `pyexcel-odsr <https://github.com/pyexcel/pyexcel-odsr>`_
|
||||
and it gives better performance in pagination.
|
||||
{%endblock%}
|
||||
|
||||
{%block extras %}
|
||||
Credits
|
||||
================================================================================
|
||||
|
||||
ODSReader is originally written by `Marco Conti <https://github.com/marcoconti83/read-ods-with-odfpy>`_
|
||||
{%endblock%}
|
|
@ -0,0 +1,7 @@
|
|||
{% extends 'setup.py.jj2' %}
|
||||
|
||||
{%block platform_block%}
|
||||
{%endblock%}
|
||||
|
||||
{%block compat_block%}
|
||||
{%endblock%}
|
|
@ -21,18 +21,18 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import pyexcel_io.service as service
|
||||
from pyexcel_io._compact import OrderedDict
|
||||
from pyexcel_io.book import BookReader
|
||||
from pyexcel_io.sheet import SheetReader
|
||||
|
||||
from odf.namespaces import OFFICENS
|
||||
from odf.opendocument import load
|
||||
from odf.table import Table, TableCell, TableRow
|
||||
from odf.text import P
|
||||
from odf.table import Table, TableRow, TableCell
|
||||
|
||||
# Thanks to grt for the fixes
|
||||
from odf.teletype import extractText
|
||||
from odf.text import P
|
||||
from odf.namespaces import OFFICENS
|
||||
from odf.opendocument import load
|
||||
|
||||
import pyexcel_io.service as service
|
||||
from pyexcel_io.book import BookReader
|
||||
from pyexcel_io.sheet import SheetReader
|
||||
from pyexcel_io._compact import OrderedDict
|
||||
|
||||
|
||||
class ODSSheet(SheetReader):
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
"""
|
||||
import sys
|
||||
|
||||
from odf.text import P
|
||||
from odf.table import Table, TableRow, TableCell
|
||||
from odf.namespaces import OFFICENS
|
||||
from odf.opendocument import OpenDocumentSpreadsheet
|
||||
|
||||
import pyexcel_io.service as converter
|
||||
from pyexcel_io.book import BookWriter
|
||||
from pyexcel_io.sheet import SheetWriter
|
||||
|
||||
from odf.namespaces import OFFICENS
|
||||
from odf.opendocument import OpenDocumentSpreadsheet
|
||||
from odf.table import Table, TableCell, TableRow
|
||||
from odf.text import P
|
||||
|
||||
PY2 = sys.version_info[0] == 2
|
||||
|
||||
PY27_BELOW = PY2 and sys.version_info[1] < 7
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import datetime # noqa
|
||||
import os # noqa
|
||||
import datetime # noqa
|
||||
|
||||
import pyexcel
|
||||
|
||||
from nose.tools import eq_, raises # noqa
|
||||
|
||||
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
import os
|
||||
|
||||
import psutil
|
||||
import pyexcel as pe
|
||||
from pyexcel_ods import get_data, save_data
|
||||
|
||||
import psutil
|
||||
from nose import SkipTest
|
||||
from nose.tools import eq_, raises
|
||||
from pyexcel_io.exceptions import IntegerAccuracyLossError
|
||||
|
||||
from pyexcel_ods import get_data, save_data
|
||||
|
||||
IN_TRAVIS = "TRAVIS" in os.environ
|
||||
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@ import os
|
|||
import sys
|
||||
|
||||
import pyexcel
|
||||
from nose.tools import raises
|
||||
|
||||
from base import PyexcelMultipleSheetBase
|
||||
|
||||
from nose.tools import raises
|
||||
|
||||
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
|
||||
from ordereddict import OrderedDict
|
||||
else:
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import os
|
||||
|
||||
import pyexcel
|
||||
from nose.tools import eq_
|
||||
|
||||
from base import create_sample_file1
|
||||
|
||||
from nose.tools import eq_
|
||||
|
||||
|
||||
class TestStringIO:
|
||||
def test_ods_stringio(self):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
|
||||
from base import PyexcelHatWriterBase, PyexcelWriterBase
|
||||
from base import PyexcelWriterBase, PyexcelHatWriterBase
|
||||
from pyexcel_ods.odsr import ODSBook as Reader
|
||||
from pyexcel_ods.odsw import ODSWriter as Writer
|
||||
|
||||
|
|
Loading…
Reference in New Issue