diff --git a/README.md b/README.md index 0cd2c1d..a048aa9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types. This Python package provides a native API client for [Cloudmersive Document Conversion](https://www.cloudmersive.com/convert-api) - API version: v1 -- Package version: 2.0.9 +- Package version: 2.1.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -145,6 +145,7 @@ Class | Method | HTTP request | Description *MergeDocumentApi* | [**merge_document_pdf**](docs/MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Multple PDF Files Together *MergeDocumentApi* | [**merge_document_pptx**](docs/MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Multple PowerPoint PPTX Together *MergeDocumentApi* | [**merge_document_xlsx**](docs/MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Multple Excel XLSX Together +*SplitDocumentApi* | [**split_document_xlsx**](docs/SplitDocumentApi.md#split_document_xlsx) | **POST** /convert/split/xlsx | Split a single Excel XLSX into Separate Worksheets *ValidateDocumentApi* | [**validate_document_docx_validation**](docs/ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX) *ValidateDocumentApi* | [**validate_document_pptx_validation**](docs/ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX) *ValidateDocumentApi* | [**validate_document_xlsx_validation**](docs/ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX) @@ -226,8 +227,10 @@ Class | Method | HTTP request | Description - [RemoveDocxHeadersAndFootersResponse](docs/RemoveDocxHeadersAndFootersResponse.md) - [ReplaceStringRequest](docs/ReplaceStringRequest.md) - [ScreenshotRequest](docs/ScreenshotRequest.md) + - [SplitXlsxWorksheetResult](docs/SplitXlsxWorksheetResult.md) - [TextConversionResult](docs/TextConversionResult.md) - [ViewerResponse](docs/ViewerResponse.md) + - [WorksheetResult](docs/WorksheetResult.md) - [XlsxImage](docs/XlsxImage.md) - [XlsxSpreadsheetCell](docs/XlsxSpreadsheetCell.md) - [XlsxSpreadsheetColumn](docs/XlsxSpreadsheetColumn.md) diff --git a/cloudmersive_convert_api_client/__init__.py b/cloudmersive_convert_api_client/__init__.py index a585947..4076510 100644 --- a/cloudmersive_convert_api_client/__init__.py +++ b/cloudmersive_convert_api_client/__init__.py @@ -24,6 +24,7 @@ from cloudmersive_convert_api_client.api.convert_web_api import ConvertWebApi from cloudmersive_convert_api_client.api.edit_document_api import EditDocumentApi from cloudmersive_convert_api_client.api.merge_document_api import MergeDocumentApi +from cloudmersive_convert_api_client.api.split_document_api import SplitDocumentApi from cloudmersive_convert_api_client.api.validate_document_api import ValidateDocumentApi from cloudmersive_convert_api_client.api.viewer_tools_api import ViewerToolsApi @@ -104,8 +105,10 @@ from cloudmersive_convert_api_client.models.remove_docx_headers_and_footers_response import RemoveDocxHeadersAndFootersResponse from cloudmersive_convert_api_client.models.replace_string_request import ReplaceStringRequest from cloudmersive_convert_api_client.models.screenshot_request import ScreenshotRequest +from cloudmersive_convert_api_client.models.split_xlsx_worksheet_result import SplitXlsxWorksheetResult from cloudmersive_convert_api_client.models.text_conversion_result import TextConversionResult from cloudmersive_convert_api_client.models.viewer_response import ViewerResponse +from cloudmersive_convert_api_client.models.worksheet_result import WorksheetResult from cloudmersive_convert_api_client.models.xlsx_image import XlsxImage from cloudmersive_convert_api_client.models.xlsx_spreadsheet_cell import XlsxSpreadsheetCell from cloudmersive_convert_api_client.models.xlsx_spreadsheet_column import XlsxSpreadsheetColumn diff --git a/cloudmersive_convert_api_client/api/__init__.py b/cloudmersive_convert_api_client/api/__init__.py index 56bf513..be929df 100644 --- a/cloudmersive_convert_api_client/api/__init__.py +++ b/cloudmersive_convert_api_client/api/__init__.py @@ -11,5 +11,6 @@ from cloudmersive_convert_api_client.api.convert_web_api import ConvertWebApi from cloudmersive_convert_api_client.api.edit_document_api import EditDocumentApi from cloudmersive_convert_api_client.api.merge_document_api import MergeDocumentApi +from cloudmersive_convert_api_client.api.split_document_api import SplitDocumentApi from cloudmersive_convert_api_client.api.validate_document_api import ValidateDocumentApi from cloudmersive_convert_api_client.api.viewer_tools_api import ViewerToolsApi diff --git a/cloudmersive_convert_api_client/api/split_document_api.py b/cloudmersive_convert_api_client/api/split_document_api.py new file mode 100644 index 0000000..861b80d --- /dev/null +++ b/cloudmersive_convert_api_client/api/split_document_api.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudmersive_convert_api_client.api_client import ApiClient + + +class SplitDocumentApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def split_document_xlsx(self, input_file, **kwargs): # noqa: E501 + """Split a single Excel XLSX into Separate Worksheets # noqa: E501 + + Split an Excel XLSX Spreadsheet, comprised of multiple Worksheets (or Tabs) into separate Excel XLSX spreadsheet files, with each containing exactly one Worksheet. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.split_document_xlsx(input_file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Input file to perform the operation on. (required) + :return: SplitXlsxWorksheetResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.split_document_xlsx_with_http_info(input_file, **kwargs) # noqa: E501 + else: + (data) = self.split_document_xlsx_with_http_info(input_file, **kwargs) # noqa: E501 + return data + + def split_document_xlsx_with_http_info(self, input_file, **kwargs): # noqa: E501 + """Split a single Excel XLSX into Separate Worksheets # noqa: E501 + + Split an Excel XLSX Spreadsheet, comprised of multiple Worksheets (or Tabs) into separate Excel XLSX spreadsheet files, with each containing exactly one Worksheet. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.split_document_xlsx_with_http_info(input_file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Input file to perform the operation on. (required) + :return: SplitXlsxWorksheetResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method split_document_xlsx" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input_file' is set + if ('input_file' not in params or + params['input_file'] is None): + raise ValueError("Missing the required parameter `input_file` when calling `split_document_xlsx`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + if 'input_file' in params: + local_var_files['inputFile'] = params['input_file'] # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/octet-stream']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/split/xlsx', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SplitXlsxWorksheetResult', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index fd7a691..6eb8f38 100644 --- a/cloudmersive_convert_api_client/api_client.py +++ b/cloudmersive_convert_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.0.9/python' + self.user_agent = 'Swagger-Codegen/2.1.0/python' def __del__(self): if self._pool is not None: diff --git a/cloudmersive_convert_api_client/configuration.py b/cloudmersive_convert_api_client/configuration.py index 3167283..e4b7660 100644 --- a/cloudmersive_convert_api_client/configuration.py +++ b/cloudmersive_convert_api_client/configuration.py @@ -240,5 +240,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.0.9".\ + "SDK Package Version: 2.1.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudmersive_convert_api_client/models/__init__.py b/cloudmersive_convert_api_client/models/__init__.py index 4fd9a7d..5b234d7 100644 --- a/cloudmersive_convert_api_client/models/__init__.py +++ b/cloudmersive_convert_api_client/models/__init__.py @@ -88,8 +88,10 @@ from cloudmersive_convert_api_client.models.remove_docx_headers_and_footers_response import RemoveDocxHeadersAndFootersResponse from cloudmersive_convert_api_client.models.replace_string_request import ReplaceStringRequest from cloudmersive_convert_api_client.models.screenshot_request import ScreenshotRequest +from cloudmersive_convert_api_client.models.split_xlsx_worksheet_result import SplitXlsxWorksheetResult from cloudmersive_convert_api_client.models.text_conversion_result import TextConversionResult from cloudmersive_convert_api_client.models.viewer_response import ViewerResponse +from cloudmersive_convert_api_client.models.worksheet_result import WorksheetResult from cloudmersive_convert_api_client.models.xlsx_image import XlsxImage from cloudmersive_convert_api_client.models.xlsx_spreadsheet_cell import XlsxSpreadsheetCell from cloudmersive_convert_api_client.models.xlsx_spreadsheet_column import XlsxSpreadsheetColumn diff --git a/cloudmersive_convert_api_client/models/split_xlsx_worksheet_result.py b/cloudmersive_convert_api_client/models/split_xlsx_worksheet_result.py new file mode 100644 index 0000000..c3dd074 --- /dev/null +++ b/cloudmersive_convert_api_client/models/split_xlsx_worksheet_result.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.worksheet_result import WorksheetResult # noqa: F401,E501 + + +class SplitXlsxWorksheetResult(object): + """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 = { + 'result_worksheets': 'list[WorksheetResult]', + 'successful': 'bool' + } + + attribute_map = { + 'result_worksheets': 'ResultWorksheets', + 'successful': 'Successful' + } + + def __init__(self, result_worksheets=None, successful=None): # noqa: E501 + """SplitXlsxWorksheetResult - a model defined in Swagger""" # noqa: E501 + + self._result_worksheets = None + self._successful = None + self.discriminator = None + + if result_worksheets is not None: + self.result_worksheets = result_worksheets + if successful is not None: + self.successful = successful + + @property + def result_worksheets(self): + """Gets the result_worksheets of this SplitXlsxWorksheetResult. # noqa: E501 + + + :return: The result_worksheets of this SplitXlsxWorksheetResult. # noqa: E501 + :rtype: list[WorksheetResult] + """ + return self._result_worksheets + + @result_worksheets.setter + def result_worksheets(self, result_worksheets): + """Sets the result_worksheets of this SplitXlsxWorksheetResult. + + + :param result_worksheets: The result_worksheets of this SplitXlsxWorksheetResult. # noqa: E501 + :type: list[WorksheetResult] + """ + + self._result_worksheets = result_worksheets + + @property + def successful(self): + """Gets the successful of this SplitXlsxWorksheetResult. # noqa: E501 + + True if the operation was successful, false otherwise # noqa: E501 + + :return: The successful of this SplitXlsxWorksheetResult. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this SplitXlsxWorksheetResult. + + True if the operation was successful, false otherwise # noqa: E501 + + :param successful: The successful of this SplitXlsxWorksheetResult. # noqa: E501 + :type: bool + """ + + self._successful = successful + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, 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 + if issubclass(SplitXlsxWorksheetResult, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.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, SplitXlsxWorksheetResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/worksheet_result.py b/cloudmersive_convert_api_client/models/worksheet_result.py new file mode 100644 index 0000000..a6a4034 --- /dev/null +++ b/cloudmersive_convert_api_client/models/worksheet_result.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WorksheetResult(object): + """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 = { + 'worksheet_number': 'int', + 'worksheet_name': 'str', + 'url': 'str' + } + + attribute_map = { + 'worksheet_number': 'WorksheetNumber', + 'worksheet_name': 'WorksheetName', + 'url': 'URL' + } + + def __init__(self, worksheet_number=None, worksheet_name=None, url=None): # noqa: E501 + """WorksheetResult - a model defined in Swagger""" # noqa: E501 + + self._worksheet_number = None + self._worksheet_name = None + self._url = None + self.discriminator = None + + if worksheet_number is not None: + self.worksheet_number = worksheet_number + if worksheet_name is not None: + self.worksheet_name = worksheet_name + if url is not None: + self.url = url + + @property + def worksheet_number(self): + """Gets the worksheet_number of this WorksheetResult. # noqa: E501 + + Worksheet number of the converted page, starting with 1 for the left-most worksheet # noqa: E501 + + :return: The worksheet_number of this WorksheetResult. # noqa: E501 + :rtype: int + """ + return self._worksheet_number + + @worksheet_number.setter + def worksheet_number(self, worksheet_number): + """Sets the worksheet_number of this WorksheetResult. + + Worksheet number of the converted page, starting with 1 for the left-most worksheet # noqa: E501 + + :param worksheet_number: The worksheet_number of this WorksheetResult. # noqa: E501 + :type: int + """ + + self._worksheet_number = worksheet_number + + @property + def worksheet_name(self): + """Gets the worksheet_name of this WorksheetResult. # noqa: E501 + + The name of the worksheet # noqa: E501 + + :return: The worksheet_name of this WorksheetResult. # noqa: E501 + :rtype: str + """ + return self._worksheet_name + + @worksheet_name.setter + def worksheet_name(self, worksheet_name): + """Sets the worksheet_name of this WorksheetResult. + + The name of the worksheet # noqa: E501 + + :param worksheet_name: The worksheet_name of this WorksheetResult. # noqa: E501 + :type: str + """ + + self._worksheet_name = worksheet_name + + @property + def url(self): + """Gets the url of this WorksheetResult. # noqa: E501 + + URL to the XLSX file of this worksheet; file is stored in an in-memory cache and will be deleted # noqa: E501 + + :return: The url of this WorksheetResult. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this WorksheetResult. + + URL to the XLSX file of this worksheet; file is stored in an in-memory cache and will be deleted # noqa: E501 + + :param url: The url of this WorksheetResult. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, 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 + if issubclass(WorksheetResult, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.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, WorksheetResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/docs/SplitDocumentApi.md b/docs/SplitDocumentApi.md new file mode 100644 index 0000000..be9aca4 --- /dev/null +++ b/docs/SplitDocumentApi.md @@ -0,0 +1,63 @@ +# cloudmersive_convert_api_client.SplitDocumentApi + +All URIs are relative to *https://api.cloudmersive.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**split_document_xlsx**](SplitDocumentApi.md#split_document_xlsx) | **POST** /convert/split/xlsx | Split a single Excel XLSX into Separate Worksheets + + +# **split_document_xlsx** +> SplitXlsxWorksheetResult split_document_xlsx(input_file) + +Split a single Excel XLSX into Separate Worksheets + +Split an Excel XLSX Spreadsheet, comprised of multiple Worksheets (or Tabs) into separate Excel XLSX spreadsheet files, with each containing exactly one Worksheet. + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.SplitDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file = '/path/to/file.txt' # file | Input file to perform the operation on. + +try: + # Split a single Excel XLSX into Separate Worksheets + api_response = api_instance.split_document_xlsx(input_file) + pprint(api_response) +except ApiException as e: + print("Exception when calling SplitDocumentApi->split_document_xlsx: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **file**| Input file to perform the operation on. | + +### Return type + +[**SplitXlsxWorksheetResult**](SplitXlsxWorksheetResult.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SplitXlsxWorksheetResult.md b/docs/SplitXlsxWorksheetResult.md new file mode 100644 index 0000000..3cd7464 --- /dev/null +++ b/docs/SplitXlsxWorksheetResult.md @@ -0,0 +1,11 @@ +# SplitXlsxWorksheetResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result_worksheets** | [**list[WorksheetResult]**](WorksheetResult.md) | | [optional] +**successful** | **bool** | True if the operation was successful, false otherwise | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WorksheetResult.md b/docs/WorksheetResult.md new file mode 100644 index 0000000..1bf97bc --- /dev/null +++ b/docs/WorksheetResult.md @@ -0,0 +1,12 @@ +# WorksheetResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**worksheet_number** | **int** | Worksheet number of the converted page, starting with 1 for the left-most worksheet | [optional] +**worksheet_name** | **str** | The name of the worksheet | [optional] +**url** | **str** | URL to the XLSX file of this worksheet; file is stored in an in-memory cache and will be deleted | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packageconfig.json b/packageconfig.json index 2fc1a69..aa33300 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.0.9", + "packageVersion": "2.1.0", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index 22efe1f..4a072d1 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudmersive_convert_api_client" -VERSION = "2.0.9" +VERSION = "2.1.0" # To install the library, run the following # # python setup.py install diff --git a/test/test_split_document_api.py b/test/test_split_document_api.py new file mode 100644 index 0000000..1bc7a2d --- /dev/null +++ b/test/test_split_document_api.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.api.split_document_api import SplitDocumentApi # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestSplitDocumentApi(unittest.TestCase): + """SplitDocumentApi unit test stubs""" + + def setUp(self): + self.api = cloudmersive_convert_api_client.api.split_document_api.SplitDocumentApi() # noqa: E501 + + def tearDown(self): + pass + + def test_split_document_xlsx(self): + """Test case for split_document_xlsx + + Split a single Excel XLSX into Separate Worksheets # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_split_xlsx_worksheet_result.py b/test/test_split_xlsx_worksheet_result.py new file mode 100644 index 0000000..3abae3f --- /dev/null +++ b/test/test_split_xlsx_worksheet_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.split_xlsx_worksheet_result import SplitXlsxWorksheetResult # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestSplitXlsxWorksheetResult(unittest.TestCase): + """SplitXlsxWorksheetResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSplitXlsxWorksheetResult(self): + """Test SplitXlsxWorksheetResult""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.split_xlsx_worksheet_result.SplitXlsxWorksheetResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_worksheet_result.py b/test/test_worksheet_result.py new file mode 100644 index 0000000..6217751 --- /dev/null +++ b/test/test_worksheet_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.worksheet_result import WorksheetResult # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestWorksheetResult(unittest.TestCase): + """WorksheetResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWorksheetResult(self): + """Test WorksheetResult""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.worksheet_result.WorksheetResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()