Skip to content

Commit 2ad2ea6

Browse files
committed
2 parents 08301cb + e162bf9 commit 2ad2ea6

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ Added
99

1010
#. To bring isave_as and isave_book_as to web clients
1111

12-
0.1.0 - unreleased
12+
0.1.0 - 06.07.2017
1313
--------------------------------------------------------------------------------
1414

1515
Added
1616
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1717

1818
#. To bring iget_array, iget_records to web clients
19-
#. To facilitate the use of pyexcel-handsontable, pyexcel-pygal
19+
#. To facilitate the use of pyexcel-handsontable, pyexcel-pygal,
20+
pyexcel-matplotlib
2021

2122
0.0.11 - 04.03.2017
2223
--------------------------------------------------------------------------------

pyexcel_webio/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ def save_book_to_database(self, session=None, tables=None,
212212
params['dest_auto_commit'] = auto_commit
213213
pe.save_book_as(**params)
214214

215+
def free_resources(self):
216+
"""
217+
After you have used iget_array and iget_records, it's
218+
recommended to call this function
219+
"""
220+
pe.free_resources()
221+
215222

216223
class ExcelInputInMultiDict(ExcelInput):
217224
"""

setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[metadata]
2+
description-file = README.rst
3+
[bdist_wheel]
4+
universal = 1

tests/test_webio.py

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def test_iget_array(self):
101101
myinput = TestInput()
102102
array = myinput.iget_array(file_name=self.testfile)
103103
assert list(array) == self.data
104+
myinput.free_resources()
104105

105106
def test_get_dict(self):
106107
myinput = TestInput()
@@ -126,6 +127,7 @@ def test_iget_records(self):
126127
{"X": 1, "Y": 2, "Z": 3},
127128
{"X": 4, "Y": 5, "Z": 6}
128129
]
130+
myinput.free_resources()
129131

130132
def test_save_to_database(self):
131133
Base.metadata.drop_all(engine)

0 commit comments

Comments
 (0)