Skip to content

Commit 642b6cd

Browse files
committed
Release Aspose.Cells Cloud 24.9.
1 parent aa67484 commit 642b6cd

File tree

59 files changed

+502
-651
lines changed

Some content is hidden

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

59 files changed

+502
-651
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'BookText.xlsx'
11+
remote_name = 'BookText.xlsx'
12+
13+
wordCaseOptionsDataSource = DataSource(data_source_type= 'CloudFileSystem' ,data_path= 'BookText.xlsx' )
14+
wordCaseOptionsScopeOptions = ScopeOptions(scope= 'EntireWorkbook' )
15+
wordCaseOptions = WordCaseOptions(data_source= wordCaseOptionsDataSource ,word_case_type= 'None' ,scope_options= wordCaseOptionsScopeOptions )
16+
mapFiles = {
17+
local_name: local_name
18+
}
19+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
20+
api.upload_file(request)
21+
22+
request = PostUpdateWordCaseRequest( wordCaseOptions)
23+
api.post_update_word_case(request)

Examples/Example_PostWorkbookDataDeduplication.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
local_name = 'BookCsvDuplicateData.csv'
1111
remote_name = 'BookCsvDuplicateData.csv'
1212

13-
deduplicationRegion = DeduplicationRegion()
13+
deduplicationRegionRanges = [
14+
]
15+
deduplicationRegion = DeduplicationRegion(ranges= deduplicationRegionRanges )
1416
mapFiles = {
1517
local_name: local_name
1618
}

README.md

Lines changed: 9 additions & 3 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.8)
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.9)
22

33
Aspose.Cells Cloud for Python enables you to handle various aspects of Excel files, including cell data, styles, formulas, charts, pivot tables, data validation, comments, drawing objects, images, hyperlinks, and so on. Additionally, it supports operations such as splitting, merging, repairing, and converting to other compatible file formats.
44

