Skip to content

Commit 4e30af3

Browse files
committed
Release Aspose.Cells Cloud SDK 24.2.1
1 parent ea6a398 commit 4e30af3

File tree

70 files changed

+2797
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2797
-103
lines changed

README.md

Lines changed: 4 additions & 7 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/24.1.3)
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/24.2.1)
22

33

44
# Python SDK for Spreadsheet Processing in Cloud
@@ -21,14 +21,11 @@ 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 24.1.2
24+
## Feature & Enhancements in Version 24.2.1
2525

26-
- Update time operate question for iron python.
27-
28-
## Feature & Enhancements in Version 24.1.3
29-
30-
- Fix lost request files.
26+
Full list of issues covering all changes in this release:
3127

28+
- Add the analyze excel api for analyze controller.
3229

3330
## Read & Write Spreadsheet Formats
3431

asposecellscloud/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
from asposecellscloud.models.xlsb_save_options import XlsbSaveOptions
185185
from asposecellscloud.models.xls_save_options import XlsSaveOptions
186186
from asposecellscloud.models.xps_save_options import XpsSaveOptions
187+
from asposecellscloud.models.analyze_excel_response import AnalyzeExcelResponse
187188
from asposecellscloud.models.arc_shape_response import ArcShapeResponse
188189
from asposecellscloud.models.auto_filter_response import AutoFilterResponse
189190
from asposecellscloud.models.auto_shape_response import AutoShapeResponse
@@ -294,6 +295,7 @@
294295
from asposecellscloud.models.worksheet_replace_response import WorksheetReplaceResponse
295296
from asposecellscloud.models.worksheet_response import WorksheetResponse
296297
from asposecellscloud.models.worksheets_response import WorksheetsResponse
298+
from asposecellscloud.models.analyze_excel_request import AnalyzeExcelRequest
297299
from asposecellscloud.models.batch_convert_request import BatchConvertRequest
298300
from asposecellscloud.models.batch_lock_request import BatchLockRequest
299301
from asposecellscloud.models.batch_protect_request import BatchProtectRequest
@@ -407,9 +409,18 @@
407409
from asposecellscloud.models.trendline import Trendline
408410
from asposecellscloud.models.trendlines import Trendlines
409411
from asposecellscloud.models.walls import Walls
412+
from asposecellscloud.models.analyzed_column_description import AnalyzedColumnDescription
413+
from asposecellscloud.models.analyzed_result import AnalyzedResult
414+
from asposecellscloud.models.analyzed_table_description import AnalyzedTableDescription
415+
from asposecellscloud.models.analyze_suggestion import AnalyzeSuggestion
416+
from asposecellscloud.models.discover_chart import DiscoverChart
417+
from asposecellscloud.models.discover_pivot_table import DiscoverPivotTable
418+
from asposecellscloud.models.excel_data_statistics import ExcelDataStatistics
419+
from asposecellscloud.models.worksheet_data_statistics import WorksheetDataStatistics
410420
from asposecellscloud.models.error import Error
411421
from asposecellscloud.models.error_details import ErrorDetails
412422

423+
from asposecellscloud.requests.post_analyze_excel_request import PostAnalyzeExcelRequest
413424
from asposecellscloud.requests.get_worksheet_auto_filter_request import GetWorksheetAutoFilterRequest
414425
from asposecellscloud.requests.put_worksheet_date_filter_request import PutWorksheetDateFilterRequest
415426
from asposecellscloud.requests.put_worksheet_filter_request import PutWorksheetFilterRequest

asposecellscloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8888
self.host = host
8989
self.cookie = cookie
9090
# Set default User-Agent.
91-
self.user_agent = 'Aspose.Cells.Cloud/24.1.3/python'
91+
self.user_agent = 'Aspose.Cells.Cloud/24.2.1/python'
9292

9393
@property
9494
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,54 @@ def check_access_token(self):
8080
self.api_client.set_default_header("Authorization", "Bearer " + self.access_token)
8181
self.get_access_token_time = time.time()
8282

