Skip to content

Commit

Permalink
Release Aspose.Cells Cloud 24.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Jun 26, 2024
1 parent ef50d0f commit de17d8b
Show file tree
Hide file tree
Showing 29 changed files with 358 additions and 378 deletions.
36 changes: 36 additions & 0 deletions Examples/Example_PostDataTransformation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 = 'BookTableL2W.xlsx'
remote_name = 'BookTableL2W.xlsx'

dataTransformationRequestLoadDataLoadTo = LoadTo(begin_column_index= 2 ,begin_row_index= 3 ,worksheet= 'L2W' )
dataTransformationRequestLoadDataDataQueryDataItem = DataItem(data_item_type= 'Table' ,value= 'Table1' )
dataTransformationRequestLoadDataDataQueryDataSource = DataSource(data_source_type= 'CloudFileSystem' ,data_path= 'BookTableL2W.xlsx' )
dataTransformationRequestLoadDataDataQuery = DataQuery(name= 'DataQuery' ,data_item= dataTransformationRequestLoadDataDataQueryDataItem ,data_source= dataTransformationRequestLoadDataDataQueryDataSource ,data_source_data_type= 'ListObject' )
dataTransformationRequestLoadData = LoadData(load_to= dataTransformationRequestLoadDataLoadTo ,data_query= dataTransformationRequestLoadDataDataQuery )
dataTransformationRequestAppliedStepsAppliedStep0AppliedOperateUnpivotColumnNames = [
'2017',
'2018',
'2019'
]
dataTransformationRequestAppliedStepsAppliedStep0AppliedOperate = UnpivotColumn(applied_operate_type= 'UnpivotColumn' ,value_map_name= 'Count' ,column_map_name= 'Date' ,unpivot_column_names= dataTransformationRequestAppliedStepsAppliedStep0AppliedOperateUnpivotColumnNames )
dataTransformationRequestAppliedStepsAppliedStep0 = AppliedStep(step_name= 'UnpivotColumn' ,applied_operate= dataTransformationRequestAppliedStepsAppliedStep0AppliedOperate )
dataTransformationRequestAppliedSteps = [
dataTransformationRequestAppliedStepsAppliedStep0
]
dataTransformationRequest = DataTransformationRequest(load_data= dataTransformationRequestLoadData ,applied_steps= dataTransformationRequestAppliedSteps )
mapFiles = {
local_name: local_name
}
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
api.upload_file(request)

request = PostDataTransformationRequest( dataTransformationRequest)
api.post_data_transformation(request)
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
![](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.5)
![](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.6)

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.

# Python package for Aspose.Cells Cloud


