Please shut the hell up
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 openapi_client.api.default_api import DefaultApi
|
from board_mate_client.api.default_api import DefaultApi
|
||||||
|
|
||||||
# import ApiClient
|
# import ApiClient
|
||||||
from openapi_client.api_response import ApiResponse
|
from board_mate_client.api_response import ApiResponse
|
||||||
from openapi_client.api_client import ApiClient
|
from board_mate_client.api_client import ApiClient
|
||||||
from openapi_client.configuration import Configuration
|
from board_mate_client.configuration import Configuration
|
||||||
from openapi_client.exceptions import OpenApiException
|
from board_mate_client.exceptions import OpenApiException
|
||||||
from openapi_client.exceptions import ApiTypeError
|
from board_mate_client.exceptions import ApiTypeError
|
||||||
from openapi_client.exceptions import ApiValueError
|
from board_mate_client.exceptions import ApiValueError
|
||||||
from openapi_client.exceptions import ApiKeyError
|
from board_mate_client.exceptions import ApiKeyError
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from board_mate_client.exceptions import ApiAttributeError
|
||||||
from openapi_client.exceptions import ApiException
|
from board_mate_client.exceptions import ApiException
|
||||||
|
|
||||||
# import models into sdk package
|
# import models into sdk package
|
||||||
from openapi_client.models.game_dto import GameDto
|
from board_mate_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 openapi_client.api.default_api import DefaultApi
|
from board_mate_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 openapi_client.models.game_dto import GameDto
|
from board_mate_client.models.game_dto import GameDto
|
||||||
|
|
||||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
from board_mate_client.api_client import ApiClient, RequestSerialized
|
||||||
from openapi_client.api_response import ApiResponse
|
from board_mate_client.api_response import ApiResponse
|
||||||
from openapi_client.rest import RESTResponseType
|
from board_mate_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 openapi_client.configuration import Configuration
|
from board_mate_client.configuration import Configuration
|
||||||
from openapi_client.api_response import ApiResponse, T as ApiResponseT
|
from board_mate_client.api_response import ApiResponse, T as ApiResponseT
|
||||||
import openapi_client.models
|
import board_mate_client.models
|
||||||
from openapi_client import rest
|
from board_mate_client import rest
|
||||||
from openapi_client.exceptions import (
|
from board_mate_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(openapi_client.models, klass)
|
klass = getattr(board_mate_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("openapi_client")
|
self.logger["package_logger"] = logging.getLogger("board_mate_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 openapi_client.models.game_dto import GameDto
|
from board_mate_client.models.game_dto import GameDto
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import ssl
|
|||||||
|
|
||||||
import urllib3
|
import urllib3
|
||||||
|
|
||||||
from openapi_client.exceptions import ApiException, ApiValueError
|
from board_mate_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
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
boardmate_api API
|
|
||||||
|
|
||||||
boardmate_api API
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 1.0.0
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
from setuptools import setup, find_packages # noqa: H301
|
|
||||||
|
|
||||||
# To install the library, run the following
|
|
||||||
#
|
|
||||||
# python setup.py install
|
|
||||||
#
|
|
||||||
# prerequisite: setuptools
|
|
||||||
# http://pypi.python.org/pypi/setuptools
|
|
||||||
NAME = "openapi-client"
|
|
||||||
VERSION = "1.0.0"
|
|
||||||
PYTHON_REQUIRES = ">=3.7"
|
|
||||||
REQUIRES = [
|
|
||||||
"urllib3 >= 1.25.3, < 2.1.0",
|
|
||||||
"python-dateutil",
|
|
||||||
"pydantic >= 2",
|
|
||||||
"typing-extensions >= 4.7.1",
|
|
||||||
]
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name=NAME,
|
|
||||||
version=VERSION,
|
|
||||||
description="boardmate_api API",
|
|
||||||
author="OpenAPI Generator community",
|
|
||||||
author_email="team@openapitools.org",
|
|
||||||
url="",
|
|
||||||
keywords=["OpenAPI", "OpenAPI-Generator", "boardmate_api API"],
|
|
||||||
install_requires=REQUIRES,
|
|
||||||
packages=find_packages(exclude=["test", "tests"]),
|
|
||||||
include_package_data=True,
|
|
||||||
long_description_content_type='text/markdown',
|
|
||||||
long_description="""\
|
|
||||||
boardmate_api API
|
|
||||||
""", # noqa: E501
|
|
||||||
package_data={"openapi_client": ["py.typed"]},
|
|
||||||
)
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
from board_mate_client import ApiClient, Configuration
|
|
||||||
from board_mate_client.api.default_api import DefaultApi
|
|
||||||
from board_mate_client.models.game_dto import GameDto
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
config = Configuration(
|
|
||||||
host="https://192.168.15.160/"
|
|
||||||
)
|
|
||||||
|
|
||||||
with ApiClient(config) as client:
|
|
||||||
api = DefaultApi(client)
|
|
||||||
|
|
||||||
response = api.retrieve_games()
|
|
||||||
print(response)
|
|
||||||
14
rpi/main.py
Normal file
14
rpi/main.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
from board_mate_client import ApiClient, Configuration
|
||||||
|
from board_mate_client.api.default_api import DefaultApi
|
||||||
|
from board_mate_client.models.game_dto import GameDto
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
config = Configuration(
|
||||||
|
host="https://192.168.15.160/"
|
||||||
|
)
|
||||||
|
|
||||||
|
with ApiClient(config) as client:
|
||||||
|
api = DefaultApi(client)
|
||||||
|
|
||||||
|
response = api.retrieve_games()
|
||||||
|
print(response)
|
||||||
Reference in New Issue
Block a user