83+
# <summary>
84+
# Perform business analysis of data in Excel files.
85+
# </summary>
86+
# <param name="request">Request. <see cref="PostAnalyzeExcelRequest" /></param>
87+
def post_analyze_excel(self, request, **kwargs):
88+
89+
kwargs['_return_http_data_only'] = True
90+
self.check_access_token()
91+
if kwargs.get('callback'):
92+
return self.post_analyze_excel_with_http_info(request,**kwargs)
93+
else:
94+
(data) = self.post_analyze_excel_with_http_info(request,**kwargs)
95+
return data
96+
97+
def post_analyze_excel_with_http_info(self, request, **kwargs):
98+
all_params = []
99+
all_params.append('callback')
100+
all_params.append('_return_http_data_only')
101+
all_params.append('_preload_content')
102+
all_params.append('_request_timeout')
103+
params = locals()
104+
for key, val in iteritems(params['kwargs']):
105+
if key not in all_params:
106+
raise TypeError(
107+
"Got an unexpected keyword argument '%s'"
108+
" to method post_analyze_excel" % key
109+
)
110+
params[key] = val
111+
del params['kwargs']
112+
113+
http_params = request.create_http_request(self.api_client)
114+
return self.api_client.call_api(http_params['path'], http_params['method'],
115+
None,
116+
http_params['query_params'],
117+
http_params['header_params'],
118+
body=http_params['body'],
119+
post_params=http_params['form_params'],
120+
files=http_params['files'],
121+
response_type=http_params['response_type'],
122+
auth_settings=http_params['auth_settings'],
123+
callback=params.get('callback'),
124+
_return_http_data_only=params.get('_return_http_data_only'),
125+
_preload_content=params.get('_preload_content', True),
126+
_request_timeout=params.get('_request_timeout'),
127+
collection_formats=http_params['collection_formats'])
128+
129+
130+
83131
# <summary>
84132
# Retrieve the description of auto filters from a worksheet.
85133
# </summary>

asposecellscloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,5 +259,5 @@ def to_debug_report(self):
259259
"OS: {env}\n"\
260260
"Python Version: {pyversion}\n"\
261261
"Version of the API: v3.0\n"\
262-
"SDK Package Version: 24.1.3".\
262+
"SDK Package Version: 24.2.1".\
263263
format(env=sys.platform, pyversion=sys.version)

