Skip to content

Commit f56798c

Browse files
committed
Add the new feature about removing characters on TextProcessingController.
1 parent 642b6cd commit f56798c

18 files changed

+834
-20
lines changed

README.md

Lines changed: 8 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.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/24.10)
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,12 +19,11 @@ 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.9
22+
## Feature & Enhancements in Version 24.10
2323

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

26-
- Add word case function for TextProcessingController.
27-
- Support to export Worksheet to HTML with cell address or id.
26+
- Add the new feature about removing characters on TextProcessingController.
2827

2928
## Support file format
3029

@@ -121,14 +120,16 @@ api.put_convert_workbook(request)
121120

122121
# Release history version
123122

123+
## Enhancements in Version 24.9
124124

125-
## Enhancements in Version 24.8
125+
- Add word case function for TextProcessingController.
126+
- Support to export Worksheet to HTML with cell address or id.
126127

127128
- Add the text trim feature on Cells Cloud Services.
128129

129-
## Enhancements in Version 24.7
130+
## Enhancements in Version 24.7
130131

131-
- Add a new feature about adding text content.
132+
- Add a new feature about adding text content.
132133
- Add get access token by client id and client secret.
133134

134135
## Enhancements in Version 24.6

TestPythonSDK.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
python ./test/run_test.py
2-
# $files = Get-ChildItem .\test\tests*.py
3-
# foreach( $file in $files )
4-
# {
5-
# Write-Host $file
6-
# # python $file
7-
# Write-Host "Sleep 10"
8-
# # sleep 10
9-
# }
1+
python ./test/run_test.py

asposecellscloud/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@
345345
from asposecellscloud.models.pivot_tables import PivotTables
346346
from asposecellscloud.models.add_text_options import AddTextOptions
347347
from asposecellscloud.models.base_operate_options import BaseOperateOptions
348+
from asposecellscloud.models.remove_characters_by_character import RemoveCharactersByCharacter
349+
from asposecellscloud.models.remove_characters_by_position import RemoveCharactersByPosition
350+
from asposecellscloud.models.remove_characters_options import RemoveCharactersOptions
348351
from asposecellscloud.models.scope_item import ScopeItem
349352
from asposecellscloud.models.scope_options import ScopeOptions
350353
from asposecellscloud.models.trim_content_options import TrimContentOptions
@@ -699,6 +702,7 @@
699702
from asposecellscloud.requests.post_add_text_content_request import PostAddTextContentRequest
700703
from asposecellscloud.requests.post_trim_content_request import PostTrimContentRequest
701704
from asposecellscloud.requests.post_update_word_case_request import PostUpdateWordCaseRequest
705+
from asposecellscloud.requests.post_remove_characters_request import PostRemoveCharactersRequest
702706
from asposecellscloud.requests.get_workbook_default_style_request import GetWorkbookDefaultStyleRequest
703707
from asposecellscloud.requests.get_workbook_text_items_request import GetWorkbookTextItemsRequest
704708
from asposecellscloud.requests.get_workbook_names_request import GetWorkbookNamesRequest

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.9/python'
91+
self.user_agent = 'Aspose.Cells.Cloud/24.10/python'
9292

9393
@property
9494
def user_agent(self):

asposecellscloud/apis/cells_api.py

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

1241512415

1241612416

