@@ -5,21 +5,19 @@ pyexcel-libxlsxw - Let you focus on data, instead of xlsx format
5
5
.. image :: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
6
6
:target: https://www.patreon.com/chfw
7
7
8
- .. image :: https://cdn.rawgit .com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/ badge.svg
8
+ .. image :: https://raw.githubusercontent .com/pyexcel/pyexcel-mobans/master/images/awesome- badge.svg
9
9
:target: https://awesome-python.com/#specific-formats-processing
10
10
11
- .. image :: https://travis-ci.org/pyexcel/pyexcel-libxlsxw.svg?branch=master
12
- :target: http://travis-ci.org/pyexcel/pyexcel-libxlsxw
13
-
14
11
.. image :: https://codecov.io/gh/pyexcel/pyexcel-libxlsxw/branch/master/graph/badge.svg
15
12
:target: https://codecov.io/gh/pyexcel/pyexcel-libxlsxw
16
13
17
14
.. image :: https://badge.fury.io/py/pyexcel-libxlsxw.svg
18
15
:target: https://pypi.org/project/pyexcel-libxlsxw
19
16
20
17
18
+
21
19
.. image :: https://pepy.tech/badge/pyexcel-libxlsxw/month
22
- :target: https://pepy.tech/project/pyexcel-libxlsxw/month
20
+ :target: https://pepy.tech/project/pyexcel-libxlsxw
23
21
24
22
25
23
.. image :: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
@@ -39,26 +37,20 @@ using libxlsxwriter. You are likely to use it with `pyexcel <https://github.com/
39
37
Support the project
40
38
================================================================================
41
39
42
- If your company has embedded pyexcel and its components into a revenue generating
43
- product, please support me on github, `patreon <https://www.patreon.com/bePatron?u=5537627 >`_
44
- or `bounty source <https://salt.bountysource.com/teams/chfw-pyexcel >`_ to maintain
45
- the project and develop it further.
46
-
47
- If you are an individual, you are welcome to support me too and for however long
48
- you feel like. As my backer, you will receive
49
- `early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts >`_.
50
-
51
- And your issues will get prioritized if you would like to become my patreon as `pyexcel pro user `.
52
-
53
- With your financial support, I will be able to invest
54
- a little bit more time in coding, documentation and writing interesting posts.
40
+ If your company uses pyexcel and its components in a revenue-generating product,
41
+ please consider supporting the project on GitHub or
42
+ `Patreon <https://www.patreon.com/bePatron?u=5537627 >`_. Your financial
43
+ support will enable me to dedicate more time to coding, improving documentation,
44
+ and creating engaging content.
55
45
56
46
57
47
Known constraints
58
48
==================
59
49
60
50
Fonts, colors and charts are not supported.
61
51
52
+ Nor to read password protected xls, xlsx and ods files.
53
+
62
54
Installation
63
55
================================================================================
64
56
@@ -89,15 +81,8 @@ As a standalone library
89
81
90
82
>>> import os
91
83
>>> import sys
92
- >>> if sys.version_info[0 ] < 3 :
93
- ... from StringIO import StringIO
94
- ... else :
95
- ... from io import BytesIO as StringIO
96
- >>> PY2 = sys.version_info[0 ] == 2
97
- >>> if PY2 and sys.version_info[1 ] < 7 :
98
- ... from ordereddict import OrderedDict
99
- ... else :
100
- ... from collections import OrderedDict
84
+ >>> from io import BytesIO
85
+ >>> from collections import OrderedDict
101
86
102
87
103
88
Write to an xlsx file
@@ -139,7 +124,7 @@ Here's the sample code to write a dictionary to an xlsx file:
139
124
>> > data = OrderedDict()
140
125
>> > data.update({" Sheet 1" : [[1 , 2 , 3 ], [4 , 5 , 6 ]]})
141
126
>> > data.update({" Sheet 2" : [[7 , 8 , 9 ], [10 , 11 , 12 ]]})
142
- >> > io = StringIO ()
127
+ >> > io = BytesIO ()
143
128
>> > save_data(io, data)
144
129
>> > # do something with the io
145
130
>> > # In reality, you might give it to your http response
@@ -225,26 +210,29 @@ Then install relevant development requirements:
225
210
#. pip install -r tests/requirements.txt
226
211
227
212
Once you have finished your changes, please provide test case(s), relevant documentation
228
- and update CHANGELOG.rst.
213
+ and update changelog.yml
229
214
230
215
.. note ::
231
216
232
217
As to rnd_requirements.txt, usually, it is created when a dependent
233
- library is not released. Once the dependecy is installed
218
+ library is not released. Once the dependency is installed
234
219
(will be released), the future
235
220
version of the dependency in the requirements.txt will be valid.
236
221
237
222
238
223
How to test your contribution
239
- ------------------------------
224
+ --------------------------------------------------------------------------------
240
225
241
- Although `nose ` and `doctest ` are both used in code testing, it is adviable that unit tests are put in tests. `doctest ` is incorporated only to make sure the code examples in documentation remain valid across different development releases.
226
+ Although `nose ` and `doctest ` are both used in code testing, it is advisable
227
+ that unit tests are put in tests. `doctest ` is incorporated only to make sure
228
+ the code examples in documentation remain valid across different development
229
+ releases.
242
230
243
231
On Linux/Unix systems, please launch your tests like this::
244
232
245
233
$ make
246
234
247
- On Windows systems , please issue this command::
235
+ On Windows, please issue this command::
248
236
249
237
> test.bat
250
238
@@ -256,7 +244,7 @@ Please run::
256
244
257
245
$ make format
258
246
259
- so as to beautify your code otherwise travis-ci may fail your unit test.
247
+ so as to beautify your code otherwise your build may fail your unit test.
260
248
261
249
262
250
0 commit comments