Fixed py imports issue, I guess ?
This commit is contained in:
@@ -17,18 +17,18 @@
|
|||||||
__version__ = "1.0.0"
|
__version__ = "1.0.0"
|
||||||
|
|
||||||
# import apis into sdk package
|
# import apis into sdk package
|
||||||
from board_mate_client.api.default_api import DefaultApi
|
from openapi_client.api.default_api import DefaultApi
|
||||||
|
|
||||||
# import ApiClient
|
# import ApiClient
|
||||||
from board_mate_client.api_response import ApiResponse
|
from openapi_client.api_response import ApiResponse
|
||||||
from board_mate_client.api_client import ApiClient
|
from openapi_client.api_client import ApiClient
|
||||||
from board_mate_client.configuration import Configuration
|
from openapi_client.configuration import Configuration
|
||||||
from board_mate_client.exceptions import OpenApiException
|
from openapi_client.exceptions import OpenApiException
|
||||||
from board_mate_client.exceptions import ApiTypeError
|
from openapi_client.exceptions import ApiTypeError
|
||||||
from board_mate_client.exceptions import ApiValueError
|
from openapi_client.exceptions import ApiValueError
|
||||||
from board_mate_client.exceptions import ApiKeyError
|
from openapi_client.exceptions import ApiKeyError
|
||||||
from board_mate_client.exceptions import ApiAttributeError
|
from openapi_client.exceptions import ApiAttributeError
|
||||||
from board_mate_client.exceptions import ApiException
|
from openapi_client.exceptions import ApiException
|
||||||
|
|
||||||
# import models into sdk package
|
# import models into sdk package
|
||||||
from board_mate_client.models.game_dto import GameDto
|
from openapi_client.models.game_dto import GameDto
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
# import apis into api package
|
# import apis into api package
|
||||||
from board_mate_client.api.default_api import DefaultApi
|
from openapi_client.api.default_api import DefaultApi
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ from typing_extensions import Annotated
|
|||||||
|
|
||||||
from pydantic import StrictStr
|
from pydantic import StrictStr
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
from board_mate_client.models.game_dto import GameDto
|
from openapi_client.models.game_dto import GameDto
|
||||||
|
|
||||||
from board_mate_client.api_client import ApiClient, RequestSerialized
|
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||||
from board_mate_client.api_response import ApiResponse
|
from openapi_client.api_response import ApiResponse
|
||||||
from board_mate_client.rest import RESTResponseType
|
from openapi_client.rest import RESTResponseType
|
||||||
|
|
||||||
|
|
||||||
class DefaultApi:
|
class DefaultApi:
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ from urllib.parse import quote
|
|||||||
from typing import Tuple, Optional, List, Dict, Union
|
from typing import Tuple, Optional, List, Dict, Union
|
||||||
from pydantic import SecretStr
|
from pydantic import SecretStr
|
||||||
|
|
||||||
from board_mate_client.configuration import Configuration
|
from openapi_client.configuration import Configuration
|
||||||
from board_mate_client.api_response import ApiResponse, T as ApiResponseT
|
from openapi_client.api_response import ApiResponse, T as ApiResponseT
|
||||||
import board_mate_client.models
|
import openapi_client.models
|
||||||
from board_mate_client import rest
|
from openapi_client import rest
|
||||||
from board_mate_client.exceptions import (
|
from openapi_client.exceptions import (
|
||||||
ApiValueError,
|
ApiValueError,
|
||||||
ApiException,
|
ApiException,
|
||||||
BadRequestException,
|
BadRequestException,
|
||||||
@@ -433,7 +433,7 @@ class ApiClient:
|
|||||||
if klass in self.NATIVE_TYPES_MAPPING:
|
if klass in self.NATIVE_TYPES_MAPPING:
|
||||||
klass = self.NATIVE_TYPES_MAPPING[klass]
|
klass = self.NATIVE_TYPES_MAPPING[klass]
|
||||||
else:
|
else:
|
||||||
klass = getattr(board_mate_client.models, klass)
|
klass = getattr(openapi_client.models, klass)
|
||||||
|
|
||||||
if klass in self.PRIMITIVE_TYPES:
|
if klass in self.PRIMITIVE_TYPES:
|
||||||
return self.__deserialize_primitive(data, klass)
|
return self.__deserialize_primitive(data, klass)
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class Configuration:
|
|||||||
self.logger = {}
|
self.logger = {}
|
||||||
"""Logging Settings
|
"""Logging Settings
|
||||||
"""
|
"""
|
||||||
self.logger["package_logger"] = logging.getLogger("board_mate_client")
|
self.logger["package_logger"] = logging.getLogger("openapi_client")
|
||||||
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
||||||
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
||||||
"""Log format
|
"""Log format
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
|
|
||||||
|
|
||||||
# import models into model package
|
# import models into model package
|
||||||
from board_mate_client.models.game_dto import GameDto
|
from openapi_client.models.game_dto import GameDto
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import ssl
|
|||||||
|
|
||||||
import urllib3
|
import urllib3
|
||||||
|
|
||||||
from board_mate_client.exceptions import ApiException, ApiValueError
|
from openapi_client.exceptions import ApiException, ApiValueError
|
||||||
|
|
||||||
SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
|
SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
|
||||||
RESTResponseType = urllib3.HTTPResponse
|
RESTResponseType = urllib3.HTTPResponse
|
||||||
|
|||||||
@@ -45,5 +45,5 @@ setup(
|
|||||||
long_description="""\
|
long_description="""\
|
||||||
boardmate_api API
|
boardmate_api API
|
||||||
""", # noqa: E501
|
""", # noqa: E501
|
||||||
package_data={"board_mate_client": ["py.typed"]},
|
package_data={"openapi_client": ["py.typed"]},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user