Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Sep 2, 2019
1 parent f5feab8 commit e9473df
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# cloudmersive_convert_api_client
Convert API lets you effortlessly convert file formats and types.

This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
This Python package provides a native API client for [Cloudmersive OCR](https://www.cloudmersive.com/ocr-api)

- API version: v1
- Package version: 2.0.4
- Package version: 2.0.5
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
13 changes: 12 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@
$newcontent = (Get-Content ./core/replace.py -Raw)
Write-Host $newcontent
(Get-Content ./cloudmersive_convert_api_client/api_client.py).replace('if response_type:', $newcontent) | Set-Content ./cloudmersive_convert_api_client/api_client.py
(Get-Content ./cloudmersive_convert_api_client/rest.py).replace((Get-Content ./core/rest_match.py -Raw), (Get-Content ./core/rest_replace.py -Raw)) | Set-Content ./cloudmersive_convert_api_client/rest.py
(Get-Content ./cloudmersive_convert_api_client/rest.py).replace((Get-Content ./core/rest_match.py -Raw), (Get-Content ./core/rest_replace.py -Raw)) | Set-Content ./cloudmersive_convert_api_client/rest.py



$extrasetup = (Get-Content ./extrasetup.py) -join "`n"
Write-Host $extrasetup
(Get-Content ./setup.py).replace('# http://pypi.python.org/pypi/setuptools', $extrasetup) | Set-Content ./setup.py
(Get-Content ./setup.py).replace('"""\', "long_description,`n long_description_content_type='text/markdown'") | Set-Content ./setup.py
(Get-Content ./setup.py).replace('Convert API lets you effortlessly convert file formats and types. # noqa: E501', '') | Set-Content ./setup.py
(Get-Content ./setup.py).replace(' """', '') | Set-Content ./setup.py
(Get-Content ./README.md).replace('This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:', 'This Python package provides a native API client for [Cloudmersive OCR](https://www.cloudmersive.com/ocr-api)') | Set-Content ./README.md
Write-Host "Done."
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.0.4/python'
self.user_agent = 'Swagger-Codegen/2.0.5/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.0.4".\
"SDK Package Version: 2.0.5".\
format(env=sys.platform, pyversion=sys.version)
18 changes: 11 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Expand All @@ -14,13 +14,16 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "cloudmersive_convert_api_client"
VERSION = "2.0.4"
VERSION = "2.0.5"
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

REQUIRES = [
"certifi>=2017.4.17",
Expand All @@ -35,12 +38,13 @@
version=VERSION,
description="convertapi",
author_email="",
url="",
url="https://www.cloudmersive.com/convert-api",
keywords=["Swagger", "convertapi"],
install_requires=REQUIRES,
packages=find_packages(),
include_package_data=True,
long_description="""\
Convert API lets you effortlessly convert file formats and types. # noqa: E501
"""
long_description=long_description,
long_description_content_type='text/markdown'


)

0 comments on commit e9473df

Please sign in to comment.