Skip to content

Commit e587c60

Browse files
committed
Release Aspose.Cells Cloud SDK 23.4
1 parent 6621f14 commit e587c60

File tree

3 files changed

+71
-4
lines changed

3 files changed

+71
-4
lines changed

README.md

Lines changed: 5 additions & 3 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/22.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/23.4)
22

33

44
# Python SDK for Spreadsheet Processing in Cloud
@@ -21,9 +21,11 @@ Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate M
2121
- Convert worksheets to PDF, XPS & SVG formats.
2222
- Inter-convert files to popular Excel formats.
2323

24-
## Feature & Enhancements in Version 22.12
24+
## Feature & Enhancements in Version 23.4
2525

26-
- Support chart axis operations.
26+
- Adopt the new model(Conflicting expired function names are appended with _).
27+
- Add import xml data api.
28+
- Add export xml data api.
2729

2830
## Read & Write Spreadsheet Formats
2931

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "asposecellscloud"
7-
VERSION = "22.12"
7+
VERSION = "23.4"
88
# To install the library, run the following
99
#
1010
# python setup.py install

test/tests_xml_controller.py

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# coding: utf-8
2+
3+
from __future__ import absolute_import
4+
5+
import os
6+
import sys
7+
import unittest
8+
import warnings
9+
10+
ABSPATH = os.path.abspath(os.path.realpath(os.path.dirname(__file__)) + "/..")
11+
sys.path.append(ABSPATH)
12+
13+
from asposecellscloud.rest import ApiException
14+
from asposecellscloud.apis.cells_api import CellsApi
15+
import AuthUtil
16+
from asposecellscloud.models import *
17+
from asposecellscloud.requests import *
18+
19+
global_api = None
20+
21+
class TestXmlControllerApi(unittest.TestCase):
22+
def setUp(self):
23+
warnings.simplefilter('ignore', ResourceWarning)
24+
global global_api
25+
if global_api is None:
26+
global_api = CellsApi(AuthUtil.GetClientId(),AuthUtil.GetClientSecret(),"v3.0",AuthUtil.GetBaseUrl())
27+
self.api = global_api
28+
29+
def tearDown(self):
30+
pass
31+
32+
def test_post_workbook_export_xml(self):
33+
remote_folder = 'TestData/In'
34+
35+
local_name = 'Template.xlsx'
36+
remote_name = 'Template.xlsx'
37+
38+
result = AuthUtil.Ready(self.api, local_name, remote_folder + '/' + remote_name , '')
39+
self.assertTrue(len(result.uploaded)>0)
40+
41+
request = PostWorkbookExportXMLRequest( remote_name,folder= remote_folder,storage_name= '')
42+
self.api.post_workbook_export_xml(request)
43+
44+
45+
def test_post_workbook_import_xml(self):
46+
remote_folder = 'TestData/In'
47+
48+
local_name = 'Template.xlsx'
49+
data_xml = 'data.xml'
50+
remote_name = 'Template.xlsx'
51+
52+
importXMLRequestXMLFileSource = FileSource(file_source_type= 'CloudFileSystem' ,file_path= remote_folder + '/data.xml' )
53+
importXMLRequestImportPosition = ImportPosition(sheet_name= 'Sheet1' ,row_index= 3 ,column_index= 4 )
54+
importXMLRequest = ImportXMLRequest(xml_file_source= importXMLRequestXMLFileSource ,import_position= importXMLRequestImportPosition )
55+
result = AuthUtil.Ready(self.api, local_name, remote_folder + '/' + remote_name , '')
56+
self.assertTrue(len(result.uploaded)>0)
57+
result = AuthUtil.Ready(self.api, data_xml, remote_folder + '/data.xml' , '')
58+
self.assertTrue(len(result.uploaded)>0)
59+
60+
request = PostWorkbookImportXMLRequest( remote_name, import_xml_request = importXMLRequest , folder= remote_folder,storage_name= '')
61+
self.api.post_workbook_import_xml(request)
62+
63+
64+
if __name__ == '__main__':
65+
unittest.main()

0 commit comments

Comments
 (0)