Skip to content

Commit

Permalink
minor fix on readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Aug 20, 2015
1 parent 6e93332 commit 0654491
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
===========================================================
================================================================================
pyexcel-ods - Let you focus on data, instead of ods format
===========================================================
================================================================================

.. image:: https://api.travis-ci.org/chfw/pyexcel-ods3.png
:target: http://travis-ci.org/chfw/pyexcel-ods3

**pyexcel-ods** is a tiny wrapper library to read, manipulate and write data in ods fromat using python 2.6 and python 2.7. You are likely to use it with `pyexcel <https://github.com/chfw/pyexcel>`_. `pyexcel-ods3 <https://github.com/chfw/pyexcel-ods3>`_ is a sister library that does the same thing but supports Python 3.3 and 3.4.
.. image:: https://codecov.io/github/chfw/pyexcel-ods3/coverage.png
:target: https://codecov.io/github/chfw/pyexcel-ods3


**pyexcel-ods** is a tiny wrapper library to read, manipulate and write data in
ods fromat using python 2.6 and python 2.7. You are likely to use it with
`pyexcel <https://github.com/chfw/pyexcel>`_.
`pyexcel-ods3 <https://github.com/chfw/pyexcel-ods3>`_ is a sister library that
does the same thing but supports Python 3.3 and 3.4 and depends on lxml.

Known constraints
==================
Expand Down Expand Up @@ -86,7 +96,7 @@ Here's the sample code::

>>> # This is just an illustration
>>> # In reality, you might deal with ods file upload
>>> # where you will read from requests.FILES['YOUR_XL_FILE']
>>> # where you will read from requests.FILES['YOUR_ODS_FILE']
>>> data = get_data(io)
>>> print(json.dumps(data))
{"Sheet 1": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], "Sheet 2": [[7.0, 8.0, 9.0], [10.0, 11.0, 12.0]]}
Expand Down Expand Up @@ -135,7 +145,7 @@ You got to wrap the binary content with StringIO to get odf working::


>>> # This is just an illustration
>>> # In reality, you might deal with xl file upload
>>> # In reality, you might deal with ods file upload
>>> # where you will read from requests.FILES['YOUR_ODS_FILE']
>>> odsfile = "another_file.ods"
>>> with open(odsfile, "rb") as f:
Expand Down

0 comments on commit 0654491

Please sign in to comment.