Enhance your Python applications with the [Aspose.Cells Cloud](https://products.aspose.cloud/cells/python) , enabling seamless integration with [Excel, ODS, CSV, Json and other spreadsheet document formats](https://docs.aspose.cloud/cells/supported-file-formats/). With its powerful APIs, developers can effortlessly read, convert, create, edit, and manipulate the contents of Excel documents without the need for any office software installed on the machine.


## Manipulate Excel and other spreadsheet files in the Cloud

- File Manipulation: Users can upload, download, delete, and manage Excel files stored in the cloud.
Expand All @@ -21,14 +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.5
## Feature & Enhancements in Version 24.6

Full list of issues covering all changes in this release:

- Add merge queries method for loading data of data transformation.
- Optimize chart data model.

- Optimize load data function of data transformation.
- Optimize the data conversion applied steps.

## Support file format

Expand Down Expand Up @@ -79,10 +75,10 @@ To begin with Aspose.Cells Cloud, here's what you need to do:
```bash
pip install asposecellscloud
```
3. Use the conversion code provided below as a reference to add or modify your application.

3. Use the conversion code provided below as a reference to add or modify your application.

## Convert Excel to PDF Using Python
## Convert Excel to PDF Using Python

```python
import os
Expand Down Expand Up @@ -123,9 +119,13 @@ api.put_convert_workbook(request)

[Product Page](https://products.aspose.cloud/cells/python) | [Documentation](https://docs.aspose.cloud/cells/) | [Live Demo](https://products.aspose.app/cells/family) | [API Reference](https://apireference.aspose.cloud/cells/) | [Code Samples](https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/tree/master/test) | [Blog](https://blog.aspose.cloud/category/cells/) | [Free Support](https://forum.aspose.cloud/c/cells) | [Free Trial](https://dashboard.aspose.cloud/#/apps)


# Release history version

## Enhancements in Version 24.5

- Add merge queries method for loading data of data transformation.
- Optimize chart data model.

## Enhancements in Version 24.4

- Support data transformation.
Expand Down
Binary file added TestData/BookTableL2W.xlsx
Binary file not shown.
6 changes: 3 additions & 3 deletions asposecellscloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@
from asposecellscloud.models.image_or_print_options import ImageOrPrintOptions
from asposecellscloud.models.rendering_font import RenderingFont
from asposecellscloud.models.rendering_watermark import RenderingWatermark
from asposecellscloud.models.applied_operate import AppliedOperate
from asposecellscloud.models.applied_step import AppliedStep
from asposecellscloud.models.data_query import DataQuery
from asposecellscloud.models.load_data import LoadData
from asposecellscloud.models.load_to import LoadTo
from asposecellscloud.models.merge_queries import MergeQueries
from asposecellscloud.models.pivot_column import PivotColumn
from asposecellscloud.models.query_data_source import QueryDataSource
from asposecellscloud.models.query_table import QueryTable
from asposecellscloud.models.transformation import Transformation
from asposecellscloud.models.unpivot_column import UnpivotColumn
from asposecellscloud.models.pivot_field import PivotField
from asposecellscloud.models.pivot_filter import PivotFilter
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,9 +88,9 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
self.host = host
self.cookie = cookie
self.default_headers['x-aspose-client'] = 'python sdk'
self.default_headers['x-aspose-client-version'] = '24.5'
self.default_headers['x-aspose-client-version'] = '24.6'
# Set default User-Agent.
self.user_agent = 'Aspose.Cells.Cloud/24.5/python'
self.user_agent = 'Aspose.Cells.Cloud/24.6/python'

@property
def user_agent(self):
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.5".\
"SDK Package Version: 24.6".\
format(env=sys.platform, pyversion=sys.version)
6 changes: 3 additions & 3 deletions asposecellscloud/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@
from asposecellscloud.models.image_or_print_options import ImageOrPrintOptions
from asposecellscloud.models.rendering_font import RenderingFont
from asposecellscloud.models.rendering_watermark import RenderingWatermark
from asposecellscloud.models.applied_operate import AppliedOperate
from asposecellscloud.models.applied_step import AppliedStep
from asposecellscloud.models.data_query import DataQuery
from asposecellscloud.models.load_data import LoadData
from asposecellscloud.models.load_to import LoadTo
from asposecellscloud.models.merge_queries import MergeQueries
from asposecellscloud.models.pivot_column import PivotColumn
from asposecellscloud.models.query_data_source import QueryDataSource
from asposecellscloud.models.query_table import QueryTable
from asposecellscloud.models.transformation import Transformation
from asposecellscloud.models.unpivot_column import UnpivotColumn
from asposecellscloud.models.pivot_field import PivotField
from asposecellscloud.models.pivot_filter import PivotFilter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8
"""
<copyright company="Aspose" file="QueryTablepy.cs">
<copyright company="Aspose" file="AppliedOperatepy.cs">
Copyright (c) 2024 Aspose.Cells Cloud
</copyright>
<summary>
Expand Down Expand Up @@ -28,7 +28,7 @@
from six import iteritems
import re

class QueryTable(object):
class AppliedOperate(object):

"""
NOTE: This class is auto generated by the swagger code generator program.
Expand All @@ -45,115 +45,51 @@ class QueryTable(object):
"""

swagger_types = {
'connection_id' : 'int',
'name' : 'str',
'result_range' : 'Range',
'preserve_formatting' : 'bool',
'adjust_column_width' : 'bool'
'applied_operate_type' : 'str'
}

attribute_map = {
'connection_id' : 'ConnectionId' ,
'name' : 'Name' ,
'result_range' : 'ResultRange' ,
'preserve_formatting' : 'PreserveFormatting' ,
'adjust_column_width' : 'AdjustColumnWidth'
'applied_operate_type' : 'AppliedOperateType'
}

@staticmethod
def get_swagger_types():
return QueryTable.swagger_types
return AppliedOperate.swagger_types

@staticmethod
def get_attribute_map():
return QueryTable.attribute_map
return AppliedOperate.attribute_map

def get_from_container(self, attr):
if attr in self.container:
return self.container[attr]
return None

def __init__(self,connection_id=None ,name=None ,result_range=None ,preserve_formatting=None ,adjust_column_width=None ,**kw):
def __init__(self,applied_operate_type=None ,**kw):
"""
Associative dict for storing property values
"""
self.container = {}

"""
QueryTable - a model defined in Swagger
AppliedOperate - a model defined in Swagger
"""
self.container['connection_id'] = None
self.container['name'] = None
self.container['result_range'] = None
self.container['preserve_formatting'] = None
self.container['adjust_column_width'] = None
self.container['applied_operate_type'] = None
params = locals()
self.connection_id = connection_id
if 'connection_id' in params:
self.connection_id = params["connection_id"]
self.applied_operate_type = applied_operate_type
if 'applied_operate_type' in params:
self.applied_operate_type = params["applied_operate_type"]



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



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



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



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




@property
def connection_id(self):
return self.container['connection_id']

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

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

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

@preserve_formatting.setter
def preserve_formatting(self, preserve_formatting):
self.container['preserve_formatting'] = preserve_formatting
@property
def adjust_column_width(self):
return self.container['adjust_column_width']
def applied_operate_type(self):
return self.container['applied_operate_type']

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

def to_dict(self):
"""
Expand Down Expand Up @@ -197,7 +133,7 @@ def __eq__(self, other):
"""
Returns true if both objects are equal
"""
if not isinstance(other, QueryTable):
if not isinstance(other, AppliedOperate):
return False

return self.__dict__ == other.__dict__
Expand Down
Loading

0 comments on commit de17d8b

Please sign in to comment.