Skip to content

Commit 8b04e63

Browse files
committed
Release Aspose.Cells Cloud SDK 21.5
1 parent a9b9800 commit 8b04e63

12 files changed

+456
-81
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![PyPI](https://img.shields.io/pypi/v/asposecellscloud) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/asposecellscloud) ![PyPI - Downloads](https://img.shields.io/pypi/dm/asposecellscloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-python)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-python/21.1)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![PyPI](https://img.shields.io/pypi/v/asposecellscloud) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/asposecellscloud) ![PyPI - Downloads](https://img.shields.io/pypi/dm/asposecellscloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-python)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-python/21.5)
22

33

44
# Python SDK for Spreadsheet Processing in Cloud
@@ -21,10 +21,12 @@ Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate M
2121
- Convert worksheets to PDF, XPS & SVG formats.
2222
- Inter-convert files to popular Excel formats.
2323

24-
## Feature & Enhancements in Version 21.1
24+
## Feature & Enhancements in Version 21.5
2525

26-
- Support to convert worksheet on task API.
27-
- Support to add and delete cell or range in worksheet.
26+
- Support autofit columns for workbook and worksheet.
27+
- Improve add and post row/column APIs.
28+
- Improve Task APIs.
29+
- Fix CELLSCLOUD-10354.
2830

2931
## Read & Write Spreadsheet Formats
3032

asposecellscloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
from .models.workbook_response import WorkbookResponse
259259
from .models.workbook_settings_operate_parameter import WorkbookSettingsOperateParameter
260260
from .models.workbook_settings_response import WorkbookSettingsResponse
261+
from .models.worksheet_operate_parameter import WorksheetOperateParameter
261262
from .models.worksheet_replace_response import WorksheetReplaceResponse
262263
from .models.worksheet_response import WorksheetResponse
263264
from .models.worksheets import Worksheets

asposecellscloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8383
self.host = host
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = 'Swagger-Codegen/21.1/python'
86+
self.user_agent = 'Swagger-Codegen/21.5/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 155 additions & 30 deletions
Large diffs are not rendered by default.

asposecellscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,6 @@ def to_debug_report(self):
254254
return "Python SDK Debug Report:\n"\
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257-
"Version of the API: 20.9\n"\
258-
"SDK Package Version: 21.1".\
257+
"Version of the API: 21.5\n"\
258+
"SDK Package Version: 21.5".\
259259
format(env=sys.platform, pyversion=sys.version)

asposecellscloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
from .workbook_response import WorkbookResponse
259259
from .workbook_settings_operate_parameter import WorkbookSettingsOperateParameter
260260
from .workbook_settings_response import WorkbookSettingsResponse
261+
from .worksheet_operate_parameter import WorksheetOperateParameter
261262
from .worksheet_replace_response import WorksheetReplaceResponse
262263
from .worksheet_response import WorksheetResponse
263264
from .worksheets import Worksheets

asposecellscloud/models/chart_operate_parameter.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ChartOperateParameter(OperateParameter):
4141
and the value is json key in definition.
4242
"""
4343
swagger_types = {
44-
'string': 'str',
44+
'title': 'str',
4545
'area': 'str',
4646
'category_data': 'str',
4747
'upper_left_row': 'int',
@@ -53,7 +53,7 @@ class ChartOperateParameter(OperateParameter):
5353
}
5454

5555
attribute_map = {
56-
'string': 'string',
56+
'title': 'Title',
5757
'area': 'Area',
5858
'category_data': 'CategoryData',
5959
'upper_left_row': 'UpperLeftRow',
@@ -77,14 +77,14 @@ def get_from_container(self, attr):
7777
return self.container[attr]
7878
return None
7979

80-
def __init__(self, string=None, area=None, category_data=None, upper_left_row=None, lower_right_column=None, lower_right_row=None, is_auto_get_serial_name=None, chart_type=None, is_vertical=None, **kw):
80+
def __init__(self, title=None, area=None, category_data=None, upper_left_row=None, lower_right_column=None, lower_right_row=None, is_auto_get_serial_name=None, chart_type=None, is_vertical=None, **kw):
8181
super(ChartOperateParameter, self).__init__(**kw)
8282

8383
"""
8484
ChartOperateParameter - a model defined in Swagger
8585
"""
8686

87-
self.container['string'] = None
87+
self.container['title'] = None
8888
self.container['area'] = None
8989
self.container['category_data'] = None
9090
self.container['upper_left_row'] = None
@@ -94,8 +94,8 @@ def __init__(self, string=None, area=None, category_data=None, upper_left_row=No
9494
self.container['chart_type'] = None
9595
self.container['is_vertical'] = None
9696

97-
if string is not None:
98-
self.string = string
97+
if title is not None:
98+
self.title = title
9999
if area is not None:
100100
self.area = area
101101
if category_data is not None:
@@ -114,25 +114,25 @@ def __init__(self, string=None, area=None, category_data=None, upper_left_row=No
114114
self.is_vertical = is_vertical
115115

116116
@property
117-
def string(self):
117+
def title(self):
118118
"""
119-
Gets the string of this ChartOperateParameter.
119+
Gets the title of this ChartOperateParameter.
120120
121-
:return: The string of this ChartOperateParameter.
121+
:return: The title of this ChartOperateParameter.
122122
:rtype: str
123123
"""
124-
return self.container['string']
124+
return self.container['title']
125125

126-
@string.setter
127-
def string(self, string):
126+
@title.setter
127+
def title(self, title):
128128
"""
129-
Sets the string of this ChartOperateParameter.
129+
Sets the title of this ChartOperateParameter.
130130
131-
:param string: The string of this ChartOperateParameter.
131+
:param title: The title of this ChartOperateParameter.
132132
:type: str
133133
"""
134134

135-
self.container['string'] = string
135+
self.container['title'] = title
136136

137137
@property
138138
def area(self):
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
# coding: utf-8
2+
3+
"""
4+
Copyright (c) 2021 Aspose.Cells Cloud
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
"""
22+
23+
24+
from pprint import pformat
25+
from six import iteritems
26+
import re
27+
from . import OperateParameter
28+
29+
class WorksheetOperateParameter(OperateParameter):
30+
"""
31+
NOTE: This class is auto generated by the swagger code generator program.
32+
Do not edit the class manually.
33+
"""
34+
35+
36+
"""
37+
Attributes:
38+
swagger_types (dict): The key is attribute name
39+
and the value is attribute type.
40+
attribute_map (dict): The key is attribute name
41+
and the value is json key in definition.
42+
"""
43+
swagger_types = {
44+
'name': 'str',
45+
'sheet_type': 'str',
46+
'new_name': 'str',
47+
'moving_request': 'WorksheetMovingRequest'
48+
}
49+
50+
attribute_map = {
51+
'name': 'Name',
52+
'sheet_type': 'SheetType',
53+
'new_name': 'NewName',
54+
'moving_request': 'MovingRequest'
55+
}
56+
57+
@staticmethod
58+
def get_swagger_types():
59+
return dict(WorksheetOperateParameter.swagger_types, **OperateParameter.get_swagger_types())
60+
61+
@staticmethod
62+
def get_attribute_map():
63+
return dict(WorksheetOperateParameter.attribute_map, **OperateParameter.get_attribute_map())
64+
65+
def get_from_container(self, attr):
66+
if attr in self.container:
67+
return self.container[attr]
68+
return None
69+
70+
def __init__(self, name=None, sheet_type=None, new_name=None, moving_request=None, **kw):
71+
super(WorksheetOperateParameter, self).__init__(**kw)
72+
73+
"""
74+
WorksheetOperateParameter - a model defined in Swagger
75+
"""
76+
77+
self.container['name'] = None
78+
self.container['sheet_type'] = None
79+
self.container['new_name'] = None
80+
self.container['moving_request'] = None
81+
82+
if name is not None:
83+
self.name = name
84+
if sheet_type is not None:
85+
self.sheet_type = sheet_type
86+
if new_name is not None:
87+
self.new_name = new_name
88+
if moving_request is not None:
89+
self.moving_request = moving_request
90+
91+
@property
92+
def name(self):
93+
"""
94+
Gets the name of this WorksheetOperateParameter.
95+
96+
:return: The name of this WorksheetOperateParameter.
97+
:rtype: str
98+
"""
99+
return self.container['name']
100+
101+
@name.setter
102+
def name(self, name):
103+
"""
104+
Sets the name of this WorksheetOperateParameter.
105+
106+
:param name: The name of this WorksheetOperateParameter.
107+
:type: str
108+
"""
109+
110+
self.container['name'] = name
111+
112+
@property
113+
def sheet_type(self):
114+
"""
115+
Gets the sheet_type of this WorksheetOperateParameter.
116+
117+
:return: The sheet_type of this WorksheetOperateParameter.
118+
:rtype: str
119+
"""
120+
return self.container['sheet_type']
121+
122+
@sheet_type.setter
123+
def sheet_type(self, sheet_type):
124+
"""
125+
Sets the sheet_type of this WorksheetOperateParameter.
126+
127+
:param sheet_type: The sheet_type of this WorksheetOperateParameter.
128+
:type: str
129+
"""
130+
131+
self.container['sheet_type'] = sheet_type
132+
133+
@property
134+
def new_name(self):
135+
"""
136+
Gets the new_name of this WorksheetOperateParameter.
137+
138+
:return: The new_name of this WorksheetOperateParameter.
139+
:rtype: str
140+
"""
141+
return self.container['new_name']
142+
143+
@new_name.setter
144+
def new_name(self, new_name):
145+
"""
146+
Sets the new_name of this WorksheetOperateParameter.
147+
148+
:param new_name: The new_name of this WorksheetOperateParameter.
149+
:type: str
150+
"""
151+
152+
self.container['new_name'] = new_name
153+
154+
@property
155+
def moving_request(self):
156+
"""
157+
Gets the moving_request of this WorksheetOperateParameter.
158+
159+
:return: The moving_request of this WorksheetOperateParameter.
160+
:rtype: WorksheetMovingRequest
161+
"""
162+
return self.container['moving_request']
163+
164+
@moving_request.setter
165+
def moving_request(self, moving_request):
166+
"""
167+
Sets the moving_request of this WorksheetOperateParameter.
168+
169+
:param moving_request: The moving_request of this WorksheetOperateParameter.
170+
:type: WorksheetMovingRequest
171+
"""
172+
173+
self.container['moving_request'] = moving_request
174+
175+
def to_dict(self):
176+
"""
177+
Returns the model properties as a dict
178+
"""
179+
result = {}
180+
181+
for attr, _ in iteritems(self.get_swagger_types()):
182+
value = self.get_from_container(attr)
183+
if isinstance(value, list):
184+
result[attr] = list(map(
185+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186+
value
187+
))
188+
elif hasattr(value, "to_dict"):
189+
result[attr] = value.to_dict()
190+
elif isinstance(value, dict):
191+
result[attr] = dict(map(
192+
lambda item: (item[0], item[1].to_dict())
193+
if hasattr(item[1], "to_dict") else item,
194+
value.items()
195+
))
196+
else:
197+
result[attr] = value
198+
199+
return result
200+
201+
def to_str(self):
202+
"""
203+
Returns the string representation of the model
204+
"""
205+
return pformat(self.to_dict())
206+
207+
def __repr__(self):
208+
"""
209+
For `print` and `pprint`
210+
"""
211+
return self.to_str()
212+
213+
def __eq__(self, other):
214+
"""
215+
Returns true if both objects are equal
216+
"""
217+
if not isinstance(other, WorksheetOperateParameter):
218+
return False
219+
220+
return self.__dict__ == other.__dict__
221+
222+
def __ne__(self, other):
223+
"""
224+
Returns true if both objects are not equal
225+
"""
226+
return not self == other

test/AuthUtil.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,3 @@ def Ready(api, filename, folder, storage=None):
5353
response = api.upload_file(path, fullfilename)
5454
return response
5555

56-
# with open(fullfilename, 'rb') as file_object:
57-
# contents = file_object.read()
58-
# response = None
59-
# if storage == None:
60-
# response = api.upload_file(path, fullfilename)
61-
# else:
62-
# response = api.upload_file(path, fullfilename, storage)
63-
# if response['Status'] == "OK":
64-
# return True
65-
66-
# return False

0 commit comments

Comments
 (0)