Skip to content

Commit

Permalink
Release Aspose.Cells Cloud 24.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Sep 18, 2024
1 parent aa67484 commit 642b6cd
Show file tree
Hide file tree
Showing 59 changed files with 502 additions and 651 deletions.
23 changes: 23 additions & 0 deletions Examples/Example_PostUpdateWordCase.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import os
import sys
from asposecellscloud.apis.cells_api import CellsApi
from asposecellscloud.models import *
from asposecellscloud.requests import *

api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
remote_folder = 'TestData/In'

local_name = 'BookText.xlsx'
remote_name = 'BookText.xlsx'

wordCaseOptionsDataSource = DataSource(data_source_type= 'CloudFileSystem' ,data_path= 'BookText.xlsx' )
wordCaseOptionsScopeOptions = ScopeOptions(scope= 'EntireWorkbook' )
wordCaseOptions = WordCaseOptions(data_source= wordCaseOptionsDataSource ,word_case_type= 'None' ,scope_options= wordCaseOptionsScopeOptions )
mapFiles = {
local_name: local_name
}
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
api.upload_file(request)

request = PostUpdateWordCaseRequest( wordCaseOptions)
api.post_update_word_case(request)
4 changes: 3 additions & 1 deletion Examples/Example_PostWorkbookDataDeduplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
local_name = 'BookCsvDuplicateData.csv'
remote_name = 'BookCsvDuplicateData.csv'

deduplicationRegion = DeduplicationRegion()
deduplicationRegionRanges = [
]
deduplicationRegion = DeduplicationRegion(ranges= deduplicationRegionRanges )
mapFiles = {
local_name: local_name
}
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](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)
![](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)

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.

