-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename configurations to pydantic in python-pydantic-responses test
- Loading branch information
Showing
60 changed files
with
262 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
generator/konfig-integration-tests/sdks/python-pydantic-responses/konfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
generator/konfig-integration-tests/sdks/python-pydantic-responses/python/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
packages = [{include = "python_dataclass_responses"}] | ||
packages = [{include = "python_pydantic"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
|
31 changes: 0 additions & 31 deletions
31
...ration-tests/sdks/python-pydantic-responses/python/python_dataclass_responses/__init__.py
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...python-pydantic-responses/python/python_dataclass_responses/apis/paths/simple_endpoint.py
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...onfig-integration-tests/sdks/python-pydantic-responses/python/python_pydantic/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [email protected] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [email protected] | ||
|
@@ -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, | ||
|
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...n_dataclass_responses/apis/path_to_api.py → ...ython/python_pydantic/apis/path_to_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ataclass_responses/apis/paths/__init__.py → ...on/python_pydantic/apis/paths/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
7 changes: 7 additions & 0 deletions
7
...tests/sdks/python-pydantic-responses/python/python_pydantic/apis/paths/simple_endpoint.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from python_pydantic.paths.simple_endpoint.get import ApiForget | ||
|
||
|
||
class SimpleEndpoint( | ||
ApiForget, | ||
): | ||
pass |
4 changes: 2 additions & 2 deletions
4
...on_dataclass_responses/apis/tag_to_api.py → ...python/python_pydantic/apis/tag_to_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dataclass_responses/apis/tags/__init__.py → ...hon/python_pydantic/apis/tags/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...dataclass_responses/apis/tags/test_api.py → ...hon/python_pydantic/apis/tags/test_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [email protected] | ||
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( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [email protected] | ||
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [email protected] | ||
|
@@ -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) | ||
|
Oops, something went wrong.