@@ -25,7 +25,7 @@ product, please `support me on patreon <https://www.patreon.com/bePatron?u=55376
2525maintain the project and develop it further.
2626
2727If you are an individual, you are welcome to support me too on patreon and for however long
28- you feel like to . As a patreon, you will receive
28+ you feel like. As a patreon, you will receive
2929`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts >`_.
3030
3131With your financial support, I will be able to invest
@@ -56,15 +56,16 @@ well as on file system. This library can turn the excel data into a list of list
5656a list of records(dictionaries), dictionaries of lists. And vice versa. Hence it
5757lets you focus on data in Django based web development, instead of file formats.
5858
59- The idea originated from the common usability problem when developing an excel file
60- driven web applications for non-technical office workers: such as office assistant,
61- human resource administrator. The fact is that not all people know the
62- difference among various excel formats: csv, xls, xlsx. Instead of training those people
59+ The idea originated from the common usability problem: when an excel file
60+ driven web application is delivered for non-developer users (ie: team assistant,
61+ human resource administrator etc) . The fact is that not everyone knows (or cares) about the
62+ differences between various excel formats: csv, xls, xlsx are all the same to them . Instead of training those users
6363about file formats, this library helps web developers to handle most of the excel file
64- formats by providing a common programming interface. To add a specific excel file format
65- to you application, all you need is to install an extra pyexcel plugin. No code change
66- to your application. Looking at the community, this library and its associated ones try
67- to become a small and easy to install alternative to Pandas.
64+ formats by providing a common programming interface. To add a specific excel file format type
65+ to you application, all you need is to install an extra pyexcel plugin. Hence no code changes
66+ to your application and no issues with excel file formats any more. Looking at the
67+ community, this library and its associated ones try to become a small and easy to
68+ install alternative to Pandas.
6869
6970
7071The highlighted features are:
@@ -90,26 +91,22 @@ The highlighted features are:
9091 `pyexcel-xls `_ xls, xlsx(read only), `xlrd `_, same as above
9192 xlsm(read only) `xlwt `_
9293 `pyexcel-xlsx `_ xlsx `openpyxl `_ same as above
93- `pyexcel-xlsxw `_ xlsx(write only) `XlsxWriter `_ same as above
9494 `pyexcel-ods3 `_ ods `pyexcel-ezodf `_, 2.6, 2.7, 3.3, 3.4
9595 lxml 3.5, 3.6
9696 `pyexcel-ods `_ ods `odfpy `_ same as above
97+ ======================== ======================= ================= ==================
98+
99+ .. table :: Dedicated file reader and writers
100+
101+ ======================== ======================= ================= ==================
102+ Package name Supported file formats Dependencies Python versions
103+ ======================== ======================= ================= ==================
104+ `pyexcel-xlsxw `_ xlsx(write only) `XlsxWriter `_ Python 2 and 3
97105 `pyexcel-odsr `_ read only for ods, fods lxml same as above
98106 `pyexcel-htmlr `_ html(read only) lxml,html5lib same as above
99- `pyexcel-text `_ write only:rst, `tabulate `_ 2.6, 2.7, 3.3, 3.4
100- mediawiki, html, 3.5, 3.6, pypy
101- latex, grid, pipe,
102- orgtbl, plain simple
103- read only: ndjson
104- r/w: json
105- `pyexcel-handsontable `_ handsontable in html `handsontable `_ same as above
106- `pyexcel-pygal `_ svg chart `pygal `_ 2.7, 3.3, 3.4, 3.5
107- 3.6, pypy
108- `pyexcel-sortable `_ sortable table in html `csvtotable `_ same as above
109- `pyexcel-gantt `_ gantt chart in html `frappe-gantt `_ except pypy, same
110- as above
111107 ======================== ======================= ================= ==================
112108
109+
113110.. _pyexcel-io : https://github.com/pyexcel/pyexcel-io
114111.. _pyexcel-xls : https://github.com/pyexcel/pyexcel-xls
115112.. _pyexcel-xlsx : https://github.com/pyexcel/pyexcel-xlsx
@@ -126,6 +123,25 @@ The highlighted features are:
126123.. _pyexcel-ezodf : https://github.com/pyexcel/pyexcel-ezodf
127124.. _odfpy : https://github.com/eea/odfpy
128125
126+ .. table :: Other data renderers
127+
128+ ======================== ======================= ================= ==================
129+ Package name Supported file formats Dependencies Python versions
130+ ======================== ======================= ================= ==================
131+ `pyexcel-text `_ write only:rst, `tabulate `_ 2.6, 2.7, 3.3, 3.4
132+ mediawiki, html, 3.5, 3.6, pypy
133+ latex, grid, pipe,
134+ orgtbl, plain simple
135+ read only: ndjson
136+ r/w: json
137+ `pyexcel-handsontable `_ handsontable in html `handsontable `_ same as above
138+ `pyexcel-pygal `_ svg chart `pygal `_ 2.7, 3.3, 3.4, 3.5
139+ 3.6, pypy
140+ `pyexcel-sortable `_ sortable table in html `csvtotable `_ same as above
141+ `pyexcel-gantt `_ gantt chart in html `frappe-gantt `_ except pypy, same
142+ as above
143+ ======================== ======================= ================= ==================
144+
129145.. _pyexcel-text : https://github.com/pyexcel/pyexcel-text
130146.. _tabulate : https://bitbucket.org/astanin/python-tabulate
131147.. _pyexcel-handsontable : https://github.com/pyexcel/pyexcel-handsontable
@@ -186,7 +202,8 @@ Tested Django Versions
186202
187203Installation
188204================================================================================
189- You can install it via pip:
205+
206+ You can install django-excel via pip:
190207
191208.. code-block :: bash
192209
@@ -219,9 +236,10 @@ Here is the example viewing function codes:
219236
220237.. code-block :: python
221238
222- from django.shortcuts import render
239+ from django.shortcuts import render_to_response
223240 from django.http import HttpResponseBadRequest
224241 from django import forms
242+ from django.template import RequestContext
225243 import django_excel as excel
226244
227245 class UploadFileForm (forms .Form ):
@@ -237,20 +255,14 @@ Here is the example viewing function codes:
237255 return HttpResponseBadRequest()
238256 else :
239257 form = UploadFileForm()
240- return render(request, ' upload_form.html' , {' form' : form})
258+ return render_to_response(' upload_form.html' ,
259+ {' form' : form},
260+ context_instance = RequestContext(request))
241261
242262 def download (request ):
243263 sheet = excel.pe.Sheet([[1 , 2 ],[3 , 4 ]])
244264 return excel.make_response(sheet, " csv" )
245265
246- .. code-block :: html
247-
248- <form action =" /upload-file/" enctype =" multipart/form-data" method =" post" >
249- {% csrf_token %}
250- {{ form }}
251- <input type =" submit" value =" Submit" />
252- </form >
253-
254266 Development guide
255267================================================================================
256268
0 commit comments