Skip to content

Commit ce3047c

Browse files
committed
20220726 update : add 4 kinds of save option and update apis.
1 parent 333d446 commit ce3047c

File tree

8 files changed

+921
-6
lines changed

8 files changed

+921
-6
lines changed

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/22.6)
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.7)
22

33

44
# Python SDK for Spreadsheet Processing in Cloud
@@ -21,12 +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.6
24+
## Feature & Enhancements in Version 22.7
2525

26-
- Improve save as api.
27-
- Improve clear objects api.
26+
- Add 4 kinds of Save Option.
27+
- Add the checkExcelRestriction parameter for multiple APIs.
2828

29-
3029
## Read & Write Spreadsheet Formats
3130

3231
**Microsoft Excel:** XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM

asposecellscloud/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
from .models.convert_task_parameter import ConvertTaskParameter
166166
from .models.convert_worksheet_task_parameter import ConvertWorksheetTaskParameter
167167
from .models.dif_save_options import DifSaveOptions
168+
from .models.docx_save_options import DocxSaveOptions
168169
from .models.file_version import FileVersion
169170
from .models.fill_format_response import FillFormatResponse
170171
from .models.format_condition import FormatCondition
@@ -184,6 +185,7 @@
184185
from .models.import_int_array_option import ImportIntArrayOption
185186
from .models.import_picture_option import ImportPictureOption
186187
from .models.import_string_array_option import ImportStringArrayOption
188+
from .models.json_save_options import JsonSaveOptions
187189
from .models.legend_response import LegendResponse
188190
from .models.line_format import LineFormat
189191
from .models.line_response import LineResponse
@@ -224,6 +226,7 @@
224226
from .models.pivot_table_response import PivotTableResponse
225227
from .models.pivot_tables import PivotTables
226228
from .models.pivot_tables_response import PivotTablesResponse
229+
from .models.pptx_save_options import PptxSaveOptions
227230
from .models.range_value_response import RangeValueResponse
228231
from .models.ranges_response import RangesResponse
229232
from .models.row import Row
@@ -245,6 +248,7 @@
245248
from .models.split_result_response import SplitResultResponse
246249
from .models.split_workbook_task_parameter import SplitWorkbookTaskParameter
247250
from .models.spreadsheet_ml2003_save_options import SpreadsheetML2003SaveOptions
251+
from .models.sql_script_save_options import SqlScriptSaveOptions
248252
from .models.style import Style
249253
from .models.style_response import StyleResponse
250254
from .models.svg_save_options import SvgSaveOptions

asposecellscloud/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
from .convert_task_parameter import ConvertTaskParameter
166166
from .convert_worksheet_task_parameter import ConvertWorksheetTaskParameter
167167
from .dif_save_options import DifSaveOptions
168+
from .docx_save_options import DocxSaveOptions
168169
from .file_version import FileVersion
169170
from .fill_format_response import FillFormatResponse
170171
from .format_condition import FormatCondition
@@ -184,6 +185,7 @@
184185
from .import_int_array_option import ImportIntArrayOption
185186
from .import_picture_option import ImportPictureOption
186187
from .import_string_array_option import ImportStringArrayOption
188+
from .json_save_options import JsonSaveOptions
187189
from .legend_response import LegendResponse
188190
from .line_format import LineFormat
189191
from .line_response import LineResponse
@@ -224,6 +226,7 @@
224226
from .pivot_table_response import PivotTableResponse
225227
from .pivot_tables import PivotTables
226228
from .pivot_tables_response import PivotTablesResponse
229+
from .pptx_save_options import PptxSaveOptions
227230
from .range_value_response import RangeValueResponse
228231
from .ranges_response import RangesResponse
229232
from .row import Row
@@ -245,6 +248,7 @@
245248
from .split_result_response import SplitResultResponse
246249
from .split_workbook_task_parameter import SplitWorkbookTaskParameter
247250
from .spreadsheet_ml2003_save_options import SpreadsheetML2003SaveOptions
251+
from .sql_script_save_options import SqlScriptSaveOptions
248252
from .style import Style
249253
from .style_response import StyleResponse
250254
from .svg_save_options import SvgSaveOptions
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# coding: utf-8
2+
3+
"""
4+
Copyright (c) 2022 Aspose.Cells Cloud
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
"""
22+
23+
24+
from pprint import pformat
25+
from six import iteritems
26+
import re
27+
from . import SaveOptions
28+
29+
class DocxSaveOptions(SaveOptions):
30+
"""
31+
NOTE: This class is auto generated by the swagger code generator program.
32+
Do not edit the class manually.
33+
"""
34+
35+
36+
"""
37+
Attributes:
38+
swagger_types (dict): The key is attribute name
39+
and the value is attribute type.
40+
attribute_map (dict): The key is attribute name
41+
and the value is json key in definition.
42+
"""
43+
swagger_types = {
44+
45+
}
46+
47+
attribute_map = {
48+
49+
}
50+
51+
@staticmethod
52+
def get_swagger_types():
53+
return dict(DocxSaveOptions.swagger_types, **SaveOptions.get_swagger_types())
54+
55+
@staticmethod
56+
def get_attribute_map():
57+
return dict(DocxSaveOptions.attribute_map, **SaveOptions.get_attribute_map())
58+
59+
def get_from_container(self, attr):
60+
if attr in self.container:
61+
return self.container[attr]
62+
return None
63+
64+
def __init__(self, **kw):
65+
super(DocxSaveOptions, self).__init__(**kw)
66+
67+
"""
68+
DocxSaveOptions - a model defined in Swagger
69+
"""
70+
71+
72+
73+
def to_dict(self):
74+
"""
75+
Returns the model properties as a dict
76+
"""
77+
result = {}
78+
79+
for attr, _ in iteritems(self.get_swagger_types()):
80+
value = self.get_from_container(attr)
81+
if isinstance(value, list):
82+
result[attr] = list(map(
83+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84+
value
85+
))
86+
elif hasattr(value, "to_dict"):
87+
result[attr] = value.to_dict()
88+
elif isinstance(value, dict):
89+
result[attr] = dict(map(
90+
lambda item: (item[0], item[1].to_dict())
91+
if hasattr(item[1], "to_dict") else item,
92+
value.items()
93+
))
94+
else:
95+
result[attr] = value
96+
97+
return result
98+
99+
def to_str(self):
100+
"""
101+
Returns the string representation of the model
102+
"""
103+
return pformat(self.to_dict())
104+
105+
def __repr__(self):
106+
"""
107+
For `print` and `pprint`
108+
"""
109+
return self.to_str()
110+
111+
def __eq__(self, other):
112+
"""
113+
Returns true if both objects are equal
114+
"""
115+
if not isinstance(other, DocxSaveOptions):
116+
return False
117+
118+
return self.__dict__ == other.__dict__
119+
120+
def __ne__(self, other):
121+
"""
122+
Returns true if both objects are not equal
123+
"""
124+
return not self == other

0 commit comments

Comments
 (0)