Skip to content

Commit

Permalink
2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Apr 19, 2020
1 parent ce75d5f commit 2617453
Show file tree
Hide file tree
Showing 19 changed files with 643 additions and 22 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.2
- Package version: 2.4.3
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -120,7 +120,8 @@ Class | Method | HTTP request | Description
*ConvertDocumentApi* | [**convert_document_xls_to_csv**](docs/ConvertDocumentApi.md#convert_document_xls_to_csv) | **POST** /convert/xls/to/csv | Convert Excel XLS (97-03) Spreadsheet to CSV
*ConvertDocumentApi* | [**convert_document_xls_to_pdf**](docs/ConvertDocumentApi.md#convert_document_xls_to_pdf) | **POST** /convert/xls/to/pdf | Convert Excel XLS (97-03) Spreadsheet to PDF
*ConvertDocumentApi* | [**convert_document_xls_to_xlsx**](docs/ConvertDocumentApi.md#convert_document_xls_to_xlsx) | **POST** /convert/xls/to/xlsx | Convert Excel XLS (97-03) Spreadsheet to XLSX
*ConvertDocumentApi* | [**convert_document_xlsx_to_csv**](docs/ConvertDocumentApi.md#convert_document_xlsx_to_csv) | **POST** /convert/xlsx/to/csv | Convert Excel XLSX Spreadsheet to CSV
*ConvertDocumentApi* | [**convert_document_xlsx_to_csv**](docs/ConvertDocumentApi.md#convert_document_xlsx_to_csv) | **POST** /convert/xlsx/to/csv | Convert Excel XLSX Spreadsheet to CSV, Single Worksheet
*ConvertDocumentApi* | [**convert_document_xlsx_to_csv_multi**](docs/ConvertDocumentApi.md#convert_document_xlsx_to_csv_multi) | **POST** /convert/xlsx/to/csv/multi | Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets
*ConvertDocumentApi* | [**convert_document_xlsx_to_pdf**](docs/ConvertDocumentApi.md#convert_document_xlsx_to_pdf) | **POST** /convert/xlsx/to/pdf | Convert Excel XLSX Spreadsheet to PDF
*ConvertDocumentApi* | [**convert_document_xlsx_to_txt**](docs/ConvertDocumentApi.md#convert_document_xlsx_to_txt) | **POST** /convert/xlsx/to/txt | Convert Excel XLSX Spreadsheet to Text (txt)
*ConvertImageApi* | [**convert_image_get_image_info**](docs/ConvertImageApi.md#convert_image_get_image_info) | **POST** /convert/image/get-info | Get information about an image
Expand Down Expand Up @@ -272,6 +273,8 @@ Class | Method | HTTP request | Description
- [CreateSpreadsheetFromDataRequest](docs/CreateSpreadsheetFromDataRequest.md)
- [CreateSpreadsheetFromDataResponse](docs/CreateSpreadsheetFromDataResponse.md)
- [CreateZipArchiveRequest](docs/CreateZipArchiveRequest.md)
- [CsvCollection](docs/CsvCollection.md)
- [CsvFileResult](docs/CsvFileResult.md)
- [DeleteDocxTableRowRangeRequest](docs/DeleteDocxTableRowRangeRequest.md)
- [DeleteDocxTableRowRangeResponse](docs/DeleteDocxTableRowRangeResponse.md)
- [DeleteDocxTableRowRequest](docs/DeleteDocxTableRowRequest.md)
Expand Down
2 changes: 2 additions & 0 deletions cloudmersive_convert_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_request import CreateSpreadsheetFromDataRequest
from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_response import CreateSpreadsheetFromDataResponse
from cloudmersive_convert_api_client.models.create_zip_archive_request import CreateZipArchiveRequest
from cloudmersive_convert_api_client.models.csv_collection import CsvCollection
from cloudmersive_convert_api_client.models.csv_file_result import CsvFileResult
from cloudmersive_convert_api_client.models.delete_docx_table_row_range_request import DeleteDocxTableRowRangeRequest
from cloudmersive_convert_api_client.models.delete_docx_table_row_range_response import DeleteDocxTableRowRangeResponse
from cloudmersive_convert_api_client.models.delete_docx_table_row_request import DeleteDocxTableRowRequest
Expand Down
115 changes: 109 additions & 6 deletions cloudmersive_convert_api_client/api/convert_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2759,17 +2759,17 @@ def convert_document_xls_to_xlsx_with_http_info(self, input_file, **kwargs): #
collection_formats=collection_formats)

def convert_document_xlsx_to_csv(self, input_file, **kwargs): # noqa: E501
"""Convert Excel XLSX Spreadsheet to CSV # noqa: E501
"""Convert Excel XLSX Spreadsheet to CSV, Single Worksheet # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. If the input file contains multiple worksheets, the first one is used. If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.convert_document_xlsx_to_csv(input_file, async_req=True)
>>> result = thread.get()
:param async_req bool
:param file input_file: Input file to perform the operation on. (required)
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8 and UTF-32. Default is UTF-32.
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
:return: str
If the method is called asynchronously,
returns the request thread.
Expand All @@ -2782,17 +2782,17 @@ def convert_document_xlsx_to_csv(self, input_file, **kwargs): # noqa: E501
return data

def convert_document_xlsx_to_csv_with_http_info(self, input_file, **kwargs): # noqa: E501
"""Convert Excel XLSX Spreadsheet to CSV # noqa: E501
"""Convert Excel XLSX Spreadsheet to CSV, Single Worksheet # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. If the input file contains multiple worksheets, the first one is used. If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.convert_document_xlsx_to_csv_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)
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8 and UTF-32. Default is UTF-32.
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
:return: str
If the method is called asynchronously,
returns the request thread.
Expand Down Expand Up @@ -2861,6 +2861,109 @@ def convert_document_xlsx_to_csv_with_http_info(self, input_file, **kwargs): #
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def convert_document_xlsx_to_csv_multi(self, input_file, **kwargs): # noqa: E501
"""Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format, with support for multiple worksheets. Supports both XLSX and XLSB file Excel formats. Returns multiple CSV files, one for each worksheet (tab) in the spreadsheet. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.convert_document_xlsx_to_csv_multi(input_file, async_req=True)
>>> result = thread.get()
:param async_req bool
:param file input_file: Input file to perform the operation on. (required)
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
:return: CsvCollection
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.convert_document_xlsx_to_csv_multi_with_http_info(input_file, **kwargs) # noqa: E501
else:
(data) = self.convert_document_xlsx_to_csv_multi_with_http_info(input_file, **kwargs) # noqa: E501
return data

def convert_document_xlsx_to_csv_multi_with_http_info(self, input_file, **kwargs): # noqa: E501
"""Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format, with support for multiple worksheets. Supports both XLSX and XLSB file Excel formats. Returns multiple CSV files, one for each worksheet (tab) in the spreadsheet. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.convert_document_xlsx_to_csv_multi_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)
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
:return: CsvCollection
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['input_file', 'output_encoding'] # 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 convert_document_xlsx_to_csv_multi" % 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 `convert_document_xlsx_to_csv_multi`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []

header_params = {}
if 'output_encoding' in params:
header_params['outputEncoding'] = params['output_encoding'] # noqa: E501

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/xlsx/to/csv/multi', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CsvCollection', # 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)

def convert_document_xlsx_to_pdf(self, input_file, **kwargs): # noqa: E501
"""Convert Excel XLSX Spreadsheet to PDF # noqa: E501
Expand Down
4 changes: 2 additions & 2 deletions cloudmersive_convert_api_client/api/validate_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def validate_document_json_validation_with_http_info(self, input_file, **kwargs)
def validate_document_pdf_validation(self, input_file, **kwargs): # noqa: E501
"""Validate a PDF document file # noqa: E501
Validate a PDF document; if the document is not valid, identifies the errors in the document # noqa: E501
Validate a PDF document; if the document is not valid, identifies the errors in the document. Also checks if the PDF is password protected. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.validate_document_pdf_validation(input_file, async_req=True)
Expand All @@ -454,7 +454,7 @@ def validate_document_pdf_validation(self, input_file, **kwargs): # noqa: E501
def validate_document_pdf_validation_with_http_info(self, input_file, **kwargs): # noqa: E501
"""Validate a PDF document file # noqa: E501
Validate a PDF document; if the document is not valid, identifies the errors in the document # noqa: E501
Validate a PDF document; if the document is not valid, identifies the errors in the document. Also checks if the PDF is password protected. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.validate_document_pdf_validation_with_http_info(input_file, async_req=True)
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.2/python'
self.user_agent = 'Swagger-Codegen/2.4.3/python'

def __del__(self):
if self._pool is not None:
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.2".\
"SDK Package Version: 2.4.3".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 2 additions & 0 deletions cloudmersive_convert_api_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_request import CreateSpreadsheetFromDataRequest
from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_response import CreateSpreadsheetFromDataResponse
from cloudmersive_convert_api_client.models.create_zip_archive_request import CreateZipArchiveRequest
from cloudmersive_convert_api_client.models.csv_collection import CsvCollection
from cloudmersive_convert_api_client.models.csv_file_result import CsvFileResult
from cloudmersive_convert_api_client.models.delete_docx_table_row_range_request import DeleteDocxTableRowRangeRequest
from cloudmersive_convert_api_client.models.delete_docx_table_row_range_response import DeleteDocxTableRowRangeResponse
from cloudmersive_convert_api_client.models.delete_docx_table_row_request import DeleteDocxTableRowRequest
Expand Down
Loading

0 comments on commit 2617453

Please sign in to comment.