Skip to content

Commit f31a2e2

Browse files
committed
Release Aspose.Cells Cloud SDK 23.11
1 parent 1c05e82 commit f31a2e2

File tree

1,045 files changed

+44532
-104929
lines changed

Some content is hidden

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

1,045 files changed

+44532
-104929
lines changed

README.md

Lines changed: 21 additions & 29 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/23.10)
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/23.11)
22

33

44
# Python SDK for Spreadsheet Processing in Cloud
@@ -21,13 +21,13 @@ 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 23.10
24+
## Feature & Enhancements in Version 23.11
2525

2626
Full list of issues covering all changes in this release:
2727

28-
- Fix protect workbook request.
29-
- Fix range copy API.
30-
- Optimize workbook protect API.
28+
- Optimize import xml data into Excel file.
29+
- Optimize import json data into Excel file.
30+
- **Remove deprecated functions, class and test case.**
3131

3232

3333

@@ -71,36 +71,28 @@ Firstly, create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/
7171
## Create Spreadsheet from a Template in the Cloud via Python
7272

7373
```python
74-
75-
#Instantiate Aspose Cells API SDK
76-
cellsApi = asposecellscloud.apis.cells_api.CellsApi(GetClientId(),GetClientSecret(),"v3.0")
77-
78-
templateFile ='Book1.xlsx'
79-
folder = "Temp"
80-
name = "NewBook" + datetime.now().strftime("%Y%m%d%H%M%S") + ".xlsx"
81-
dataFile = "ReportData.xml"
82-
template_file = folder + "/" + templateFile
83-
data_file = folder + "/" + dataFile
84-
fullfilename = os.path.dirname(os.path.realpath(__file__)) + "/" + templateFile
85-
api.upload_file(template_file, fullfilename)
86-
fullfilename = os.path.dirname(os.path.realpath(__file__)) + "/" + data_file
87-
api.upload_file(data_file, fullfilename)
88-
result = cellsApi.cells_workbook_put_workbook_create(name, template_file=template_file, data_file=data_file, folder=folder)
89-
self.assertEqual(result.code,200)
74+
cellsApi = CellsApi("YourClientId","YourClientSecret","v3.0","https://api.aspose.cloud")
75+
remote_folder = 'TestData/In'
76+
local_name = 'Book1.xlsx'
77+
report_data_xml = 'ReportData.xml'
78+
remote_name = 'Book1.xlsx'
79+
80+
request = PostWorkbookGetSmartMarkerResultRequest( remote_name,xml_file= remote_folder + '/' +report_data_xml,folder= remote_folder,out_path= 'OutResult/SmartMarkerResult.xlsx',storage_name= '',out_storage_name= '')
81+
cellsApi.post_workbook_get_smart_marker_result(request)
9082
```
9183

9284
## Convert Excel to PDF via Python
9385

9486
```python
9587
#Instantiate Aspose Cells API SDK
96-
cellsApi = asposecellscloud.apis.cells_api.CellsApi(GetClientId(),GetClientSecret(),"v3.0")
97-
98-
fullfilename = os.path.dirname(os.path.realpath(__file__)) + "/../TestData/" + "Book1.xlsx"
99-
format ='pdf'
100-
password = None
101-
outPath = None
102-
result = cellsApi.cells_workbook_put_convert_workbook(fullfilename,format=format)
103-
# self.assertEqual(result.code,200)
88+
cellsApi = CellsApi("YourClientId","YourClientSecret","v3.0","https://api.aspose.cloud")
89+
local_name = 'Book1.xlsx'
90+
format = 'pdf'
91+
mapFiles = {
92+
local_name: "TestData/" +local_name
93+
}
94+
request = PutConvertWorkbookRequest( mapFiles,format= format)
95+
cellsApi.put_convert_workbook(request)
10496
```
10597

10698
## Aspose.Cells Cloud SDKs in Popular Languages

asposecellscloud/__init__.py

Lines changed: 732 additions & 616 deletions
Large diffs are not rendered by default.

asposecellscloud/api_client.py

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
# coding: utf-8
21
"""
3-
Copyright (c) 2022 Aspose.Cells Cloud
4-
Permission is hereby granted, free of charge, to any person obtaining a copy
5-
of this software and associated documentation files (the "Software"), to deal
6-
in the Software without restriction, including without limitation the rights
7-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
copies of the Software, and to permit persons to whom the Software is
9-
furnished to do so, subject to the following conditions:
10-
11-
The above copyright notice and this permission notice shall be included in all
12-
copies or substantial portions of the Software.
13-
14-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2+
<copyright company="Aspose" file="api_clientpy.cs">
3+
Copyright (c) 2023 Aspose.Cells Cloud
4+
</copyright>
5+
<summary>
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
</summary>
2024
"""
25+
# coding: utf-8
2126

2227
from __future__ import absolute_import
2328

@@ -83,7 +88,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8388
self.host = host
8489
self.cookie = cookie
8590
# Set default User-Agent.
86-
self.user_agent = 'Aspose.Cells.Cloud/23.8/python'
91+
self.user_agent = 'Swagger-Codegen/23.11/python'
8792

8893
@property
8994
def user_agent(self):
@@ -139,7 +144,7 @@ def __call_api(self, resource_path, method,
139144
# body
140145
if body:
141146
body = self.sanitize_for_serialization(body)
142-
147+
143148
# post parameters
144149
if post_params or files:
145150
body = None
@@ -158,7 +163,7 @@ def __call_api(self, resource_path, method,
158163

159164
# request url
160165
url = self.host + resource_path
161-
166+
162167
preload_content = _preload_content
163168
if response_type == 'file':
164169
preload_content = False
@@ -553,7 +558,7 @@ def __deserialize_file(self, response):
553558
os.close(fd)
554559
os.remove(path)
555560

556-
content_disposition = response.headers.get("Content-Disposition")
561+
content_disposition = response.getheader("Content-Disposition")
557562
if content_disposition:
558563
filename = re.\
559564
search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\
@@ -745,4 +750,4 @@ def get_access_token(self, grant_type, client_id, client_secret, version, **kwar
745750
_preload_content=params.get('_preload_content', True),
746751
_request_timeout=params.get('_request_timeout'),
747752
collection_formats=collection_formats)
748-
return data[0].access_token
753+
return data[0].access_token

0 commit comments

Comments
 (0)