12417+
# <summary>
12418+
# </summary>
12419+
# <param name="request">Request. <see cref="PostRemoveCharactersRequest" /></param>
12420+
def post_remove_characters(self, request, **kwargs):
12421+
12422+
kwargs['_return_http_data_only'] = True
12423+
self.check_access_token()
12424+
if kwargs.get('callback'):
12425+
return self.post_remove_characters_with_http_info(request,**kwargs)
12426+
else:
12427+
(data) = self.post_remove_characters_with_http_info(request,**kwargs)
12428+
return data
12429+
12430+
def post_remove_characters_with_http_info(self, request, **kwargs):
12431+
all_params = []
12432+
all_params.append('callback')
12433+
all_params.append('_return_http_data_only')
12434+
all_params.append('_preload_content')
12435+
all_params.append('_request_timeout')
12436+
params = locals()
12437+
for key, val in iteritems(params['kwargs']):
12438+
if key not in all_params:
12439+
raise TypeError(
12440+
"Got an unexpected keyword argument '%s'"
12441+
" to method post_remove_characters" % key
12442+
)
12443+
params[key] = val
12444+
del params['kwargs']
12445+
12446+
http_params = request.create_http_request(self.api_client)
12447+
return self.api_client.call_api(http_params['path'], http_params['method'],
12448+
None,
12449+
http_params['query_params'],
12450+
http_params['header_params'],
12451+
body=http_params['body'],
12452+
post_params=http_params['form_params'],
12453+
files=http_params['files'],
12454+
response_type=http_params['response_type'],
12455+
auth_settings=http_params['auth_settings'],
12456+
callback=params.get('callback'),
12457+
_return_http_data_only=params.get('_return_http_data_only'),
12458+
_preload_content=params.get('_preload_content', True),
12459+
_request_timeout=params.get('_request_timeout'),
12460+
collection_formats=http_params['collection_formats'])
12461+
12462+
12463+
1241712464
# <summary>
1241812465
# Retrieve the description of the default style for the workbook .
1241912466
# </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.9".\
262+
"SDK Package Version: 24.10".\
263263
format(env=sys.platform, pyversion=sys.version)

asposecellscloud/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@
346346
from asposecellscloud.models.pivot_tables import PivotTables
347347
from asposecellscloud.models.add_text_options import AddTextOptions
348348
from asposecellscloud.models.base_operate_options import BaseOperateOptions
349+
from asposecellscloud.models.remove_characters_by_character import RemoveCharactersByCharacter
350+
from asposecellscloud.models.remove_characters_by_position import RemoveCharactersByPosition
351+
from asposecellscloud.models.remove_characters_options import RemoveCharactersOptions
349352
from asposecellscloud.models.scope_item import ScopeItem
350353
from asposecellscloud.models.scope_options import ScopeOptions
351354
from asposecellscloud.models.trim_content_options import TrimContentOptions
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="RemoveCharactersByCharacterpy.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 RemoveCharactersByCharacter(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+
'remove_text_method' : 'str',
49+
'remove_characters' : 'list[str]',
50+
'remove_character_sets_type' : 'str'
51+
}
52+
53+
attribute_map = {
54+
'remove_text_method' : 'RemoveTextMethod' ,
55+
'remove_characters' : 'RemoveCharacters' ,
56+
'remove_character_sets_type' : 'RemoveCharacterSetsType'
57+
}
58+
59+
@staticmethod
60+
def get_swagger_types():
61+
return RemoveCharactersByCharacter.swagger_types
62+
63+
@staticmethod
64+
def get_attribute_map():
65+
return RemoveCharactersByCharacter.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,remove_text_method=None ,remove_characters=None ,remove_character_sets_type=None ,**kw):
73+
"""
74+
Associative dict for storing property values
75+
"""
76+
self.container = {}
77+
78+
"""
79+
RemoveCharactersByCharacter - a model defined in Swagger
80+
"""
81+
self.container['remove_text_method'] = None
82+
self.container['remove_characters'] = None
83+
self.container['remove_character_sets_type'] = None
84+
params = locals()
85+
self.remove_text_method = remove_text_method
86+
if 'remove_text_method' in params:
87+
self.remove_text_method = params["remove_text_method"]
88+
89+
90+
91+
self.remove_characters = remove_characters
92+
if 'remove_characters' in params:
93+
self.remove_characters = params["remove_characters"]
94+
95+
96+
97+
self.remove_character_sets_type = remove_character_sets_type
98+
if 'remove_character_sets_type' in params:
99+
self.remove_character_sets_type = params["remove_character_sets_type"]
100+
101+
102+
103+
104+
@property
105+
def remove_text_method(self):
106+
return self.container['remove_text_method']
107+
108+
@remove_text_method.setter
109+
def remove_text_method(self, remove_text_method):
110+
self.container['remove_text_method'] = remove_text_method
111+
@property
112+
def remove_characters(self):
113+
return self.container['remove_characters']
114+
115+
@remove_characters.setter
116+
def remove_characters(self, remove_characters):
117+
self.container['remove_characters'] = remove_characters
118+
@property
119+
def remove_character_sets_type(self):
120+
return self.container['remove_character_sets_type']
121+
122+
@remove_character_sets_type.setter
123+
def remove_character_sets_type(self, remove_character_sets_type):
124+
self.container['remove_character_sets_type'] = remove_character_sets_type
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, RemoveCharactersByCharacter):
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)