Skip to content

Commit 5b7e253

Browse files
committed
Add split text api and optimize pivot table filter.
1 parent 21bc7aa commit 5b7e253

File tree

816 files changed

+1404
-960
lines changed

Some content is hidden

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

816 files changed

+1404
-960
lines changed

Examples/Example_PutWorksheetPivotTableFilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
local_name = 'TestCase.xlsx'
1111
remote_name = 'TestCase.xlsx'
1212

13-
filter = PivotFilter(field_index= 1 ,filter_type= 'Count' )
13+
filter = PivotFilter(field_index= 0 ,filter_type= 'Count' )
1414
mapFiles = {
1515
local_name: local_name
1616
}

HistoryVersion.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
## Feature & Enhancements in Version 24.12
3+
4+
- Add the new remove duplicates api.
5+
- Add the new extract text API.
6+
- The pivot filter could not be created successfully.
7+
18
## Feature & Enhancements in Version 24.11
29

310
-Add convert text feature on TextProcessingController.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Aspose Pty Ltd
3+
Copyright (c) 2025 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 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/24.12)
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/25.1)
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,13 +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.12
22+
## Feature & Enhancements in Version 25.1
2323

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

26-
- Add the new remove duplicates api.
27-
- Add the new extract text API.
28-
- The pivot filter could not be created successfully.
26+
- Add the new API for splitting text in the cell.
27+
- Optimize pivot table filter-related APIs.
2928

3029
## Support file format
3130

asposecellscloud/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
"""
33
<copyright company="Aspose" file="__init__py.cs">
4-
Copyright (c) 2024 Aspose.Cells Cloud
4+
Copyright (c) 2025 Aspose.Cells Cloud
55
</copyright>
66
<summary>
77
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -353,6 +353,7 @@
353353
from asposecellscloud.models.remove_duplicates_options import RemoveDuplicatesOptions
354354
from asposecellscloud.models.scope_item import ScopeItem
355355
from asposecellscloud.models.scope_options import ScopeOptions
356+
from asposecellscloud.models.split_text_options import SplitTextOptions
356357
from asposecellscloud.models.trim_content_options import TrimContentOptions
357358
from asposecellscloud.models.word_case_options import WordCaseOptions
358359
from asposecellscloud.models.cell_value import CellValue
@@ -709,6 +710,7 @@
709710
from asposecellscloud.requests.post_convert_text_request import PostConvertTextRequest
710711
from asposecellscloud.requests.post_remove_duplicates_request import PostRemoveDuplicatesRequest
711712
from asposecellscloud.requests.post_extract_text_request import PostExtractTextRequest
713+
from asposecellscloud.requests.post_split_text_request import PostSplitTextRequest
712714
from asposecellscloud.requests.get_workbook_default_style_request import GetWorkbookDefaultStyleRequest
713715
from asposecellscloud.requests.get_workbook_text_items_request import GetWorkbookTextItemsRequest
714716
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
@@ -1,6 +1,6 @@
11
"""
22
<copyright company="Aspose" file="api_clientpy.cs">
3-
Copyright (c) 2024 Aspose.Cells Cloud
3+
Copyright (c) 2025 Aspose.Cells Cloud
44
</copyright>
55
<summary>
66
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -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.12/python'
91+
self.user_agent = 'Aspose.Cells.Cloud/25.1/python'
9292

