Skip to content

Commit d596ae8

Browse files
committed
Release Aspose.Cells Cloud SDK 22.10
1 parent 214d3e2 commit d596ae8

File tree

6 files changed

+372
-9
lines changed

6 files changed

+372
-9
lines changed

README.md

Lines changed: 5 additions & 5 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/22.9)
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/22.10)
22

33

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

26-
- Add api for converting workbook to png.
27-
- Add api for converting workbook to pdf.
28-
- Add api for converting workbook to docx.
26+
- Add api for converting workbook to pptx.
27+
- Add api for converting workbook to html.
28+
- Add api for converting workbook to markdown.
2929

3030
## Read & Write Spreadsheet Formats
3131

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/22.9/python'
86+
self.user_agent = 'Swagger-Codegen/22.10/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 351 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35159,6 +35159,357 @@ def post_convert_workbook_to_png_with_http_info(self, file, **kwargs):
3515935159
_request_timeout=params.get('_request_timeout'),
3516035160
collection_formats=collection_formats)
3516135161

35162+
def post_convert_workbook_to_pptx(self, file, **kwargs):
35163+
"""
35164+
This method makes a synchronous HTTP request by default. To make an
35165+
asynchronous HTTP request, please define a `callback` function
35166+
to be invoked when receiving the response.
35167+
>>> def callback_function(response):
35168+
>>> pprint(response)
35169+
>>>
35170+
>>> thread = api.post_convert_workbook_to_pptx(file, callback=callback_function)
35171+
35172+
:param callback function: The callback function
35173+
for asynchronous request. (optional)
35174+
:param file file: File to upload (required)
35175+
:param str password:
35176+
:param bool check_excel_restriction:
35177+
:return: FileInfo
35178+
If the method is called asynchronously,
35179+
returns the request thread.
35180+
"""
35181+
kwargs['_return_http_data_only'] = True
35182+
self.check_access_token()
35183+
if kwargs.get('callback'):
35184+
return self.post_convert_workbook_to_pptx_with_http_info(file, **kwargs)
35185+
else:
35186+
(data) = self.post_convert_workbook_to_pptx_with_http_info(file, **kwargs)
35187+
return data
35188+
35189+
def post_convert_workbook_to_pptx_with_http_info(self, file, **kwargs):
35190+
"""
35191+
This method makes a synchronous HTTP request by default. To make an
35192+
asynchronous HTTP request, please define a `callback` function
35193+
to be invoked when receiving the response.
35194+
>>> def callback_function(response):
35195+
>>> pprint(response)
35196+
>>>
35197+
>>> thread = api.post_convert_workbook_to_pptx_with_http_info(file, callback=callback_function)
35198+
35199+
:param callback function: The callback function
35200+
for asynchronous request. (optional)
35201+
:param file file: File to upload (required)
35202+
:param str password:
35203+
:param bool check_excel_restriction:
35204+
:return: FileInfo
35205+
If the method is called asynchronously,
35206+
returns the request thread.
35207+
"""
35208+
35209+
all_params = ['file', 'password', 'check_excel_restriction']
35210+
all_params.append('callback')
35211+
all_params.append('_return_http_data_only')
35212+
all_params.append('_preload_content')
35213+
all_params.append('_request_timeout')
35214+
35215+
params = locals()
35216+
for key, val in iteritems(params['kwargs']):
35217+
if key not in all_params:
35218+
raise TypeError(
35219+
"Got an unexpected keyword argument '%s'"
35220+
" to method post_convert_workbook_to_pptx" % key
35221+
)
35222+
params[key] = val
35223+
del params['kwargs']
35224+
# verify the required parameter 'file' is set
35225+
if ('file' not in params) or (params['file'] is None):
35226+
raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_pptx`")
35227+
35228+
35229+
collection_formats = {}
35230+
35231+
path_params = {}
35232+
35233+
query_params = []
35234+
if 'password' in params:
35235+
query_params.append(('password', params['password']))
35236+
if 'check_excel_restriction' in params:
35237+
query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35238+
35239+
header_params = {}
35240+
35241+
form_params = []
35242+
local_var_files = {}
35243+
if 'file' in params:
35244+
35245+
if isinstance(params['file'],dict):
35246+
for filename , filecontext in params['file'].items():
35247+
local_var_files[filename] = filecontext
35248+
else:
35249+
local_var_files['file'] = params['file']
35250+
35251+
35252+
body_params = None
35253+
# HTTP header `Accept`
35254+
header_params['Accept'] = self.api_client.\
35255+
select_header_accept(['application/json'])
35256+
35257+
# HTTP header `Content-Type`
35258+
header_params['Content-Type'] = self.api_client.\
35259+
select_header_content_type(['multipart/form-data'])
35260+
35261+
# Authentication setting
35262+
auth_settings = []
35263+
35264+
return self.api_client.call_api('/cells/convert/pptx', 'POST',
35265+
path_params,
35266+
query_params,
35267+
header_params,
35268+
body=body_params,
35269+
post_params=form_params,
35270+
files=local_var_files,
35271+
response_type='FileInfo',
35272+
auth_settings=auth_settings,
35273+
callback=params.get('callback'),
35274+
_return_http_data_only=params.get('_return_http_data_only'),
35275+
_preload_content=params.get('_preload_content', True),
35276+
_request_timeout=params.get('_request_timeout'),
35277+
collection_formats=collection_formats)
35278+
35279+
def post_convert_workbook_to_html(self, file, **kwargs):
35280+
"""
35281+
This method makes a synchronous HTTP request by default. To make an
35282+
asynchronous HTTP request, please define a `callback` function
35283+
to be invoked when receiving the response.
35284+
>>> def callback_function(response):
35285+
>>> pprint(response)
35286+
>>>
35287+
>>> thread = api.post_convert_workbook_to_html(file, callback=callback_function)
35288+
35289+
:param callback function: The callback function
35290+
for asynchronous request. (optional)
35291+
:param file file: File to upload (required)
35292+
:param str password:
35293+
:param bool check_excel_restriction:
35294+
:return: FileInfo
35295+
If the method is called asynchronously,
35296+
returns the request thread.
35297+
"""
35298+
kwargs['_return_http_data_only'] = True
35299+
self.check_access_token()
35300+
if kwargs.get('callback'):
35301+
return self.post_convert_workbook_to_html_with_http_info(file, **kwargs)
35302+
else:
35303+
(data) = self.post_convert_workbook_to_html_with_http_info(file, **kwargs)
35304+
return data
35305+
35306+
def post_convert_workbook_to_html_with_http_info(self, file, **kwargs):
35307+
"""
35308+
This method makes a synchronous HTTP request by default. To make an
35309+
asynchronous HTTP request, please define a `callback` function
35310+
to be invoked when receiving the response.
35311+
>>> def callback_function(response):
35312+
>>> pprint(response)
35313+
>>>
35314+
>>> thread = api.post_convert_workbook_to_html_with_http_info(file, callback=callback_function)
35315+
35316+
:param callback function: The callback function
35317+
for asynchronous request. (optional)
35318+
:param file file: File to upload (required)
35319+
:param str password:
35320+
:param bool check_excel_restriction:
35321+
:return: FileInfo
35322+
If the method is called asynchronously,
35323+
returns the request thread.
35324+
"""
35325+
35326+
all_params = ['file', 'password', 'check_excel_restriction']
35327+
all_params.append('callback')
35328+
all_params.append('_return_http_data_only')
35329+
all_params.append('_preload_content')
35330+
all_params.append('_request_timeout')
35331+
35332+
params = locals()
35333+
for key, val in iteritems(params['kwargs']):
35334+
if key not in all_params:
35335+
raise TypeError(
35336+
"Got an unexpected keyword argument '%s'"
35337+
" to method post_convert_workbook_to_html" % key
35338+
)
35339+
params[key] = val
35340+
del params['kwargs']
35341+
# verify the required parameter 'file' is set
35342+
if ('file' not in params) or (params['file'] is None):
35343+
raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_html`")
35344+
35345+
35346+
collection_formats = {}
35347+
35348+
path_params = {}
35349+
35350+
query_params = []
35351+
if 'password' in params:
35352+
query_params.append(('password', params['password']))
35353+
if 'check_excel_restriction' in params:
35354+
query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35355+
35356+
header_params = {}
35357+
35358+
form_params = []
35359+
local_var_files = {}
35360+
if 'file' in params:
35361+
35362+
if isinstance(params['file'],dict):
35363+
for filename , filecontext in params['file'].items():
35364+
local_var_files[filename] = filecontext
35365+
else:
35366+
local_var_files['file'] = params['file']
35367+
35368+
35369+
body_params = None
35370+
# HTTP header `Accept`
35371+
header_params['Accept'] = self.api_client.\
35372+
select_header_accept(['application/json'])
35373+
35374+
# HTTP header `Content-Type`
35375+
header_params['Content-Type'] = self.api_client.\
35376+
select_header_content_type(['multipart/form-data'])
35377+
35378+
# Authentication setting
35379+
auth_settings = []
35380+
35381+
return self.api_client.call_api('/cells/convert/html', 'POST',
35382+
path_params,
35383+
query_params,
35384+
header_params,
35385+
body=body_params,
35386+
post_params=form_params,
35387+
files=local_var_files,
35388+
response_type='FileInfo',
35389+
auth_settings=auth_settings,
35390+
callback=params.get('callback'),
35391+
_return_http_data_only=params.get('_return_http_data_only'),
35392+
_preload_content=params.get('_preload_content', True),
35393+
_request_timeout=params.get('_request_timeout'),
35394+
collection_formats=collection_formats)
35395+
35396+
def post_convert_workbook_to_markdown(self, file, **kwargs):
35397+
"""
35398+
This method makes a synchronous HTTP request by default. To make an
35399+
asynchronous HTTP request, please define a `callback` function
35400+
to be invoked when receiving the response.
35401+
>>> def callback_function(response):
35402+
>>> pprint(response)
35403+
>>>
35404+
>>> thread = api.post_convert_workbook_to_markdown(file, callback=callback_function)
35405+
35406+
:param callback function: The callback function
35407+
for asynchronous request. (optional)
35408+
:param file file: File to upload (required)
35409+
:param str password:
35410+
:param bool check_excel_restriction:
35411+
:return: FileInfo
35412+
If the method is called asynchronously,
35413+
returns the request thread.
35414+
"""
35415+
kwargs['_return_http_data_only'] = True
35416+
self.check_access_token()
35417+
if kwargs.get('callback'):
35418+
return self.post_convert_workbook_to_markdown_with_http_info(file, **kwargs)
35419+
else:
35420+
(data) = self.post_convert_workbook_to_markdown_with_http_info(file, **kwargs)
35421+
return data
35422+
35423+
def post_convert_workbook_to_markdown_with_http_info(self, file, **kwargs):
35424+
"""
35425+
This method makes a synchronous HTTP request by default. To make an
35426+
asynchronous HTTP request, please define a `callback` function
35427+
to be invoked when receiving the response.
35428+
>>> def callback_function(response):
35429+
>>> pprint(response)
35430+
>>>
35431+
>>> thread = api.post_convert_workbook_to_markdown_with_http_info(file, callback=callback_function)
35432+
35433+
:param callback function: The callback function
35434+
for asynchronous request. (optional)
35435+
:param file file: File to upload (required)
35436+
:param str password:
35437+
:param bool check_excel_restriction:
35438+
:return: FileInfo
35439+
If the method is called asynchronously,
35440+
returns the request thread.
35441+
"""
35442+
35443+
all_params = ['file', 'password', 'check_excel_restriction']
35444+
all_params.append('callback')
35445+
all_params.append('_return_http_data_only')
35446+
all_params.append('_preload_content')
35447+
all_params.append('_request_timeout')
35448+
35449+
params = locals()
35450+
for key, val in iteritems(params['kwargs']):
35451+
if key not in all_params:
35452+
raise TypeError(
35453+
"Got an unexpected keyword argument '%s'"
35454+
" to method post_convert_workbook_to_markdown" % key
35455+
)
35456+
params[key] = val
35457+
del params['kwargs']
35458+
# verify the required parameter 'file' is set
35459+
if ('file' not in params) or (params['file'] is None):
35460+
raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_markdown`")
35461+
35462+
35463+
collection_formats = {}
35464+
35465+
path_params = {}
35466+
35467+
query_params = []
35468+
if 'password' in params:
35469+
query_params.append(('password', params['password']))
35470+
if 'check_excel_restriction' in params:
35471+
query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35472+
35473+
header_params = {}
35474+
35475+
form_params = []
35476+
local_var_files = {}
35477+
if 'file' in params:
35478+
35479+
if isinstance(params['file'],dict):
35480+
for filename , filecontext in params['file'].items():
35481+
local_var_files[filename] = filecontext
35482+
else:
35483+
local_var_files['file'] = params['file']
35484+
35485+
35486+
body_params = None
35487+
# HTTP header `Accept`
35488+
header_params['Accept'] = self.api_client.\
35489+
select_header_accept(['application/json'])
35490+
35491+
# HTTP header `Content-Type`
35492+
header_params['Content-Type'] = self.api_client.\
35493+
select_header_content_type(['multipart/form-data'])
35494+
35495+
# Authentication setting
35496+
auth_settings = []
35497+
35498+
return self.api_client.call_api('/cells/convert/markdown', 'POST',
35499+
path_params,
35500+
query_params,
35501+
header_params,
35502+
body=body_params,
35503+
post_params=form_params,
35504+
files=local_var_files,
35505+
response_type='FileInfo',
35506+
auth_settings=auth_settings,
35507+
callback=params.get('callback'),
35508+
_return_http_data_only=params.get('_return_http_data_only'),
35509+
_preload_content=params.get('_preload_content', True),
35510+
_request_timeout=params.get('_request_timeout'),
35511+
collection_formats=collection_formats)
35512+
3516235513
def storage_exists(self, storage_name, **kwargs):
3516335514
"""
3516435515
Check if storage exists

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: 22.9\n"\
258-
"SDK Package Version: 22.9".\
257+
"Version of the API: 22.10\n"\
258+
"SDK Package Version: 22.10".\
259259
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)