@@ -66,19 +66,19 @@ Write to an xlsx file
6666
6767Here's the sample code to write a dictionary to an xlsx file::
6868
69- >>> from pyexcel_xlsx import store_data
69+ >>> from pyexcel_xlsx import save_data
7070 >>> data = OrderedDict() # from collections import OrderedDict
7171 >>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
7272 >>> data.update({"Sheet 2": [["row 1", "row 2", "row 3"]]})
73- >>> store_data ("your_file.xlsx", data)
73+ >>> save_data ("your_file.xlsx", data)
7474
7575Read from an xlsx file
7676**********************
7777
7878Here's the sample code::
7979
80- >>> from pyexcel_xlsx import load_data
81- >>> data = load_data ("your_file.xlsx")
80+ >>> from pyexcel_xlsx import get_data
81+ >>> data = get_data ("your_file.xlsx")
8282 >>> import json
8383 >>> print(json.dumps(data))
8484 {"Sheet 1": [[1, 2, 3], [4, 5, 6]], "Sheet 2": [["row 1", "row 2", "row 3"]]}
@@ -88,12 +88,12 @@ Write an xlsx to memory
8888
8989Here's the sample code to write a dictionary to an xlsx file::
9090
91- >>> from pyexcel_xlsx import store_data
91+ >>> from pyexcel_xlsx import save_data
9292 >>> data = OrderedDict()
9393 >>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
9494 >>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
9595 >>> io = StringIO()
96- >>> store_data (io, data)
96+ >>> save_data (io, data)
9797 >>> # do something with the io
9898 >>> # In reality, you might give it to your http response
9999 >>> # object for downloading
@@ -107,7 +107,7 @@ Continue from previous example::
107107 >>> # This is just an illustration
108108 >>> # In reality, you might deal with xlsx file upload
109109 >>> # where you will read from requests.FILES['YOUR_XLSX_FILE']
110- >>> data = load_data (io)
110+ >>> data = get_data (io)
111111 >>> print(json.dumps(data))
112112 {"Sheet 1": [[1, 2, 3], [4, 5, 6]], "Sheet 2": [[7, 8, 9], [10, 11, 12]]}
113113
0 commit comments