diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-responses/README.md index d6ea0ab00..66d022c8d 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/README.md @@ -2,4 +2,4 @@ |Language|Version|Package Manager|Documentation|Source| |-|-|-|-|-| -|Python|1.0.0|[PyPI](https://pypi.org/project/python-dataclass-responses-python-sdk/1.0.0)|[Documentation](https://github.com/konfig-dev/konfig/tree/main/python/blob/main/README.md)|[Source](https://github.com/konfig-dev/konfig/tree/main/python)| \ No newline at end of file +|Python|1.0.0|[PyPI](https://pypi.org/project/python-pydantic-responses-python-sdk/1.0.0)|[Documentation](https://github.com/konfig-dev/konfig/tree/main/python/blob/main/README.md)|[Source](https://github.com/konfig-dev/konfig/tree/main/python)| \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/api.yaml b/generator/konfig-integration-tests/sdks/python-pydantic-responses/api.yaml index a64ac8844..0b4e8327e 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/api.yaml +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/api.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: - title: Python Dataclass Responses API - description: A simple API based on python dataclass responses. + title: Python Pydantic Responses API + description: A simple API based on python pydantic responses. version: 1.0.0 termsOfService: http://example.com/terms/ contact: @@ -13,7 +13,7 @@ info: url: http://www.apache.org/licenses/LICENSE-2.0.html servers: - description: Live API server - url: https://python-dataclass-responses.konfigthis.com + url: https://python-pydantic-responses.konfigthis.com tags: - name: Test paths: diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/konfig.yaml b/generator/konfig-integration-tests/sdks/python-pydantic-responses/konfig.yaml index 17cac81e0..644bd580a 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/konfig.yaml +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/konfig.yaml @@ -1,14 +1,14 @@ # yaml-language-server: $schema=https://unpkg.com/konfig-lib@latest/konfig-yaml.schema.json -outputDirectory: /tmp/python-dataclass-responses-sdks-out +outputDirectory: /tmp/python-pydantic-responses-sdks-out specPath: api.yaml generators: python: version: 1.0.0 - packageName: python_dataclass_responses - projectName: python-dataclass-responses-python-sdk + packageName: python_pydantic + projectName: python-pydantic-responses-python-sdk outputDirectory: python - clientName: PythonDataclassResponses + clientName: PythonPydanticResponses git: userId: konfig-dev repoId: konfig/tree/main/python diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md index ce343ae07..5313792c2 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md @@ -1,9 +1,9 @@ -# python-dataclass-responses-python-sdk +# python-pydantic-responses-python-sdk -A simple API based on python dataclass responses. +A simple API based on python pydantic responses. -[![PyPI](https://img.shields.io/badge/PyPI-v1.0.0-blue)](https://pypi.org/project/python-dataclass-responses-python-sdk/1.0.0) +[![PyPI](https://img.shields.io/badge/PyPI-v1.0.0-blue)](https://pypi.org/project/python-pydantic-responses-python-sdk/1.0.0) [![GitHub last commit](https://img.shields.io/github/last-commit/konfig-dev/konfig.svg)](https://github.com/konfig-dev/konfig/commits) [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/konfig-dev/konfig/tree/main/python#readme) [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](http://example.com/support) @@ -17,7 +17,7 @@ A simple API based on python dataclass responses. - [Getting Started](#getting-started) - [Async](#async) - [Reference](#reference) - * [`pythondataclassresponses.test.fetch`](#pythondataclassresponsestestfetch) + * [`pythonpydanticresponses.test.fetch`](#pythonpydanticresponsestestfetch) @@ -28,22 +28,22 @@ Python >=3.7 ## Installing ```sh -pip install python-dataclass-responses-python-sdk==1.0.0 +pip install python-pydantic-responses-python-sdk==1.0.0 ``` ## Getting Started ```python from pprint import pprint -from python_dataclass_responses import PythonDataclassResponses, ApiException +from python_pydantic import PythonPydanticResponses, ApiException -pythondataclassresponses = PythonDataclassResponses( +pythonpydanticresponses = PythonPydanticResponses( api_key="YOUR_API_KEY", ) try: # Fetches a JSON value based on input parameter - fetch_response = pythondataclassresponses.test.fetch( + fetch_response = pythonpydanticresponses.test.fetch( input_parameter="inputParameter_example", ) pprint(fetch_response.body) @@ -73,9 +73,9 @@ except ApiException as e: ```python import asyncio from pprint import pprint -from python_dataclass_responses import PythonDataclassResponses, ApiException +from python_pydantic import PythonPydanticResponses, ApiException -pythondataclassresponses = PythonDataclassResponses( +pythonpydanticresponses = PythonPydanticResponses( api_key="YOUR_API_KEY", ) @@ -83,7 +83,7 @@ pythondataclassresponses = PythonDataclassResponses( async def main(): try: # Fetches a JSON value based on input parameter - fetch_response = await pythondataclassresponses.test.afetch( + fetch_response = await pythonpydanticresponses.test.afetch( input_parameter="inputParameter_example", ) pprint(fetch_response.body) @@ -111,14 +111,14 @@ asyncio.run(main()) ## Reference -### `pythondataclassresponses.test.fetch` +### `pythonpydanticresponses.test.fetch` Provide an input parameter to receive a JSON value with properties. #### 🛠️ Usage ```python -fetch_response = pythondataclassresponses.test.fetch( +fetch_response = pythonpydanticresponses.test.fetch( input_parameter="inputParameter_example", ) ``` @@ -131,7 +131,7 @@ The input parameter to process. #### 🔄 Return -[TestFetchResponse](./python_dataclass_responses/type/test_fetch_response.py) +[TestFetchResponse](./python_pydantic/type/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/pyproject.toml b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/pyproject.toml index 56a2eea50..966feecd0 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/pyproject.toml +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] -name = "python-dataclass-responses-python-sdk" +name = "python-pydantic-responses-python-sdk" version = "1.0.0" -description = "Client for Python Dataclass Responses API" +description = "Client for Python Pydantic Responses API" authors = ["API Support "] license = "MIT" readme = "README.md" -packages = [{include = "python_dataclass_responses"}] +packages = [{include = "python_pydantic"}] [tool.poetry.dependencies] python = "^3.7" diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/__init__.py deleted file mode 100644 index 8401992c8..000000000 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Python Dataclass Responses API - - A simple API based on python dataclass responses. - - The version of the OpenAPI document: 1.0.0 - Contact: support@example.com - Created by: http://example.com/support -""" - -__version__ = "1.0.0" - -# import ApiClient -from python_dataclass_responses.api_client import ApiClient - -# import Configuration -from python_dataclass_responses.configuration import Configuration - -# import exceptions -from python_dataclass_responses.exceptions import OpenApiException -from python_dataclass_responses.exceptions import ApiAttributeError -from python_dataclass_responses.exceptions import ApiTypeError -from python_dataclass_responses.exceptions import ApiValueError -from python_dataclass_responses.exceptions import ApiKeyError -from python_dataclass_responses.exceptions import ApiException - -from python_dataclass_responses.client import PythonDataclassResponses diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/paths/simple_endpoint.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/paths/simple_endpoint.py deleted file mode 100644 index e5c4e2c14..000000000 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/paths/simple_endpoint.py +++ /dev/null @@ -1,7 +0,0 @@ -from python_dataclass_responses.paths.simple_endpoint.get import ApiForget - - -class SimpleEndpoint( - ApiForget, -): - pass diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/__init__.py new file mode 100644 index 000000000..70c63c87b --- /dev/null +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/__init__.py @@ -0,0 +1,31 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Python Pydantic Responses API + + A simple API based on python pydantic responses. + + The version of the OpenAPI document: 1.0.0 + Contact: support@example.com + Created by: http://example.com/support +""" + +__version__ = "1.0.0" + +# import ApiClient +from python_pydantic.api_client import ApiClient + +# import Configuration +from python_pydantic.configuration import Configuration + +# import exceptions +from python_pydantic.exceptions import OpenApiException +from python_pydantic.exceptions import ApiAttributeError +from python_pydantic.exceptions import ApiTypeError +from python_pydantic.exceptions import ApiValueError +from python_pydantic.exceptions import ApiKeyError +from python_pydantic.exceptions import ApiException + +from python_pydantic.client import PythonPydanticResponses diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/api_client.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/api_client.py similarity index 99% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/api_client.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/api_client.py index 06e03c7fc..1648806bd 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/api_client.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/api_client.py @@ -1,8 +1,8 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -32,14 +32,14 @@ import frozendict -from python_dataclass_responses import rest -from python_dataclass_responses.api_response import ApiResponse, AsyncApiResponse -from python_dataclass_responses.rest import AsyncResponseWrapper, ResponseWrapper -from python_dataclass_responses.configuration import Configuration -from python_dataclass_responses.exceptions import ApiTypeError, ApiValueError, MissingRequiredParametersError -from python_dataclass_responses.request_after_hook import request_after_hook -from python_dataclass_responses.request_before_url_hook import request_before_url_hook -from python_dataclass_responses.schemas import ( +from python_pydantic import rest +from python_pydantic.api_response import ApiResponse, AsyncApiResponse +from python_pydantic.rest import AsyncResponseWrapper, ResponseWrapper +from python_pydantic.configuration import Configuration +from python_pydantic.exceptions import ApiTypeError, ApiValueError, MissingRequiredParametersError +from python_pydantic.request_after_hook import request_after_hook +from python_pydantic.request_before_url_hook import request_before_url_hook +from python_pydantic.schemas import ( NoneClass, BoolClass, Schema, diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/api_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/api_response.py similarity index 100% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/api_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/api_response.py diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/__init__.py similarity index 100% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/__init__.py diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/path_to_api.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/path_to_api.py similarity index 63% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/path_to_api.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/path_to_api.py index 3d0555156..04b37c449 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/path_to_api.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/path_to_api.py @@ -1,7 +1,7 @@ import typing_extensions -from python_dataclass_responses.paths import PathValues -from python_dataclass_responses.apis.paths.simple_endpoint import SimpleEndpoint +from python_pydantic.paths import PathValues +from python_pydantic.apis.paths.simple_endpoint import SimpleEndpoint PathToApi = typing_extensions.TypedDict( 'PathToApi', diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/paths/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/__init__.py similarity index 72% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/paths/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/__init__.py index f090069d9..3a3709c76 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/paths/__init__.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/__init__.py @@ -1,3 +1,3 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints from this module, import them with -# from python_dataclass_responses.apis.path_to_api import path_to_api +# from python_pydantic.apis.path_to_api import path_to_api diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/simple_endpoint.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/simple_endpoint.py new file mode 100644 index 000000000..54f512053 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/simple_endpoint.py @@ -0,0 +1,7 @@ +from python_pydantic.paths.simple_endpoint.get import ApiForget + + +class SimpleEndpoint( + ApiForget, +): + pass diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tag_to_api.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tag_to_api.py similarity index 61% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tag_to_api.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tag_to_api.py index 66ca563df..cd6f5559c 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tag_to_api.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tag_to_api.py @@ -1,7 +1,7 @@ import typing_extensions -from python_dataclass_responses.apis.tags import TagValues -from python_dataclass_responses.apis.tags.test_api import TestApi +from python_pydantic.apis.tags import TagValues +from python_pydantic.apis.tags.test_api import TestApi TagToApi = typing_extensions.TypedDict( 'TagToApi', diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tags/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tags/__init__.py similarity index 78% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tags/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tags/__init__.py index b87cced75..cec254273 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tags/__init__.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tags/__init__.py @@ -1,6 +1,6 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints from this module, import them with -# from python_dataclass_responses.apis.tag_to_api import tag_to_api +# from python_pydantic.apis.tag_to_api import tag_to_api import enum diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tags/test_api.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tags/test_api.py similarity index 63% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tags/test_api.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tags/test_api.py index 1e6c92688..43b1dacee 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/apis/tags/test_api.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/apis/tags/test_api.py @@ -1,16 +1,16 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com Created by: http://example.com/support """ -from python_dataclass_responses.paths.simple_endpoint.get import Fetch +from python_pydantic.paths.simple_endpoint.get import Fetch class TestApi( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client.py similarity index 57% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client.py index 2baf8496f..33fac6e29 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client.py @@ -1,8 +1,8 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,15 +12,15 @@ import typing import inspect from datetime import date, datetime -from python_dataclass_responses.client_custom import ClientCustom -from python_dataclass_responses.configuration import Configuration -from python_dataclass_responses.api_client import ApiClient -from python_dataclass_responses.type_util import copy_signature -from python_dataclass_responses.apis.tags.test_api import TestApi +from python_pydantic.client_custom import ClientCustom +from python_pydantic.configuration import Configuration +from python_pydantic.api_client import ApiClient +from python_pydantic.type_util import copy_signature +from python_pydantic.apis.tags.test_api import TestApi -class PythonDataclassResponses(ClientCustom): +class PythonPydanticResponses(ClientCustom): def __init__(self, configuration: typing.Union[Configuration, None] = None, **kwargs): super().__init__(configuration, **kwargs) diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client.pyi b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client.pyi similarity index 57% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client.pyi rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client.pyi index 2baf8496f..33fac6e29 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client.pyi +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client.pyi @@ -1,8 +1,8 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,15 +12,15 @@ import typing import inspect from datetime import date, datetime -from python_dataclass_responses.client_custom import ClientCustom -from python_dataclass_responses.configuration import Configuration -from python_dataclass_responses.api_client import ApiClient -from python_dataclass_responses.type_util import copy_signature -from python_dataclass_responses.apis.tags.test_api import TestApi +from python_pydantic.client_custom import ClientCustom +from python_pydantic.configuration import Configuration +from python_pydantic.api_client import ApiClient +from python_pydantic.type_util import copy_signature +from python_pydantic.apis.tags.test_api import TestApi -class PythonDataclassResponses(ClientCustom): +class PythonPydanticResponses(ClientCustom): def __init__(self, configuration: typing.Union[Configuration, None] = None, **kwargs): super().__init__(configuration, **kwargs) diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client_custom.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client_custom.py similarity index 72% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client_custom.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client_custom.py index 9e9fb41ba..08bd498ff 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/client_custom.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/client_custom.py @@ -1,8 +1,8 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -11,8 +11,8 @@ import typing -from python_dataclass_responses.configuration import Configuration -from python_dataclass_responses.api_client import ApiClient +from python_pydantic.configuration import Configuration +from python_pydantic.api_client import ApiClient diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/configuration.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/configuration.py similarity index 96% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/configuration.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/configuration.py index fd146654d..04e5f7001 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/configuration.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/configuration.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -20,9 +20,9 @@ import re from urllib.parse import urlparse from http import client as http_client -from python_dataclass_responses.exceptions_base import ApiValueError -from python_dataclass_responses.exceptions import ClientConfigurationError -from python_dataclass_responses.exceptions import InvalidHostConfigurationError +from python_pydantic.exceptions_base import ApiValueError +from python_pydantic.exceptions import ClientConfigurationError +from python_pydantic.exceptions import InvalidHostConfigurationError JSON_SCHEMA_VALIDATION_KEYWORDS = { @@ -93,7 +93,7 @@ class Configuration(object): You can programmatically set the cookie: -conf = python_dataclass_responses.Configuration( +conf = python_pydantic.Configuration( api_key={'cookieAuth': 'abc123'} api_key_prefix={'cookieAuth': 'JSESSIONID'} ) @@ -115,7 +115,7 @@ def __init__(self, host=None, ): """Constructor """ - self.host = "https://python-dataclass-responses.konfigthis.com" if host is None else host + self.host = "https://python-pydantic-responses.konfigthis.com" if host is None else host """Default Base url """ self.server_index = 0 if server_index is None and host is None else server_index @@ -162,7 +162,7 @@ def __init__(self, host=None, self.disabled_client_side_validations = disabled_client_side_validations """Logging Settings """ - self.logger = logging.getLogger("python_dataclass_responses") + self.logger = logging.getLogger("python_pydantic") # if no handler for logger, add a stream handler if not self.logger.handlers: self.logger.addHandler(logging.StreamHandler()) @@ -416,7 +416,7 @@ def get_host_settings(self): """ return [ { - 'url': "https://python-dataclass-responses.konfigthis.com", + 'url': "https://python-pydantic-responses.konfigthis.com", 'description': "Live API server", } ] diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/exceptions.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/exceptions.py similarity index 96% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/exceptions.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/exceptions.py index 6a54de21f..00289c138 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/exceptions.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/exceptions.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,8 +12,8 @@ import typing -from python_dataclass_responses.api_response import ApiResponse, AsyncApiResponse -from python_dataclass_responses.exceptions_base import OpenApiException, ApiTypeError, ApiValueError, render_path +from python_pydantic.api_response import ApiResponse, AsyncApiResponse +from python_pydantic.exceptions_base import OpenApiException, ApiTypeError, ApiValueError, render_path class ClientConfigurationError(OpenApiException): def __init__(self, msg): diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/exceptions_base.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/exceptions_base.py similarity index 100% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/exceptions_base.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/exceptions_base.py diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/__init__.py similarity index 82% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/__init__.py index 30ba88bbb..b71289aa8 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/__init__.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/__init__.py @@ -2,4 +2,4 @@ # reference which would not work in python2 # do not import all models into this module because that uses a lot of memory and stack frames # if you need the ability to import all models from one package, import them with -# from python_dataclass_responses.models import ModelA, ModelB +# from python_pydantic.models import ModelA, ModelB diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch400_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch400_response.py similarity index 93% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch400_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch400_response.py index 4a0854d30..483a51ca2 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch400_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch400_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -21,7 +21,7 @@ import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 class TestFetch400Response( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch400_response.pyi b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch400_response.pyi similarity index 93% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch400_response.pyi rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch400_response.pyi index 4a0854d30..483a51ca2 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch400_response.pyi +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch400_response.pyi @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -21,7 +21,7 @@ import uuid # noqa: F401 import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 class TestFetch400Response( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch500_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch500_response.py similarity index 93% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch500_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch500_response.py index c5abff689..f98fb7839 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch500_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch500_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -21,7 +21,7 @@ import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 class TestFetch500Response( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch500_response.pyi b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch500_response.pyi similarity index 93% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch500_response.pyi rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch500_response.pyi index c5abff689..f98fb7839 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch500_response.pyi +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch500_response.pyi @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -21,7 +21,7 @@ import uuid # noqa: F401 import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 class TestFetch500Response( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch_response.py similarity index 95% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch_response.py index 6bca5fb27..8fbcaa64d 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -21,7 +21,7 @@ import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 class TestFetchResponse( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch_response.pyi b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch_response.pyi similarity index 95% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch_response.pyi rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch_response.pyi index 6bca5fb27..8fbcaa64d 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/model/test_fetch_response.pyi +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/model/test_fetch_response.pyi @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -21,7 +21,7 @@ import uuid # noqa: F401 import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 class TestFetchResponse( diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/models/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/models/__init__.py similarity index 51% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/models/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/models/__init__.py index fd417d725..24b0ec93f 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/models/__init__.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/models/__init__.py @@ -6,11 +6,11 @@ # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: -# from from python_dataclass_responses.model.pet import Pet +# from from python_pydantic.model.pet import Pet # or import this package, but before doing it, use: # import sys # sys.setrecursionlimit(n) -from python_dataclass_responses.model.test_fetch400_response import TestFetch400Response -from python_dataclass_responses.model.test_fetch500_response import TestFetch500Response -from python_dataclass_responses.model.test_fetch_response import TestFetchResponse +from python_pydantic.model.test_fetch400_response import TestFetch400Response +from python_pydantic.model.test_fetch500_response import TestFetch500Response +from python_pydantic.model.test_fetch_response import TestFetchResponse diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/__init__.py similarity index 79% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/__init__.py index 405c3571d..60d119b47 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/__init__.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/__init__.py @@ -1,6 +1,6 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints from this module, import them with -# from python_dataclass_responses.apis.path_to_api import path_to_api +# from python_pydantic.apis.path_to_api import path_to_api import enum diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/__init__.py similarity index 63% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/__init__.py index bb62dd52f..20bb81d81 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/__init__.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/__init__.py @@ -1,7 +1,7 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints from this module, import them with -# from python_dataclass_responses.paths.simple_endpoint import Api +# from python_pydantic.paths.simple_endpoint import Api -from python_dataclass_responses.paths import PathValues +from python_pydantic.paths import PathValues path = PathValues.SIMPLEENDPOINT \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/get.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/get.py similarity index 91% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/get.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/get.py index 3c877d139..5d1937074 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/get.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/get.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -13,12 +13,12 @@ from dataclasses import dataclass import typing_extensions import urllib3 -from python_dataclass_responses.request_before_hook import request_before_hook +from python_pydantic.request_before_hook import request_before_hook import json from urllib3._collections import HTTPHeaderDict -from python_dataclass_responses.api_response import AsyncGeneratorResponse -from python_dataclass_responses import api_client, exceptions +from python_pydantic.api_response import AsyncGeneratorResponse +from python_pydantic import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 @@ -30,19 +30,19 @@ import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 -from python_dataclass_responses.model.test_fetch400_response import TestFetch400Response as TestFetch400ResponseSchema -from python_dataclass_responses.model.test_fetch500_response import TestFetch500Response as TestFetch500ResponseSchema -from python_dataclass_responses.model.test_fetch_response import TestFetchResponse as TestFetchResponseSchema +from python_pydantic.model.test_fetch_response import TestFetchResponse as TestFetchResponseSchema +from python_pydantic.model.test_fetch400_response import TestFetch400Response as TestFetch400ResponseSchema +from python_pydantic.model.test_fetch500_response import TestFetch500Response as TestFetch500ResponseSchema -from python_dataclass_responses.type.test_fetch500_response import TestFetch500Response -from python_dataclass_responses.type.test_fetch_response import TestFetchResponse -from python_dataclass_responses.type.test_fetch400_response import TestFetch400Response +from python_pydantic.type.test_fetch400_response import TestFetch400Response +from python_pydantic.type.test_fetch500_response import TestFetch500Response +from python_pydantic.type.test_fetch_response import TestFetchResponse -from python_dataclass_responses.pydantic.test_fetch500_response import TestFetch500Response as TestFetch500ResponsePydantic -from python_dataclass_responses.pydantic.test_fetch400_response import TestFetch400Response as TestFetch400ResponsePydantic -from python_dataclass_responses.pydantic.test_fetch_response import TestFetchResponse as TestFetchResponsePydantic +from python_pydantic.pydantic.test_fetch_response import TestFetchResponse as TestFetchResponsePydantic +from python_pydantic.pydantic.test_fetch500_response import TestFetch500Response as TestFetch500ResponsePydantic +from python_pydantic.pydantic.test_fetch400_response import TestFetch400Response as TestFetch400ResponsePydantic from . import path diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/get.pyi b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/get.pyi similarity index 91% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/get.pyi rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/get.pyi index cfded882d..7b91c5f74 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/paths/simple_endpoint/get.pyi +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/paths/simple_endpoint/get.pyi @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -13,12 +13,12 @@ from dataclasses import dataclass import typing_extensions import urllib3 -from python_dataclass_responses.request_before_hook import request_before_hook +from python_pydantic.request_before_hook import request_before_hook import json from urllib3._collections import HTTPHeaderDict -from python_dataclass_responses.api_response import AsyncGeneratorResponse -from python_dataclass_responses import api_client, exceptions +from python_pydantic.api_response import AsyncGeneratorResponse +from python_pydantic import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 @@ -30,19 +30,19 @@ import uuid # noqa: F401 import frozendict # noqa: F401 -from python_dataclass_responses import schemas # noqa: F401 +from python_pydantic import schemas # noqa: F401 -from python_dataclass_responses.model.test_fetch400_response import TestFetch400Response as TestFetch400ResponseSchema -from python_dataclass_responses.model.test_fetch500_response import TestFetch500Response as TestFetch500ResponseSchema -from python_dataclass_responses.model.test_fetch_response import TestFetchResponse as TestFetchResponseSchema +from python_pydantic.model.test_fetch_response import TestFetchResponse as TestFetchResponseSchema +from python_pydantic.model.test_fetch400_response import TestFetch400Response as TestFetch400ResponseSchema +from python_pydantic.model.test_fetch500_response import TestFetch500Response as TestFetch500ResponseSchema -from python_dataclass_responses.type.test_fetch500_response import TestFetch500Response -from python_dataclass_responses.type.test_fetch_response import TestFetchResponse -from python_dataclass_responses.type.test_fetch400_response import TestFetch400Response +from python_pydantic.type.test_fetch400_response import TestFetch400Response +from python_pydantic.type.test_fetch500_response import TestFetch500Response +from python_pydantic.type.test_fetch_response import TestFetchResponse -from python_dataclass_responses.pydantic.test_fetch500_response import TestFetch500Response as TestFetch500ResponsePydantic -from python_dataclass_responses.pydantic.test_fetch400_response import TestFetch400Response as TestFetch400ResponsePydantic -from python_dataclass_responses.pydantic.test_fetch_response import TestFetchResponse as TestFetchResponsePydantic +from python_pydantic.pydantic.test_fetch_response import TestFetchResponse as TestFetchResponsePydantic +from python_pydantic.pydantic.test_fetch500_response import TestFetch500Response as TestFetch500ResponsePydantic +from python_pydantic.pydantic.test_fetch400_response import TestFetch400Response as TestFetch400ResponsePydantic # Query params InputParameterSchema = schemas.StrSchema diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/__init__.py similarity index 100% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/__init__.py diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch400_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch400_response.py similarity index 81% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch400_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch400_response.py index 865a8f31f..942e01c39 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch400_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch400_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch500_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch500_response.py similarity index 81% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch500_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch500_response.py index 0cc9980ce..70fb39168 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch500_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch500_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch_response.py similarity index 86% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch_response.py index 0ecb98b44..9cf16ccc1 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/pydantic/test_fetch_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/pydantic/test_fetch_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_after_hook.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_after_hook.py similarity index 78% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_after_hook.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_after_hook.py index 91d0aaf77..ca74d5de2 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_after_hook.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_after_hook.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,7 +12,7 @@ import typing from urllib3._collections import HTTPHeaderDict -from python_dataclass_responses.configuration import Configuration +from python_pydantic.configuration import Configuration def request_after_hook( resource_path: str, diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_before_hook.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_before_hook.py similarity index 78% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_before_hook.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_before_hook.py index 3673879eb..a06461658 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_before_hook.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_before_hook.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,7 +12,7 @@ import typing from urllib3._collections import HTTPHeaderDict -from python_dataclass_responses.configuration import Configuration +from python_pydantic.configuration import Configuration def request_before_hook( resource_path: str, diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_before_url_hook.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_before_url_hook.py similarity index 79% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_before_url_hook.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_before_url_hook.py index b3352607d..8602124fb 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/request_before_url_hook.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/request_before_url_hook.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,7 +12,7 @@ import typing from urllib3._collections import HTTPHeaderDict -from python_dataclass_responses.configuration import Configuration +from python_pydantic.configuration import Configuration def request_before_url_hook( resource_path_ref: typing.List[str], diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/rest.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/rest.py similarity index 98% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/rest.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/rest.py index 628f0fa7e..b54722a61 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/rest.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/rest.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -22,7 +22,7 @@ import time from urllib3._collections import HTTPHeaderDict -from python_dataclass_responses.exceptions import ApiException, ApiValueError +from python_pydantic.exceptions import ApiException, ApiValueError logger = logging.getLogger(__name__) diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/schemas.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/schemas.py similarity index 99% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/schemas.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/schemas.py index d590ce64e..41441345c 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/schemas.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/schemas.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -24,18 +24,18 @@ from dateutil.parser.isoparser import isoparser, _takes_ascii import frozendict -from python_dataclass_responses.exceptions_base import ( +from python_pydantic.exceptions_base import ( ApiTypeError, ApiValueError, ) -from python_dataclass_responses.configuration import ( +from python_pydantic.configuration import ( Configuration, ) -from python_dataclass_responses.exceptions import SchemaValidationError -from python_dataclass_responses.exceptions import render_path -from python_dataclass_responses.validation_metadata import ValidationMetadata -from python_dataclass_responses.exceptions import AnyOfValidationError -from python_dataclass_responses.exceptions import MissingRequiredPropertiesError +from python_pydantic.exceptions import SchemaValidationError +from python_pydantic.exceptions import render_path +from python_pydantic.validation_metadata import ValidationMetadata +from python_pydantic.exceptions import AnyOfValidationError +from python_pydantic.exceptions import MissingRequiredPropertiesError Primitive: typing_extensions.TypeAlias = typing.Union[int, float, bool, str] diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/__init__.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/__init__.py similarity index 100% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/__init__.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/__init__.py diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch400_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch400_response.py similarity index 84% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch400_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch400_response.py index 54ca49888..90c91d099 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch400_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch400_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch500_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch500_response.py similarity index 84% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch500_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch500_response.py index 7ed3743da..3239566e1 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch500_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch500_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch_response.py similarity index 87% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch_response.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch_response.py index 8a10bd728..d3b77b567 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type/test_fetch_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type/test_fetch_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type_util.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type_util.py similarity index 84% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type_util.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type_util.py index 689b1cbcb..771df18eb 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/type_util.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/type_util.py @@ -1,7 +1,7 @@ """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/validation_metadata.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/validation_metadata.py similarity index 98% rename from generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/validation_metadata.py rename to generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/validation_metadata.py index 74b314a72..189924bb1 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/validation_metadata.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/validation_metadata.py @@ -1,6 +1,6 @@ import frozendict import typing -from python_dataclass_responses.configuration import ( +from python_pydantic.configuration import ( Configuration, ) diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/setup.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/setup.py index f117f5dfa..fdbdc324e 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/setup.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/setup.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301 -NAME = "python-dataclass-responses-python-sdk" +NAME = "python-pydantic-responses-python-sdk" VERSION = "1.0.0" # To install the library, run the following # @@ -39,11 +39,11 @@ setup( name=NAME, version=VERSION, - description="Python Dataclass Responses API", + description="Python Pydantic Responses API", author="API Support", author_email="support@example.com", url="https://github.com/konfig-dev/konfig/tree/main/python", - keywords=["Konfig", "Python Dataclass Responses API"], + keywords=["Konfig", "Python Pydantic Responses API"], python_requires=">=3.7", install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_check_url.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_check_url.py index 94d05e049..c010087b4 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_check_url.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_check_url.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -11,8 +11,8 @@ """ import unittest -from python_dataclass_responses.configuration import check_url -from python_dataclass_responses.exceptions import InvalidHostConfigurationError +from python_pydantic.configuration import check_url +from python_pydantic.exceptions import InvalidHostConfigurationError class TestIsValidUrl(unittest.TestCase): diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_deprecation_warning.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_deprecation_warning.py index e0333bd29..9a203aa96 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_deprecation_warning.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_deprecation_warning.py @@ -1,8 +1,8 @@ import unittest from unittest.mock import patch -from python_dataclass_responses.api_client import ApiClient, DeprecationWarningOnce -from python_dataclass_responses.configuration import Configuration +from python_pydantic.api_client import ApiClient, DeprecationWarningOnce +from python_pydantic.configuration import Configuration class RandomClass: diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch400_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch400_response.py index 6380f687b..012503637 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch400_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch400_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,9 +12,9 @@ import unittest -import python_dataclass_responses -from python_dataclass_responses.model.test_fetch400_response import TestFetch400Response -from python_dataclass_responses import configuration +import python_pydantic +from python_pydantic.model.test_fetch400_response import TestFetch400Response +from python_pydantic import configuration class TestTestFetch400Response(unittest.TestCase): diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch500_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch500_response.py index a200bb56a..a24c56542 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch500_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch500_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,9 +12,9 @@ import unittest -import python_dataclass_responses -from python_dataclass_responses.model.test_fetch500_response import TestFetch500Response -from python_dataclass_responses import configuration +import python_pydantic +from python_pydantic.model.test_fetch500_response import TestFetch500Response +from python_pydantic import configuration class TestTestFetch500Response(unittest.TestCase): diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch_response.py index ccc4a696e..c55d4786d 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_models/test_test_fetch_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -12,9 +12,9 @@ import unittest -import python_dataclass_responses -from python_dataclass_responses.model.test_fetch_response import TestFetchResponse -from python_dataclass_responses import configuration +import python_pydantic +from python_pydantic.model.test_fetch_response import TestFetchResponse +from python_pydantic import configuration class TestTestFetchResponse(unittest.TestCase): diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_paths/test_simple_endpoint/test_get.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_paths/test_simple_endpoint/test_get.py index 8bb893b76..e6baac520 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_paths/test_simple_endpoint/test_get.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_paths/test_simple_endpoint/test_get.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -15,9 +15,9 @@ import urllib3 -import python_dataclass_responses -from python_dataclass_responses.paths.simple_endpoint import get -from python_dataclass_responses import configuration, schemas, api_client +import python_pydantic +from python_pydantic.paths.simple_endpoint import get +from python_pydantic import configuration, schemas, api_client from .. import ApiTestMixin diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_pydantic_response.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_pydantic_response.py index ef271ebd9..038be5764 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_pydantic_response.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_pydantic_response.py @@ -3,7 +3,7 @@ import unittest -from python_dataclass_responses import PythonDataclassResponses +from python_pydantic import PythonPydanticResponses from dataclasses import is_dataclass @@ -11,22 +11,22 @@ class TestSimple(unittest.TestCase): def setUp(self): pass - def test_response_is_dataclass(self): - client = PythonDataclassResponses( + def test_response_is_pydantic(self): + client = PythonPydanticResponses( api_key="YOUR_API_KEY", host="http://127.0.0.1:4011" ) response = client.test.fetch("test") self.assertIsNotNone(response.propertyA) def test_raw_response(self): - client = PythonDataclassResponses( + client = PythonPydanticResponses( api_key="YOUR_API_KEY", host="http://127.0.0.1:4011" ) response = client.test.raw.fetch("test") self.assertIsNotNone(response.body["propertyA"]) def test_raw_is_not_pydantic(self): - client = PythonDataclassResponses( + client = PythonPydanticResponses( api_key="YOUR_API_KEY", host="http://127.0.0.1:4011" ) response = client.test.raw.fetch("test") diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_simple.py b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_simple.py index 92f6de414..063c80c7a 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_simple.py +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/test/test_simple.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Python Dataclass Responses API + Python Pydantic Responses API - A simple API based on python dataclass responses. + A simple API based on python pydantic responses. The version of the OpenAPI document: 1.0.0 Contact: support@example.com @@ -14,18 +14,18 @@ import os from pprint import pprint -from python_dataclass_responses import PythonDataclassResponses +from python_pydantic import PythonPydanticResponses class TestSimple(unittest.TestCase): def setUp(self): pass def test_client(self): - pythondataclassresponses = PythonDataclassResponses( + pythonpydanticresponses = PythonPydanticResponses( api_key = 'YOUR_API_KEY', ) - self.assertIsNotNone(pythondataclassresponses) + self.assertIsNotNone(pythonpydanticresponses) def tearDown(self): pass diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap index fea983b11..5dcf43687 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap @@ -1,12 +1,12 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`python-pydantic-responses 1`] = ` -"# python-dataclass-responses-python-sdk +"# python-pydantic-responses-python-sdk -A simple API based on python dataclass responses. +A simple API based on python pydantic responses. -[![PyPI](https://img.shields.io/badge/PyPI-v1.0.0-blue)](https://pypi.org/project/python-dataclass-responses-python-sdk/1.0.0) +[![PyPI](https://img.shields.io/badge/PyPI-v1.0.0-blue)](https://pypi.org/project/python-pydantic-responses-python-sdk/1.0.0) [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/konfig-dev/konfig/tree/main/python#readme) [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](http://example.com/support) @@ -19,7 +19,7 @@ A simple API based on python dataclass responses. - [Getting Started](#getting-started) - [Async](#async) - [Reference](#reference) - * [\`pythondataclassresponses.test.fetch\`](#pythondataclassresponsestestfetch) + * [\`pythonpydanticresponses.test.fetch\`](#pythonpydanticresponsestestfetch) @@ -30,22 +30,22 @@ Python >=3.7 ## Installing \`\`\`sh -pip install python-dataclass-responses-python-sdk==1.0.0 +pip install python-pydantic-responses-python-sdk==1.0.0 \`\`\` ## Getting Started \`\`\`python from pprint import pprint -from python_dataclass_responses import PythonDataclassResponses, ApiException +from python_pydantic import PythonPydanticResponses, ApiException -pythondataclassresponses = PythonDataclassResponses( +pythonpydanticresponses = PythonPydanticResponses( api_key="YOUR_API_KEY", ) try: # Fetches a JSON value based on input parameter - fetch_response = pythondataclassresponses.test.fetch( + fetch_response = pythonpydanticresponses.test.fetch( input_parameter="inputParameter_example", ) pprint(fetch_response.body) @@ -75,9 +75,9 @@ except ApiException as e: \`\`\`python import asyncio from pprint import pprint -from python_dataclass_responses import PythonDataclassResponses, ApiException +from python_pydantic import PythonPydanticResponses, ApiException -pythondataclassresponses = PythonDataclassResponses( +pythonpydanticresponses = PythonPydanticResponses( api_key="YOUR_API_KEY", ) @@ -85,7 +85,7 @@ pythondataclassresponses = PythonDataclassResponses( async def main(): try: # Fetches a JSON value based on input parameter - fetch_response = await pythondataclassresponses.test.afetch( + fetch_response = await pythonpydanticresponses.test.afetch( input_parameter="inputParameter_example", ) pprint(fetch_response.body) @@ -113,14 +113,14 @@ asyncio.run(main()) ## Reference -### \`pythondataclassresponses.test.fetch\` +### \`pythonpydanticresponses.test.fetch\` Provide an input parameter to receive a JSON value with properties. #### 🛠️ Usage \`\`\`python -fetch_response = pythondataclassresponses.test.fetch( +fetch_response = pythonpydanticresponses.test.fetch( input_parameter="inputParameter_example", ) \`\`\` @@ -133,7 +133,7 @@ The input parameter to process. #### 🔄 Return -[TestFetchResponse](./python_dataclass_responses/type/test_fetch_response.py) +[TestFetchResponse](./python_pydantic/type/test_fetch_response.py) #### 🌐 Endpoint