Expand All @@ -19,11 +19,12 @@ Enhance your Python applications with the [Aspose.Cells Cloud](https://products.
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
- 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.

## Feature & Enhancements in Version 24.8
## Feature & Enhancements in Version 24.9

Full list of issues covering all changes in this release:

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

## Support file format

Expand Down Expand Up @@ -120,6 +121,11 @@ api.put_convert_workbook(request)

# Release history version


## Enhancements in Version 24.8

- Add the text trim feature on Cells Cloud Services.

## Enhancements in Version 24.7

- Add a new feature about adding text content.
Expand Down
2 changes: 2 additions & 0 deletions asposecellscloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
from asposecellscloud.models.scope_item import ScopeItem
from asposecellscloud.models.scope_options import ScopeOptions
from asposecellscloud.models.trim_content_options import TrimContentOptions
from asposecellscloud.models.word_case_options import WordCaseOptions
from asposecellscloud.models.cell_value import CellValue
from asposecellscloud.models.custom_parser_config import CustomParserConfig
from asposecellscloud.models.import2_dimension_double_array_option import Import2DimensionDoubleArrayOption
Expand Down Expand Up @@ -697,6 +698,7 @@
from asposecellscloud.requests.post_run_task_request import PostRunTaskRequest
from asposecellscloud.requests.post_add_text_content_request import PostAddTextContentRequest
from asposecellscloud.requests.post_trim_content_request import PostTrimContentRequest
from asposecellscloud.requests.post_update_word_case_request import PostUpdateWordCaseRequest
from asposecellscloud.requests.get_workbook_default_style_request import GetWorkbookDefaultStyleRequest
from asposecellscloud.requests.get_workbook_text_items_request import GetWorkbookTextItemsRequest
from asposecellscloud.requests.get_workbook_names_request import GetWorkbookNamesRequest
Expand Down
4 changes: 2 additions & 2 deletions asposecellscloud/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
self.host = host
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Aspose.Cells.Cloud/24.8/python'
self.user_agent = 'Aspose.Cells.Cloud/24.9/python'

@property
def user_agent(self):
Expand Down Expand Up @@ -163,7 +163,7 @@ def __call_api(self, resource_path, method,

# request url
url = self.host + resource_path

preload_content = _preload_content
if response_type == 'file':
preload_content = False
Expand Down
47 changes: 47 additions & 0 deletions asposecellscloud/apis/cells_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12367,6 +12367,53 @@ def post_trim_content_with_http_info(self, request, **kwargs):



# <summary>
# </summary>
# <param name="request">Request. <see cref="PostUpdateWordCaseRequest" /></param>
def post_update_word_case(self, request, **kwargs):

kwargs['_return_http_data_only'] = True
self.check_access_token()
if kwargs.get('callback'):
return self.post_update_word_case_with_http_info(request,**kwargs)
else:
(data) = self.post_update_word_case_with_http_info(request,**kwargs)
return data

def post_update_word_case_with_http_info(self, request, **kwargs):
all_params = []
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method post_update_word_case" % key
)
params[key] = val
del params['kwargs']

http_params = request.create_http_request(self.api_client)
return self.api_client.call_api(http_params['path'], http_params['method'],
None,
http_params['query_params'],
http_params['header_params'],
body=http_params['body'],
post_params=http_params['form_params'],
files=http_params['files'],
response_type=http_params['response_type'],
auth_settings=http_params['auth_settings'],
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=http_params['collection_formats'])



# <summary>
# Retrieve the description of the default style for the workbook .
# </summary>
Expand Down
2 changes: 1 addition & 1 deletion asposecellscloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v3.0\n"\
"SDK Package Version: 24.8".\
"SDK Package Version: 24.9".\
format(env=sys.platform, pyversion=sys.version)
1 change: 1 addition & 0 deletions asposecellscloud/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@
from asposecellscloud.models.scope_item import ScopeItem
from asposecellscloud.models.scope_options import ScopeOptions
from asposecellscloud.models.trim_content_options import TrimContentOptions
from asposecellscloud.models.word_case_options import WordCaseOptions
from asposecellscloud.models.cell_value import CellValue
from asposecellscloud.models.custom_parser_config import CustomParserConfig
from asposecellscloud.models.import2_dimension_double_array_option import Import2DimensionDoubleArrayOption
Expand Down
18 changes: 17 additions & 1 deletion asposecellscloud/models/html_save_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class HtmlSaveOptions(object):
'is_exp_image_to_temp_dir' : 'bool',
'page_title' : 'str',
'parse_html_tag_in_cell' : 'bool',
'cell_name_attribute' : 'str',
'save_format' : 'str',
'cached_file_folder' : 'str',
'clear_data' : 'bool',
Expand Down Expand Up @@ -132,6 +133,7 @@ class HtmlSaveOptions(object):
'is_exp_image_to_temp_dir' : 'IsExpImageToTempDir' ,
'page_title' : 'PageTitle' ,
'parse_html_tag_in_cell' : 'ParseHtmlTagInCell' ,
'cell_name_attribute' : 'CellNameAttribute' ,
'save_format' : 'SaveFormat' ,
'cached_file_folder' : 'CachedFileFolder' ,
'clear_data' : 'ClearData' ,
Expand All @@ -155,7 +157,7 @@ def get_from_container(self, attr):
return self.container[attr]
return None

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):
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):
"""
Associative dict for storing property values
"""
Expand Down Expand Up @@ -202,6 +204,7 @@ def __init__(self,export_page_headers=None ,export_page_footers=None ,export_row
self.container['is_exp_image_to_temp_dir'] = None
self.container['page_title'] = None
self.container['parse_html_tag_in_cell'] = None
self.container['cell_name_attribute'] = None
self.container['save_format'] = None
self.container['cached_file_folder'] = None
self.container['clear_data'] = None
Expand Down Expand Up @@ -439,6 +442,12 @@ def __init__(self,export_page_headers=None ,export_page_footers=None ,export_row



self.cell_name_attribute = cell_name_attribute
if 'cell_name_attribute' in params:
self.cell_name_attribute = params["cell_name_attribute"]



self.save_format = save_format
if 'save_format' in params:
self.save_format = params["save_format"]
Expand Down Expand Up @@ -755,6 +764,13 @@ def parse_html_tag_in_cell(self):
def parse_html_tag_in_cell(self, parse_html_tag_in_cell):
self.container['parse_html_tag_in_cell'] = parse_html_tag_in_cell
@property
def cell_name_attribute(self):
return self.container['cell_name_attribute']

@cell_name_attribute.setter
def cell_name_attribute(self, cell_name_attribute):
self.container['cell_name_attribute'] = cell_name_attribute
@property
def save_format(self):
return self.container['save_format']

Expand Down
18 changes: 17 additions & 1 deletion asposecellscloud/models/protect_workbook_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ProtectWorkbookRequest(object):
'aways_open_read_only' : 'bool',
'encrypt_with_password' : 'str',
'protect_current_sheet' : 'Protection',
'protect_all_sheets' : 'Protection',
'protect_workbook_structure' : 'str',
'digital_signature' : 'DigitalSignature',
'mark_as_final' : 'bool'
Expand All @@ -57,6 +58,7 @@ class ProtectWorkbookRequest(object):
'aways_open_read_only' : 'AwaysOpenReadOnly' ,
'encrypt_with_password' : 'EncryptWithPassword' ,
'protect_current_sheet' : 'ProtectCurrentSheet' ,
'protect_all_sheets' : 'ProtectAllSheets' ,
'protect_workbook_structure' : 'ProtectWorkbookStructure' ,
'digital_signature' : 'DigitalSignature' ,
'mark_as_final' : 'MarkAsFinal'
Expand All @@ -75,7 +77,7 @@ def get_from_container(self, attr):
return self.container[attr]
return None

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):
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):
"""
Associative dict for storing property values
"""
Expand All @@ -87,6 +89,7 @@ def __init__(self,aways_open_read_only=None ,encrypt_with_password=None ,protect
self.container['aways_open_read_only'] = None
self.container['encrypt_with_password'] = None
self.container['protect_current_sheet'] = None
self.container['protect_all_sheets'] = None
self.container['protect_workbook_structure'] = None
self.container['digital_signature'] = None
self.container['mark_as_final'] = None
Expand All @@ -109,6 +112,12 @@ def __init__(self,aways_open_read_only=None ,encrypt_with_password=None ,protect



self.protect_all_sheets = protect_all_sheets
if 'protect_all_sheets' in params:
self.protect_all_sheets = params["protect_all_sheets"]



self.protect_workbook_structure = protect_workbook_structure
if 'protect_workbook_structure' in params:
self.protect_workbook_structure = params["protect_workbook_structure"]
Expand Down Expand Up @@ -150,6 +159,13 @@ def protect_current_sheet(self):
def protect_current_sheet(self, protect_current_sheet):
self.container['protect_current_sheet'] = protect_current_sheet
@property
def protect_all_sheets(self):
return self.container['protect_all_sheets']

@protect_all_sheets.setter
def protect_all_sheets(self, protect_all_sheets):
self.container['protect_all_sheets'] = protect_all_sheets
@property
def protect_workbook_structure(self):
return self.container['protect_workbook_structure']

Expand Down
22 changes: 19 additions & 3 deletions asposecellscloud/models/text_water_marker_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ class TextWaterMarkerRequest(object):
'font_name' : 'str',
'font_size' : 'int',
'height' : 'int',
'width' : 'int'
'width' : 'int',
'image_adapt_option' : 'str'
}

attribute_map = {
'text' : 'Text' ,
'font_name' : 'FontName' ,
'font_size' : 'FontSize' ,
'height' : 'Height' ,
'width' : 'Width'
'width' : 'Width' ,
'image_adapt_option' : 'ImageAdaptOption'
}

@staticmethod
Expand All @@ -73,7 +75,7 @@ def get_from_container(self, attr):
return self.container[attr]
return None

def __init__(self,text=None ,font_name=None ,font_size=None ,height=None ,width=None ,**kw):
def __init__(self,text=None ,font_name=None ,font_size=None ,height=None ,width=None ,image_adapt_option=None ,**kw):
"""
Associative dict for storing property values
"""
Expand All @@ -87,6 +89,7 @@ def __init__(self,text=None ,font_name=None ,font_size=None ,height=None ,width=
self.container['font_size'] = None
self.container['height'] = None
self.container['width'] = None
self.container['image_adapt_option'] = None
params = locals()
self.text = text
if 'text' in params:
Expand Down Expand Up @@ -118,6 +121,12 @@ def __init__(self,text=None ,font_name=None ,font_size=None ,height=None ,width=



self.image_adapt_option = image_adapt_option
if 'image_adapt_option' in params:
self.image_adapt_option = params["image_adapt_option"]




@property
def text(self):
Expand Down Expand Up @@ -154,6 +163,13 @@ def width(self):
@width.setter
def width(self, width):
self.container['width'] = width
@property
def image_adapt_option(self):
return self.container['image_adapt_option']

@image_adapt_option.setter
def image_adapt_option(self, image_adapt_option):
self.container['image_adapt_option'] = image_adapt_option

def to_dict(self):
"""
Expand Down
Loading

0 comments on commit 642b6cd

Please sign in to comment.