@@ -19,11 +19,12 @@ Enhance your Python applications with the [Aspose.Cells Cloud](https://products.
1919
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
2020
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
2121

22-
## Feature & Enhancements in Version 24.8
22+
## Feature & Enhancements in Version 24.9
2323

2424
Full list of issues covering all changes in this release:
2525

26-
- Add the text trim feature on Cells Cloud Services.
26+
- Add word case function for TextProcessingController.
27+
- Support to export Worksheet to HTML with cell address or id.
2728

2829
## Support file format
2930

@@ -120,6 +121,11 @@ api.put_convert_workbook(request)
120121

121122
# Release history version
122123

124+
125+
## Enhancements in Version 24.8
126+
127+
- Add the text trim feature on Cells Cloud Services.
128+
123129
## Enhancements in Version 24.7
124130

125131
- Add a new feature about adding text content.

asposecellscloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
from asposecellscloud.models.scope_item import ScopeItem
349349
from asposecellscloud.models.scope_options import ScopeOptions
350350
from asposecellscloud.models.trim_content_options import TrimContentOptions
351+
from asposecellscloud.models.word_case_options import WordCaseOptions
351352
from asposecellscloud.models.cell_value import CellValue
352353
from asposecellscloud.models.custom_parser_config import CustomParserConfig
353354
from asposecellscloud.models.import2_dimension_double_array_option import Import2DimensionDoubleArrayOption
@@ -697,6 +698,7 @@
697698
from asposecellscloud.requests.post_run_task_request import PostRunTaskRequest
698699
from asposecellscloud.requests.post_add_text_content_request import PostAddTextContentRequest
699700
from asposecellscloud.requests.post_trim_content_request import PostTrimContentRequest
701+
from asposecellscloud.requests.post_update_word_case_request import PostUpdateWordCaseRequest
700702
from asposecellscloud.requests.get_workbook_default_style_request import GetWorkbookDefaultStyleRequest
701703
from asposecellscloud.requests.get_workbook_text_items_request import GetWorkbookTextItemsRequest
702704
from asposecellscloud.requests.get_workbook_names_request import GetWorkbookNamesRequest

asposecellscloud/api_client.py

Lines changed: 2 additions & 2 deletions
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.8/python'
91+
self.user_agent = 'Aspose.Cells.Cloud/24.9/python'
9292

9393
@property
9494
def user_agent(self):
@@ -163,7 +163,7 @@ def __call_api(self, resource_path, method,
163163

164164
# request url
165165
url = self.host + resource_path
166-
166+
167167
preload_content = _preload_content
168168
if response_type == 'file':
169169
preload_content = False

asposecellscloud/apis/cells_api.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12367,6 +12367,53 @@ def post_trim_content_with_http_info(self, request, **kwargs):
1236712367

1236812368

1236912369

12370+
# <summary>
12371+
# </summary>
12372+
# <param name="request">Request. <see cref="PostUpdateWordCaseRequest" /></param>
12373+
def post_update_word_case(self, request, **kwargs):
12374+
12375+
kwargs['_return_http_data_only'] = True
12376+
self.check_access_token()
12377+
if kwargs.get('callback'):
12378+
return self.post_update_word_case_with_http_info(request,**kwargs)
12379+
else:
12380+
(data) = self.post_update_word_case_with_http_info(request,**kwargs)
12381+
return data
12382+
12383+
def post_update_word_case_with_http_info(self, request, **kwargs):
12384+
all_params = []
12385+
all_params.append('callback')
12386+
all_params.append('_return_http_data_only')
12387+
all_params.append('_preload_content')
12388+
all_params.append('_request_timeout')
12389+
params = locals()
12390+
for key, val in iteritems(params['kwargs']):
12391+
if key not in all_params:
12392+
raise TypeError(
12393+
"Got an unexpected keyword argument '%s'"
12394+
" to method post_update_word_case" % key
12395+
)
12396+
params[key] = val
12397+
del params['kwargs']
12398+
12399+
http_params = request.create_http_request(self.api_client)
12400+
return self.api_client.call_api(http_params['path'], http_params['method'],
12401+
None,
12402+
http_params['query_params'],
12403+
http_params['header_params'],
12404+
body=http_params['body'],
12405+
post_params=http_params['form_params'],
12406+
files=http_params['files'],
12407+
response_type=http_params['response_type'],
12408+
auth_settings=http_params['auth_settings'],
12409+
callback=params.get('callback'),
12410+
_return_http_data_only=params.get('_return_http_data_only'),
12411+
_preload_content=params.get('_preload_content', True),
12412+
_request_timeout=params.get('_request_timeout'),
12413+
collection_formats=http_params['collection_formats'])
12414+
12415+
12416+
1237012417
# <summary>
1237112418
# Retrieve the description of the default style for the workbook .
1237212419
# </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.8".\
262+
"SDK Package Version: 24.9".\
263263
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
@@ -349,6 +349,7 @@
349349
from asposecellscloud.models.scope_item import ScopeItem
350350
from asposecellscloud.models.scope_options import ScopeOptions
351351
from asposecellscloud.models.trim_content_options import TrimContentOptions
352+
from asposecellscloud.models.word_case_options import WordCaseOptions
352353
from asposecellscloud.models.cell_value import CellValue
353354
from asposecellscloud.models.custom_parser_config import CustomParserConfig
354355
from asposecellscloud.models.import2_dimension_double_array_option import Import2DimensionDoubleArrayOption

asposecellscloud/models/html_save_options.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class HtmlSaveOptions(object):
8383
'is_exp_image_to_temp_dir' : 'bool',
8484
'page_title' : 'str',
8585
'parse_html_tag_in_cell' : 'bool',
86+
'cell_name_attribute' : 'str',
8687
'save_format' : 'str',
8788
'cached_file_folder' : 'str',
8889
'clear_data' : 'bool',
@@ -132,6 +133,7 @@ class HtmlSaveOptions(object):
132133
'is_exp_image_to_temp_dir' : 'IsExpImageToTempDir' ,
133134
'page_title' : 'PageTitle' ,
134135
'parse_html_tag_in_cell' : 'ParseHtmlTagInCell' ,
136+
'cell_name_attribute' : 'CellNameAttribute' ,
135137
'save_format' : 'SaveFormat' ,
136138
'cached_file_folder' : 'CachedFileFolder' ,
137139
'clear_data' : 'ClearData' ,
@@ -155,7 +157,7 @@ def get_from_container(self, attr):
155157
return self.container[attr]
156158
return None
157159

158-
def __init__(self,export_page_headers=None ,export_page_footers=None ,export_row_column_headings=None ,show_all_sheets=None ,image_options=None ,save_as_single_file=None ,export_hidden_worksheet=None ,export_grid_lines=None ,presentation_preference=None ,cell_css_prefix=None ,table_css_id=None ,is_full_path_link=None ,export_worksheet_css_separately=None ,export_similar_border_style=None ,merge_empty_td_forcely=None ,export_cell_coordinate=None ,export_extra_headings=None ,export_headings=None ,export_formula=None ,add_tooltip_text=None ,export_bogus_row_data=None ,exclude_unused_styles=None ,export_document_properties=None ,export_worksheet_properties=None ,export_workbook_properties=None ,export_frame_scripts_and_properties=None ,attached_files_directory=None ,attached_files_url_prefix=None ,encoding=None ,export_active_worksheet_only=None ,export_chart_image_format=None ,export_images_as_base64=None ,hidden_col_display_type=None ,hidden_row_display_type=None ,html_cross_string_type=None ,is_exp_image_to_temp_dir=None ,page_title=None ,parse_html_tag_in_cell=None ,save_format=None ,cached_file_folder=None ,clear_data=None ,create_directory=None ,enable_http_compression=None ,refresh_chart_cache=None ,sort_names=None ,validate_merged_areas=None ,**kw):
160+
def __init__(self,export_page_headers=None ,export_page_footers=None ,export_row_column_headings=None ,show_all_sheets=None ,image_options=None ,save_as_single_file=None ,export_hidden_worksheet=None ,export_grid_lines=None ,presentation_preference=None ,cell_css_prefix=None ,table_css_id=None ,is_full_path_link=None ,export_worksheet_css_separately=None ,export_similar_border_style=None ,merge_empty_td_forcely=None ,export_cell_coordinate=None ,export_extra_headings=None ,export_headings=None ,export_formula=None ,add_tooltip_text=None ,export_bogus_row_data=None ,exclude_unused_styles=None ,export_document_properties=None ,export_worksheet_properties=None ,export_workbook_properties=None ,export_frame_scripts_and_properties=None ,attached_files_directory=None ,attached_files_url_prefix=None ,encoding=None ,export_active_worksheet_only=None ,export_chart_image_format=None ,export_images_as_base64=None ,hidden_col_display_type=None ,hidden_row_display_type=None ,html_cross_string_type=None ,is_exp_image_to_temp_dir=None ,page_title=None ,parse_html_tag_in_cell=None ,cell_name_attribute=None ,save_format=None ,cached_file_folder=None ,clear_data=None ,create_directory=None ,enable_http_compression=None ,refresh_chart_cache=None ,sort_names=None ,validate_merged_areas=None ,**kw):
159161
"""
160162
Associative dict for storing property values
161163
"""
@@ -202,6 +204,7 @@ def __init__(self,export_page_headers=None ,export_page_footers=None ,export_row
202204
self.container['is_exp_image_to_temp_dir'] = None
203205
self.container['page_title'] = None
204206
self.container['parse_html_tag_in_cell'] = None
207+
self.container['cell_name_attribute'] = None
205208
self.container['save_format'] = None
206209
self.container['cached_file_folder'] = None
207210
self.container['clear_data'] = None
@@ -439,6 +442,12 @@ def __init__(self,export_page_headers=None ,export_page_footers=None ,export_row
439442

440443

441444

445+
self.cell_name_attribute = cell_name_attribute
446+
if 'cell_name_attribute' in params:
447+
self.cell_name_attribute = params["cell_name_attribute"]
448+
449+
450+
442451
self.save_format = save_format
443452
if 'save_format' in params:
444453
self.save_format = params["save_format"]
@@ -755,6 +764,13 @@ def parse_html_tag_in_cell(self):
755764
def parse_html_tag_in_cell(self, parse_html_tag_in_cell):
756765
self.container['parse_html_tag_in_cell'] = parse_html_tag_in_cell
757766
@property
767+
def cell_name_attribute(self):
768+
return self.container['cell_name_attribute']
769+
770+
@cell_name_attribute.setter
771+
def cell_name_attribute(self, cell_name_attribute):
772+
self.container['cell_name_attribute'] = cell_name_attribute
773+
@property
758774
def save_format(self):
759775
return self.container['save_format']
760776

asposecellscloud/models/protect_workbook_request.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class ProtectWorkbookRequest(object):
4848
'aways_open_read_only' : 'bool',
4949
'encrypt_with_password' : 'str',
5050
'protect_current_sheet' : 'Protection',
51+
'protect_all_sheets' : 'Protection',
5152
'protect_workbook_structure' : 'str',
5253
'digital_signature' : 'DigitalSignature',
5354
'mark_as_final' : 'bool'
@@ -57,6 +58,7 @@ class ProtectWorkbookRequest(object):
5758
'aways_open_read_only' : 'AwaysOpenReadOnly' ,
5859
'encrypt_with_password' : 'EncryptWithPassword' ,
5960
'protect_current_sheet' : 'ProtectCurrentSheet' ,
61+
'protect_all_sheets' : 'ProtectAllSheets' ,
6062
'protect_workbook_structure' : 'ProtectWorkbookStructure' ,
6163
'digital_signature' : 'DigitalSignature' ,
6264
'mark_as_final' : 'MarkAsFinal'
@@ -75,7 +77,7 @@ def get_from_container(self, attr):
7577
return self.container[attr]
7678
return None
7779

78-
def __init__(self,aways_open_read_only=None ,encrypt_with_password=None ,protect_current_sheet=None ,protect_workbook_structure=None ,digital_signature=None ,mark_as_final=None ,**kw):
80+
def __init__(self,aways_open_read_only=None ,encrypt_with_password=None ,protect_current_sheet=None ,protect_all_sheets=None ,protect_workbook_structure=None ,digital_signature=None ,mark_as_final=None ,**kw):
7981
"""
8082
Associative dict for storing property values
8183
"""
@@ -87,6 +89,7 @@ def __init__(self,aways_open_read_only=None ,encrypt_with_password=None ,protect
8789
self.container['aways_open_read_only'] = None
8890
self.container['encrypt_with_password'] = None
8991
self.container['protect_current_sheet'] = None
92+
self.container['protect_all_sheets'] = None
9093
self.container['protect_workbook_structure'] = None
9194
self.container['digital_signature'] = None
9295
self.container['mark_as_final'] = None
@@ -109,6 +112,12 @@ def __init__(self,aways_open_read_only=None ,encrypt_with_password=None ,protect
109112

110113

111114

115+
self.protect_all_sheets = protect_all_sheets
116+
if 'protect_all_sheets' in params:
117+
self.protect_all_sheets = params["protect_all_sheets"]
118+
119+
120+
112121
self.protect_workbook_structure = protect_workbook_structure
113122
if 'protect_workbook_structure' in params:
114123
self.protect_workbook_structure = params["protect_workbook_structure"]
@@ -150,6 +159,13 @@ def protect_current_sheet(self):
150159
def protect_current_sheet(self, protect_current_sheet):
151160
self.container['protect_current_sheet'] = protect_current_sheet
152161
@property
162+
def protect_all_sheets(self):
163+
return self.container['protect_all_sheets']
164+
165+
@protect_all_sheets.setter
166+
def protect_all_sheets(self, protect_all_sheets):
167+
self.container['protect_all_sheets'] = protect_all_sheets
168+
@property
153169
def protect_workbook_structure(self):
154170
return self.container['protect_workbook_structure']
155171

0 commit comments

Comments
 (0)