asposecellscloud/models/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
from asposecellscloud.models.xlsb_save_options import XlsbSaveOptions
186186
from asposecellscloud.models.xls_save_options import XlsSaveOptions
187187
from asposecellscloud.models.xps_save_options import XpsSaveOptions
188+
from asposecellscloud.models.analyze_excel_response import AnalyzeExcelResponse
188189
from asposecellscloud.models.arc_shape_response import ArcShapeResponse
189190
from asposecellscloud.models.auto_filter_response import AutoFilterResponse
190191
from asposecellscloud.models.auto_shape_response import AutoShapeResponse
@@ -295,6 +296,7 @@
295296
from asposecellscloud.models.worksheet_replace_response import WorksheetReplaceResponse
296297
from asposecellscloud.models.worksheet_response import WorksheetResponse
297298
from asposecellscloud.models.worksheets_response import WorksheetsResponse
299+
from asposecellscloud.models.analyze_excel_request import AnalyzeExcelRequest
298300
from asposecellscloud.models.batch_convert_request import BatchConvertRequest
299301
from asposecellscloud.models.batch_lock_request import BatchLockRequest
300302
from asposecellscloud.models.batch_protect_request import BatchProtectRequest
@@ -408,5 +410,13 @@
408410
from asposecellscloud.models.trendline import Trendline
409411
from asposecellscloud.models.trendlines import Trendlines
410412
from asposecellscloud.models.walls import Walls
413+
from asposecellscloud.models.analyzed_column_description import AnalyzedColumnDescription
414+
from asposecellscloud.models.analyzed_result import AnalyzedResult
415+
from asposecellscloud.models.analyzed_table_description import AnalyzedTableDescription
416+
from asposecellscloud.models.analyze_suggestion import AnalyzeSuggestion
417+
from asposecellscloud.models.discover_chart import DiscoverChart
418+
from asposecellscloud.models.discover_pivot_table import DiscoverPivotTable
419+
from asposecellscloud.models.excel_data_statistics import ExcelDataStatistics
420+
from asposecellscloud.models.worksheet_data_statistics import WorksheetDataStatistics
411421
from asposecellscloud.models.error import Error
412422
from asposecellscloud.models.error_details import ErrorDetails
Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# coding: utf-8
2+
"""
3+
<copyright company="Aspose" file="AnalyzeExcelRequestpy.cs">
4+
Copyright (c) 2024 Aspose.Cells Cloud
5+
</copyright>
6+
<summary>
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
</summary>
25+
"""
26+
27+
from pprint import pformat
28+
from six import iteritems
29+
import re
30+
31+
class AnalyzeExcelRequest(object):
32+
33+
"""
34+
NOTE: This class is auto generated by the swagger code generator program.
35+
Do not edit the class manually.
36+
"""
37+
38+
39+
"""
40+
Attributes:
41+
swagger_types (dict): The key is attribute name
42+
and the value is attribute type.
43+
attribute_map (dict): The key is attribute name
44+
and the value is json key in definition.
45+
"""
46+
47+
swagger_types = {
48+
'files' : 'list[FileInfo]',
49+
'need_thumbnail' : 'bool',
50+
'build_suggestoin_sheet' : 'bool'
51+
}
52+
53+
attribute_map = {
54+
'files' : 'Files' ,
55+
'need_thumbnail' : 'NeedThumbnail' ,
56+
'build_suggestoin_sheet' : 'BuildSuggestoinSheet'
57+
}
58+
59+
@staticmethod
60+
def get_swagger_types():
61+
return AnalyzeExcelRequest.swagger_types
62+
63+
@staticmethod
64+
def get_attribute_map():
65+
return AnalyzeExcelRequest.attribute_map
66+
67+
def get_from_container(self, attr):
68+
if attr in self.container:
69+
return self.container[attr]
70+
return None
71+
72+
def __init__(self,files=None ,need_thumbnail=None ,build_suggestoin_sheet=None ,**kw):
73+
"""
74+
Associative dict for storing property values
75+
"""
76+
self.container = {}
77+
78+
"""
79+
AnalyzeExcelRequest - a model defined in Swagger
80+
"""
81+
self.container['files'] = None
82+
self.container['need_thumbnail'] = None
83+
self.container['build_suggestoin_sheet'] = None
84+
params = locals()
85+
self.files = files
86+
if 'files' in params:
87+
self.files = params["files"]
88+
89+
90+
91+
self.need_thumbnail = need_thumbnail
92+
if 'need_thumbnail' in params:
93+
self.need_thumbnail = params["need_thumbnail"]
94+
95+
96+
97+
self.build_suggestoin_sheet = build_suggestoin_sheet
98+
if 'build_suggestoin_sheet' in params:
99+
self.build_suggestoin_sheet = params["build_suggestoin_sheet"]
100+
101+
102+
103+
104+
@property
105+
def files(self):
106+
return self.container['files']
107+
108+
@files.setter
109+
def files(self, files):
110+
self.container['files'] = files
111+
@property
112+
def need_thumbnail(self):
113+
return self.container['need_thumbnail']
114+
115+
@need_thumbnail.setter
116+
def need_thumbnail(self, need_thumbnail):
117+
self.container['need_thumbnail'] = need_thumbnail
118+
@property
119+
def build_suggestoin_sheet(self):
120+
return self.container['build_suggestoin_sheet']
121+
122+
@build_suggestoin_sheet.setter
123+
def build_suggestoin_sheet(self, build_suggestoin_sheet):
124+
self.container['build_suggestoin_sheet'] = build_suggestoin_sheet
125+
126+
def to_dict(self):
127+
"""
128+
Returns the model properties as a dict
129+
"""
130+
result = {}
131+
132+
for attr, _ in iteritems(self.get_swagger_types()):
133+
value = self.get_from_container(attr)
134+
if isinstance(value, list):
135+
result[attr] = list(map(
136+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137+
value
138+
))
139+
elif hasattr(value, "to_dict"):
140+
result[attr] = value.to_dict()
141+
elif isinstance(value, dict):
142+
result[attr] = dict(map(
143+
lambda item: (item[0], item[1].to_dict())
144+
if hasattr(item[1], "to_dict") else item,
145+
value.items()
146+
))
147+
else:
148+
result[attr] = value
149+
150+
return result
151+
152+
def to_str(self):
153+
"""
154+
Returns the string representation of the model
155+
"""
156+
return pformat(self.to_dict())
157+
158+
def __repr__(self):
159+
"""
160+
For `print` and `pprint`
161+
"""
162+
return self.to_str()
163+
164+
def __eq__(self, other):
165+
"""
166+
Returns true if both objects are equal
167+
"""
168+
if not isinstance(other, AnalyzeExcelRequest):
169+
return False
170+
171+
return self.__dict__ == other.__dict__
172+
173+
def __ne__(self, other):
174+
"""
175+
Returns true if both objects are not equal
176+
"""
177+
return not self == other

0 commit comments

Comments
 (0)