Skip to content

Commit ebd6710

Browse files
committed
2024-03-21 : Synchronize codes to the origin repository.
1 parent 0001b78 commit ebd6710

File tree

3 files changed

+83
-5
lines changed

3 files changed

+83
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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.3)
22

33

4-
# Python package for Aspose.Cells Cloud SDK
4+
# Python package for Aspose.Cells Cloud
55

66

77
Enhance your Python applications with the [Aspose.Cells Cloud SDK](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.
@@ -72,7 +72,7 @@ Full list of issues covering all changes in this release:
7272

7373
## Quick Start Guide
7474

75-
To begin with Aspose.Cells Cloud SDK, here's what you need to do:
75+
To begin with Aspose.Cells Cloud, here's what you need to do:
7676

7777
1. Sign up for an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) to obtain your application details.
7878
2. Install the Aspose.Cells Cloud Python package from the [pypi](https://pypi.org/).
@@ -114,7 +114,7 @@ api.put_convert_workbook(request)
114114

115115
```
116116

117-
## Aspose.Cells Cloud SDKs in Popular Languages
117+
## Aspose.Cells Cloud in Popular Languages
118118

119119
| .NET | Java | PHP | Ruby | Node.js | Android | Swift | Perl | GO |
120120
|---|---|---|---|---|---|---|---|---|

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
setup(
1818
name=NAME,
1919
version=VERSION,
20-
description="Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Microsoft Excel� spreadsheet generation, manipulation, conversion & inspection features into your own Python applications.",
20+
description="Python Cloud SDK wraps Aspose.Cells Cloud API so you could seamlessly integrate Microsoft Excel file generation, manipulation, conversion & inspection features into your own Python applications.",
2121
author="Aspose Cloud",
2222
author_email="[email protected]",
2323
url="https://github.com/aspose-cells-cloud/aspose-cells-cloud-python",
2424
keywords=["aspose", "cells", "cloud"],
2525
install_requires=REQUIRES,
2626
packages=['asposecellscloud', 'asposecellscloud.apis', 'asposecellscloud.models','asposecellscloud.requests'],
2727
include_package_data=True,
28-
long_description="Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Microsoft Excel� spreadsheet generation, manipulation, conversion & inspection features into your own Python applications.",
28+
long_description="Python Cloud SDK wraps Aspose.Cells Cloud API so you could seamlessly integrate Microsoft Excel file generation, manipulation, conversion & inspection features into your own Python applications.",
2929
classifiers=[
3030
'Programming Language :: Python :: 2.7',
3131
'Programming Language :: Python :: 3.6',
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 TestDataProcessingControllerApi(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_data_cleansing(self):
33+
remote_folder = 'TestData/In'
34+
35+
local_name = 'BookCsvDuplicateData.csv'
36+
remote_name = 'BookCsvDuplicateData.csv'
37+
38+
dataCleansingDataFillDataFillDefaultValue = DataFillValue(default_date= '2024-01-01' ,default_number= 0 ,default_boolean= False )
39+
dataCleansingDataFill = DataFill(data_fill_default_value= dataCleansingDataFillDataFillDefaultValue )
40+
dataCleansing = DataCleansing(need_fill_data= True ,data_fill= dataCleansingDataFill )
41+
result = AuthUtil.Ready(self.api, local_name, remote_folder + '/' + remote_name , '')
42+
self.assertTrue(len(result.uploaded)>0)
43+
44+
request = PostWorkbookDataCleansingRequest( remote_name, dataCleansing,folder= remote_folder,storage_name= '')
45+
self.api.post_workbook_data_cleansing(request)
46+
47+
48+
def test_post_workbook_data_deduplication(self):
49+
remote_folder = 'TestData/In'
50+
51+
local_name = 'BookCsvDuplicateData.csv'
52+
remote_name = 'BookCsvDuplicateData.csv'
53+
54+
deduplicationRegion = DeduplicationRegion()
55+
result = AuthUtil.Ready(self.api, local_name, remote_folder + '/' + remote_name , '')
56+
self.assertTrue(len(result.uploaded)>0)
57+
58+
request = PostWorkbookDataDeduplicationRequest( remote_name, deduplicationRegion,folder= remote_folder,storage_name= '')
59+
self.api.post_workbook_data_deduplication(request)
60+
61+
62+
def test_post_workbook_data_fill(self):
63+
remote_folder = 'TestData/In'
64+
65+
local_name = 'BookCsvDuplicateData.csv'
66+
remote_name = 'BookCsvDuplicateData.csv'
67+
68+
dataFillDataFillDefaultValue = DataFillValue(default_date= '2024-01-01' ,default_number= 0 ,default_boolean= False )
69+
dataFill = DataFill(data_fill_default_value= dataFillDataFillDefaultValue )
70+
result = AuthUtil.Ready(self.api, local_name, remote_folder + '/' + remote_name , '')
71+
self.assertTrue(len(result.uploaded)>0)
72+
73+
request = PostWorkbookDataFillRequest( remote_name, dataFill,folder= remote_folder,storage_name= '')
74+
self.api.post_workbook_data_fill(request)
75+
76+
77+
if __name__ == '__main__':
78+
unittest.main()

0 commit comments

Comments
 (0)