Skip to content

Commit 7e5df5f

Browse files
committed
📚 update reademe
1 parent b8be00a commit 7e5df5f

File tree

5 files changed

+14
-23
lines changed

5 files changed

+14
-23
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
pip --use-deprecated=legacy-resolver install -r requirements.txt
2727
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt
28+
pip --use-deprecated=legacy-resolver install -r rnd_requirements.txt
2829
- name: test
2930
run: |
3031
pip freeze

.readthedocs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ sphinx:
1717
# Optionally build your docs in additional formats such as PDF
1818
formats:
1919
- pdf
20-
21-
python:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2022 by Onni Software Ltd. and its contributors
1+
Copyright (c) 2015-2025 by Onni Software Ltd. and its contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms of the software as well

README.rst

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ Please note:
4545
Support the project
4646
================================================================================
4747

48-
If your company has embedded pyexcel and its components into a revenue generating
49-
product, please support me on github, or `patreon <https://www.patreon.com/bePatron?u=5537627>`_
50-
maintain the project and develop it further.
51-
52-
With your financial support, I will be able to invest a little bit more time in coding,
53-
documentation and writing interesting posts.
48+
If your company uses pyexcel and its components in a revenue-generating product,
49+
please consider supporting the project on GitHub or
50+
`Patreon <https://www.patreon.com/bePatron?u=5537627>`_. Your financial
51+
support will enable me to dedicate more time to coding, improving documentation,
52+
and creating engaging content.
5453

5554

5655
Known constraints
@@ -90,15 +89,8 @@ As a standalone library
9089

9190
>>> import os
9291
>>> import sys
93-
>>> if sys.version_info[0] < 3:
94-
... from StringIO import StringIO
95-
... else:
96-
... from io import BytesIO as StringIO
97-
>>> PY2 = sys.version_info[0] == 2
98-
>>> if PY2 and sys.version_info[1] < 7:
99-
... from ordereddict import OrderedDict
100-
... else:
101-
... from collections import OrderedDict
92+
>>> from io import BytesIO
93+
>>> from collections import OrderedDict
10294

10395

10496
Write to an xlsx file
@@ -142,7 +134,7 @@ Here's the sample code to write a dictionary to an xlsx file:
142134
>>> data = OrderedDict()
143135
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
144136
>>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
145-
>>> io = StringIO()
137+
>>> io = BytesIO()
146138
>>> save_data(io, data)
147139
>>> # do something with the io
148140
>>> # In reality, you might give it to your http response
@@ -288,18 +280,18 @@ You got to wrap the binary content with stream to get xlsx working:
288280
+-------+-------+-------+
289281
290282
291-
Writing to a StringIO instance
283+
Writing to a BytesIO instance
292284
********************************************************************************
293285

294-
You need to pass a StringIO instance to Writer:
286+
You need to pass a BytesIO instance to Writer:
295287

296288
.. code-block:: python
297289
298290
>>> data = [
299291
... [1, 2, 3],
300292
... [4, 5, 6]
301293
... ]
302-
>>> io = StringIO()
294+
>>> io = BytesIO()
303295
>>> sheet = pe.Sheet(data)
304296
>>> io = sheet.save_to_memory("xlsx", io)
305297
>>> # then do something with io

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# -- Project information -----------------------------------------------------
2424

2525
project = 'pyexcel-xlsx'
26-
copyright = '2015-2022 Onni Software Ltd.'
26+
copyright = '2015-2025 Onni Software Ltd.'
2727
author = 'C.W.'
2828
# The short X.Y version
2929
version = '0.6.1'

0 commit comments

Comments
 (0)