Skip to content

Commit

Permalink
20220726 update : add 4 kinds of save option and update apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Jul 26, 2022
1 parent 333d446 commit ce3047c
Show file tree
Hide file tree
Showing 8 changed files with 921 additions and 6 deletions.
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/22.6)
![](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)


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

## Feature & Enhancements in Version 22.6
## Feature & Enhancements in Version 22.7

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


## Read & Write Spreadsheet Formats

**Microsoft Excel:** XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM
Expand Down
4 changes: 4 additions & 0 deletions asposecellscloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
from .models.convert_task_parameter import ConvertTaskParameter
from .models.convert_worksheet_task_parameter import ConvertWorksheetTaskParameter
from .models.dif_save_options import DifSaveOptions
from .models.docx_save_options import DocxSaveOptions
from .models.file_version import FileVersion
from .models.fill_format_response import FillFormatResponse
from .models.format_condition import FormatCondition
Expand All @@ -184,6 +185,7 @@
from .models.import_int_array_option import ImportIntArrayOption
from .models.import_picture_option import ImportPictureOption
from .models.import_string_array_option import ImportStringArrayOption
from .models.json_save_options import JsonSaveOptions
from .models.legend_response import LegendResponse
from .models.line_format import LineFormat
from .models.line_response import LineResponse
Expand Down Expand Up @@ -224,6 +226,7 @@
from .models.pivot_table_response import PivotTableResponse
from .models.pivot_tables import PivotTables
from .models.pivot_tables_response import PivotTablesResponse
from .models.pptx_save_options import PptxSaveOptions
from .models.range_value_response import RangeValueResponse
from .models.ranges_response import RangesResponse
from .models.row import Row
Expand All @@ -245,6 +248,7 @@
from .models.split_result_response import SplitResultResponse
from .models.split_workbook_task_parameter import SplitWorkbookTaskParameter
from .models.spreadsheet_ml2003_save_options import SpreadsheetML2003SaveOptions
from .models.sql_script_save_options import SqlScriptSaveOptions
from .models.style import Style
from .models.style_response import StyleResponse
from .models.svg_save_options import SvgSaveOptions
Expand Down
4 changes: 4 additions & 0 deletions asposecellscloud/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
from .convert_task_parameter import ConvertTaskParameter
from .convert_worksheet_task_parameter import ConvertWorksheetTaskParameter
from .dif_save_options import DifSaveOptions
from .docx_save_options import DocxSaveOptions
from .file_version import FileVersion
from .fill_format_response import FillFormatResponse
from .format_condition import FormatCondition
Expand All @@ -184,6 +185,7 @@
from .import_int_array_option import ImportIntArrayOption
from .import_picture_option import ImportPictureOption
from .import_string_array_option import ImportStringArrayOption
from .json_save_options import JsonSaveOptions
from .legend_response import LegendResponse
from .line_format import LineFormat
from .line_response import LineResponse
Expand Down Expand Up @@ -224,6 +226,7 @@
from .pivot_table_response import PivotTableResponse
from .pivot_tables import PivotTables
from .pivot_tables_response import PivotTablesResponse
from .pptx_save_options import PptxSaveOptions
from .range_value_response import RangeValueResponse
from .ranges_response import RangesResponse
from .row import Row
Expand All @@ -245,6 +248,7 @@
from .split_result_response import SplitResultResponse
from .split_workbook_task_parameter import SplitWorkbookTaskParameter
from .spreadsheet_ml2003_save_options import SpreadsheetML2003SaveOptions
from .sql_script_save_options import SqlScriptSaveOptions
from .style import Style
from .style_response import StyleResponse
from .svg_save_options import SvgSaveOptions
Expand Down
124 changes: 124 additions & 0 deletions asposecellscloud/models/docx_save_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# coding: utf-8

"""
Copyright (c) 2022 Aspose.Cells Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
"""


from pprint import pformat
from six import iteritems
import re
from . import SaveOptions

class DocxSaveOptions(SaveOptions):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""


"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {

}

attribute_map = {

}

@staticmethod
def get_swagger_types():
return dict(DocxSaveOptions.swagger_types, **SaveOptions.get_swagger_types())

@staticmethod
def get_attribute_map():
return dict(DocxSaveOptions.attribute_map, **SaveOptions.get_attribute_map())

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

def __init__(self, **kw):
super(DocxSaveOptions, self).__init__(**kw)

"""
DocxSaveOptions - a model defined in Swagger
"""



def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}

for attr, _ in iteritems(self.get_swagger_types()):
value = self.get_from_container(attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value

return result

def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())

def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to_str()

def __eq__(self, other):
"""
Returns true if both objects are equal
"""
if not isinstance(other, DocxSaveOptions):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
"""
Returns true if both objects are not equal
"""
return not self == other
Loading

0 comments on commit ce3047c

Please sign in to comment.