Skip to content

Commit

Permalink
Add split text api and optimize pivot table filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Jan 25, 2025
1 parent 21bc7aa commit 5b7e253
Show file tree
Hide file tree
Showing 816 changed files with 1,404 additions and 960 deletions.
2 changes: 1 addition & 1 deletion Examples/Example_PutWorksheetPivotTableFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
local_name = 'TestCase.xlsx'
remote_name = 'TestCase.xlsx'

filter = PivotFilter(field_index= 1 ,filter_type= 'Count' )
filter = PivotFilter(field_index= 0 ,filter_type= 'Count' )
mapFiles = {
local_name: local_name
}
Expand Down
7 changes: 7 additions & 0 deletions HistoryVersion.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

## Feature & Enhancements in Version 24.12

- Add the new remove duplicates api.
- Add the new extract text API.
- The pivot filter could not be created successfully.

## Feature & Enhancements in Version 24.11

-Add convert text feature on TextProcessingController.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Aspose Pty Ltd
Copyright (c) 2025 Aspose Pty Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 4 additions & 5 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.12)
![](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)

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,13 +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.12
## Feature & Enhancements in Version 25.1

Full list of issues covering all changes in this release:

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

## Support file format

Expand Down
4 changes: 3 additions & 1 deletion asposecellscloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
"""
<copyright company="Aspose" file="__init__py.cs">
Copyright (c) 2024 Aspose.Cells Cloud
Copyright (c) 2025 Aspose.Cells Cloud
</copyright>
<summary>
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -353,6 +353,7 @@
from asposecellscloud.models.remove_duplicates_options import RemoveDuplicatesOptions
from asposecellscloud.models.scope_item import ScopeItem
from asposecellscloud.models.scope_options import ScopeOptions
from asposecellscloud.models.split_text_options import SplitTextOptions
from asposecellscloud.models.trim_content_options import TrimContentOptions
from asposecellscloud.models.word_case_options import WordCaseOptions
from asposecellscloud.models.cell_value import CellValue
Expand Down Expand Up @@ -709,6 +710,7 @@
from asposecellscloud.requests.post_convert_text_request import PostConvertTextRequest
from asposecellscloud.requests.post_remove_duplicates_request import PostRemoveDuplicatesRequest
from asposecellscloud.requests.post_extract_text_request import PostExtractTextRequest
from asposecellscloud.requests.post_split_text_request import PostSplitTextRequest
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
@@ -1,6 +1,6 @@
"""
<copyright company="Aspose" file="api_clientpy.cs">
Copyright (c) 2024 Aspose.Cells Cloud
Copyright (c) 2025 Aspose.Cells Cloud
</copyright>
<summary>
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down 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.12/python'
self.user_agent = 'Aspose.Cells.Cloud/25.1/python'

@property
def user_agent(self):
Expand Down
77 changes: 48 additions & 29 deletions asposecellscloud/apis/cells_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
"""
<copyright company="Aspose" file="CellsApi.cs">
Copyright (c) 2024 Aspose.Cells Cloud
Copyright (c) 2025 Aspose.Cells Cloud
</copyright>
<summary>
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -81,7 +81,6 @@ def check_access_token(self):
self.get_access_token_time = time.time()

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


# <summary>
# Retrieve the description of the default style for the workbook .
# </summary>
# <param name="request">Request. <see cref="PostSplitTextRequest" /></param>
def post_split_text(self, request, **kwargs):

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

def post_split_text_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_split_text" % 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>
# </summary>
# <param name="request">Request. <see cref="GetWorkbookDefaultStyleRequest" /></param>
def get_workbook_default_style(self, request, **kwargs):
Expand Down Expand Up @@ -13755,7 +13776,6 @@ def get_page_count_with_http_info(self, request, **kwargs):


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


# <summary>
# Retrieve descriptions of validations in the worksheet.
# </summary>
# <param name="request">Request. <see cref="GetWorksheetValidationsRequest" /></param>
def get_worksheet_validations(self, request, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions asposecellscloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

0 comments on commit 5b7e253

Please sign in to comment.