9393
@property
9494
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
"""
33
<copyright company="Aspose" file="CellsApi.cs">
4-
Copyright (c) 2024 Aspose.Cells Cloud
4+
Copyright (c) 2025 Aspose.Cells Cloud
55
</copyright>
66
<summary>
77
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -81,7 +81,6 @@ def check_access_token(self):
8181
self.get_access_token_time = time.time()
8282

8383
# <summary>
84-
# Perform business analysis of data in Excel files.
8584
# </summary>
8685
# <param name="request">Request. <see cref="PostAnalyzeExcelRequest" /></param>
8786
def post_analyze_excel(self, request, **kwargs):
@@ -129,7 +128,6 @@ def post_analyze_excel_with_http_info(self, request, **kwargs):
129128

130129

131130
# <summary>
132-
# Retrieve the description of auto filters from a worksheet.
133131
# </summary>
134132
# <param name="request">Request. <see cref="GetWorksheetAutoFilterRequest" /></param>
135133
def get_worksheet_auto_filter(self, request, **kwargs):
@@ -753,7 +751,6 @@ def delete_worksheet_filter_with_http_info(self, request, **kwargs):
753751

754752

755753
# <summary>
756-
# Get autoshapes description in worksheet.
757754
# </summary>
758755
# <param name="request">Request. <see cref="GetWorksheetAutoshapesRequest" /></param>
759756
def get_worksheet_autoshapes(self, request, **kwargs):
@@ -849,7 +846,6 @@ def get_worksheet_autoshape_with_format_with_http_info(self, request, **kwargs):
849846

850847

851848
# <summary>
852-
# Batch converting files that meet specific matching conditions.
853849
# </summary>
854850
# <param name="request">Request. <see cref="PostBatchConvertRequest" /></param>
855851
def post_batch_convert(self, request, **kwargs):
@@ -1137,7 +1133,6 @@ def post_access_token_with_http_info(self, request, **kwargs):
11371133

11381134

11391135
# <summary>
1140-
# Clear cell area contents in the worksheet.
11411136
# </summary>
11421137
# <param name="request">Request. <see cref="PostClearContentsRequest" /></param>
11431138
def post_clear_contents(self, request, **kwargs):
@@ -1905,7 +1900,6 @@ def post_cell_characters_with_http_info(self, request, **kwargs):
19051900

19061901

19071902
# <summary>
1908-
# Retrieve descriptions of worksheet columns.
19091903
# </summary>
19101904
# <param name="request">Request. <see cref="GetWorksheetColumnsRequest" /></param>
19111905
def get_worksheet_columns(self, request, **kwargs):
@@ -2433,7 +2427,6 @@ def post_column_style_with_http_info(self, request, **kwargs):
24332427

24342428

24352429
# <summary>
2436-
# Retrieve descriptions of rows in the worksheet.
24372430
# </summary>
24382431
# <param name="request">Request. <see cref="GetWorksheetRowsRequest" /></param>
24392432
def get_worksheet_rows(self, request, **kwargs):
@@ -3153,7 +3146,6 @@ def get_cells_cloud_service_status_with_http_info(self, request, **kwargs):
31533146

31543147

31553148
# <summary>
3156-
# Retrieve chart area description in the worksheet.
31573149
# </summary>
31583150
# <param name="request">Request. <see cref="GetChartAreaRequest" /></param>
31593151
def get_chart_area(self, request, **kwargs):
@@ -3297,7 +3289,6 @@ def get_chart_area_border_with_http_info(self, request, **kwargs):
32973289

32983290

32993291
# <summary>
3300-
# Retrieve descriptions of charts in the worksheet.
33013292
# </summary>
33023293
# <param name="request">Request. <see cref="GetWorksheetChartsRequest" /></param>
33033294
def get_worksheet_charts(self, request, **kwargs):
@@ -4449,7 +4440,6 @@ def post_chart_second_value_axis_with_http_info(self, request, **kwargs):
44494440

44504441

44514442
# <summary>
4452-
# Retrieve descriptions of conditional formattings in a worksheet.
44534443
# </summary>
44544444
# <param name="request">Request. <see cref="GetWorksheetConditionalFormattingsRequest" /></param>
44554445
def get_worksheet_conditional_formattings(self, request, **kwargs):
@@ -4881,7 +4871,6 @@ def delete_worksheet_conditional_formatting_area_with_http_info(self, request, *
48814871

48824872

48834873
# <summary>
4884-
# Retrieve workbooks in various formats.
48854874
# </summary>
48864875
# <param name="request">Request. <see cref="GetWorkbookRequest" /></param>
48874876
def get_workbook(self, request, **kwargs):
@@ -5457,7 +5446,6 @@ def post_convert_workbook_to_csv_with_http_info(self, request, **kwargs):
54575446

54585447

54595448
# <summary>
5460-
# Export Excel internal elements or the workbook itself to various format files.
54615449
# </summary>
54625450
# <param name="request">Request. <see cref="PostExportRequest" /></param>
54635451
def post_export(self, request, **kwargs):
@@ -6082,7 +6070,6 @@ def post_data_transformation_with_http_info(self, request, **kwargs):
60826070

60836071

60846072
# <summary>
6085-
# Retrieve descriptions of hyperlinks in the worksheet.
60866073
# </summary>
60876074
# <param name="request">Request. <see cref="GetWorksheetHyperlinksRequest" /></param>
60886075
def get_worksheet_hyperlinks(self, request, **kwargs):
@@ -6370,7 +6357,6 @@ def delete_worksheet_hyperlinks_with_http_info(self, request, **kwargs):
63706357

63716358

63726359
# <summary>
6373-
# Assemble data files with template files to generate files in various formats.
63746360
# </summary>
63756361
# <param name="request">Request. <see cref="PostAssembleRequest" /></param>
63766362
def post_assemble(self, request, **kwargs):
@@ -7090,7 +7076,6 @@ def delete_metadata_with_http_info(self, request, **kwargs):
70907076

70917077

70927078
# <summary>
7093-
# Retrieve descriptions of ListObjects in the worksheet.
70947079
# </summary>
70957080
# <param name="request">Request. <see cref="GetWorksheetListObjectsRequest" /></param>
70967081
def get_worksheet_list_objects(self, request, **kwargs):
@@ -7714,7 +7699,6 @@ def post_worksheet_list_columns_total_with_http_info(self, request, **kwargs):
77147699

77157700

77167701
# <summary>
7717-
# Retrieve descriptions of OLE objects in the worksheet.
77187702
# </summary>
77197703
# <param name="request">Request. <see cref="GetWorksheetOleObjectsRequest" /></param>
77207704
def get_worksheet_ole_objects(self, request, **kwargs):
@@ -8002,7 +7986,6 @@ def put_worksheet_ole_object_with_http_info(self, request, **kwargs):
80027986

80037987

80047988
# <summary>
8005-
# Retrieve descriptions of vertical page breaks in the worksheet.
80067989
# </summary>
80077990
# <param name="request">Request. <see cref="GetVerticalPageBreaksRequest" /></param>
80087991
def get_vertical_page_breaks(self, request, **kwargs):
@@ -8482,7 +8465,6 @@ def delete_horizontal_page_break_with_http_info(self, request, **kwargs):
84828465

84838466

84848467
# <summary>
8485-
# Retrieve page setup description in the worksheet.
84868468
# </summary>
84878469
# <param name="request">Request. <see cref="GetPageSetupRequest" /></param>
84888470
def get_page_setup(self, request, **kwargs):
@@ -8914,7 +8896,6 @@ def post_fit_tall_to_pages_with_http_info(self, request, **kwargs):
89148896

89158897

89168898
# <summary>
8917-
# Retrieve descriptions of pictures in the worksheet.
89188899
# </summary>
89198900
# <param name="request">Request. <see cref="GetWorksheetPicturesRequest" /></param>
89208901
def get_worksheet_pictures(self, request, **kwargs):
@@ -9202,7 +9183,6 @@ def delete_worksheet_pictures_with_http_info(self, request, **kwargs):
92029183

92039184

92049185
# <summary>
9205-
# Retrieve descriptions of pivottables in the worksheet.
92069186
# </summary>
92079187
# <param name="request">Request. <see cref="GetWorksheetPivotTablesRequest" /></param>
92089188
def get_worksheet_pivot_tables(self, request, **kwargs):
@@ -10210,7 +10190,6 @@ def delete_worksheet_pivot_table_filter_with_http_info(self, request, **kwargs):
1021010190

1021110191

1021210192
# <summary>
10213-
# Retrieve descriptions of Excel file properties.
1021410193
# </summary>
1021510194
# <param name="request">Request. <see cref="GetDocumentPropertiesRequest" /></param>
1021610195
def get_document_properties(self, request, **kwargs):
@@ -10450,7 +10429,6 @@ def delete_document_properties_with_http_info(self, request, **kwargs):
1045010429

1045110430

1045210431
# <summary>
10453-
# Excel file digital signature.
1045410432
# </summary>
1045510433
# <param name="request">Request. <see cref="PostDigitalSignatureRequest" /></param>
1045610434
def post_digital_signature(self, request, **kwargs):
@@ -10930,7 +10908,6 @@ def post_protect_with_http_info(self, request, **kwargs):
1093010908

1093110909

1093210910
# <summary>
10933-
# Copy content from the source range to the destination range in the worksheet.
1093410911
# </summary>
1093510912
# <param name="request">Request. <see cref="PostWorksheetCellsRangesCopyRequest" /></param>
1093610913
def post_worksheet_cells_ranges_copy(self, request, **kwargs):
@@ -11554,7 +11531,6 @@ def delete_worksheet_cells_range_with_http_info(self, request, **kwargs):
1155411531

1155511532

1155611533
# <summary>
11557-
# Retrieve descriptions of shapes in the worksheet.
1155811534
# </summary>
1155911535
# <param name="request">Request. <see cref="GetWorksheetShapesRequest" /></param>
1156011536
def get_worksheet_shapes(self, request, **kwargs):
@@ -11938,7 +11914,6 @@ def post_worksheet_ungroup_shape_with_http_info(self, request, **kwargs):
1193811914

1193911915

1194011916
# <summary>
11941-
# Retrieve descriptions of sparkline groups in the worksheet.
1194211917
# </summary>
1194311918
# <param name="request">Request. <see cref="GetWorksheetSparklineGroupsRequest" /></param>
1194411919
def get_worksheet_sparkline_groups(self, request, **kwargs):
@@ -12603,7 +12578,53 @@ def post_extract_text_with_http_info(self, request, **kwargs):
1260312578

1260412579

1260512580
# <summary>
12606-
# Retrieve the description of the default style for the workbook .
12581+
# </summary>
12582+
# <param name="request">Request. <see cref="PostSplitTextRequest" /></param>
12583+
def post_split_text(self, request, **kwargs):
12584+
12585+
kwargs['_return_http_data_only'] = True
12586+
self.check_access_token()
12587+
if kwargs.get('callback'):
12588+
return self.post_split_text_with_http_info(request,**kwargs)
12589+
else:
12590+
(data) = self.post_split_text_with_http_info(request,**kwargs)
12591+
return data
12592+
12593+
def post_split_text_with_http_info(self, request, **kwargs):
12594+
all_params = []
12595+
all_params.append('callback')
12596+
all_params.append('_return_http_data_only')
12597+
all_params.append('_preload_content')
12598+
all_params.append('_request_timeout')
12599+
params = locals()
12600+
for key, val in iteritems(params['kwargs']):
12601+
if key not in all_params:
12602+
raise TypeError(
12603+
"Got an unexpected keyword argument '%s'"
12604+
" to method post_split_text" % key
12605+
)
12606+
params[key] = val
12607+
del params['kwargs']
12608+
12609+
http_params = request.create_http_request(self.api_client)
12610+
return self.api_client.call_api(http_params['path'], http_params['method'],
12611+
None,
12612+
http_params['query_params'],
12613+
http_params['header_params'],
12614+
body=http_params['body'],
12615+
post_params=http_params['form_params'],
12616+
files=http_params['files'],
12617+
response_type=http_params['response_type'],
12618+
auth_settings=http_params['auth_settings'],
12619+
callback=params.get('callback'),
12620+
_return_http_data_only=params.get('_return_http_data_only'),
12621+
_preload_content=params.get('_preload_content', True),
12622+
_request_timeout=params.get('_request_timeout'),
12623+
collection_formats=http_params['collection_formats'])
12624+
12625+
12626+
12627+
# <summary>
1260712628
# </summary>
1260812629
# <param name="request">Request. <see cref="GetWorkbookDefaultStyleRequest" /></param>
1260912630
def get_workbook_default_style(self, request, **kwargs):
@@ -13755,7 +13776,6 @@ def get_page_count_with_http_info(self, request, **kwargs):
1375513776

1375613777

1375713778
# <summary>
13758-
# Retrieve the description of worksheets from a workbook.
1375913779
# </summary>
1376013780
# <param name="request">Request. <see cref="GetWorksheetsRequest" /></param>
1376113781
def get_worksheets(self, request, **kwargs):
@@ -15627,7 +15647,6 @@ def get_worksheet_page_count_with_http_info(self, request, **kwargs):
1562715647

1562815648

1562915649
# <summary>
15630-
# Retrieve descriptions of validations in the worksheet.
1563115650
# </summary>
1563215651
# <param name="request">Request. <see cref="GetWorksheetValidationsRequest" /></param>
1563315652
def get_worksheet_validations(self, request, **kwargs):

asposecellscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
<copyright company="Aspose" file="configurationpy.cs">
5-
Copyright (c) 2024 Aspose.Cells Cloud
5+
Copyright (c) 2025 Aspose.Cells Cloud
66
</copyright>
77
<summary>
88
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -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.12".\
262+
"SDK Package Version: 25.1".\
263263
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)