diff --git a/generator_config.yaml b/generator_config.yaml index ce48345..bd97285 100644 --- a/generator_config.yaml +++ b/generator_config.yaml @@ -3,7 +3,7 @@ additionalProperties: packageName: "feiertage" infoName: "BundesAPI" infoEmail: "kontakt@bund.dev" - packageVersion: 1.0.1 + packageVersion: 1.0.2 packageUrl: "https://github.com/bundesAPI/feiertage-api" namespace: "deutschland" docLanguage: "de" diff --git a/python-client/README.md b/python-client/README.md index 26eb5c8..447c280 100644 --- a/python-client/README.md +++ b/python-client/README.md @@ -4,7 +4,7 @@ Deutsche Feiertage per JSON-Webservice (API) This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 1.0.1 +- Package version: 1.0.2 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://bund.dev](https://bund.dev) diff --git a/python-client/deutschland/feiertage/__init__.py b/python-client/deutschland/feiertage/__init__.py index 9811bd9..f44b803 100644 --- a/python-client/deutschland/feiertage/__init__.py +++ b/python-client/deutschland/feiertage/__init__.py @@ -11,7 +11,7 @@ """ -__version__ = "1.0.1" +__version__ = "1.0.2" # import ApiClient from deutschland.feiertage.api_client import ApiClient diff --git a/python-client/deutschland/feiertage/api/default_api.py b/python-client/deutschland/feiertage/api/default_api.py index c7e1885..47008b4 100644 --- a/python-client/deutschland/feiertage/api/default_api.py +++ b/python-client/deutschland/feiertage/api/default_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/python-client/deutschland/feiertage/api_client.py b/python-client/deutschland/feiertage/api_client.py index f76ea48..5b992f2 100644 --- a/python-client/deutschland/feiertage/api_client.py +++ b/python-client/deutschland/feiertage/api_client.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import atexit import io import json @@ -82,7 +81,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.0.1/python" + self.user_agent = "OpenAPI-Generator/1.0.2/python" def __enter__(self): return self @@ -147,6 +146,7 @@ def __call_api( typing.List[typing.Dict[str, typing.Any]] ] = None, ): + config = self.configuration # header parameters @@ -912,6 +912,7 @@ def __call__(self, *args, **kwargs): return self.callable(self, *args, **kwargs) def call_with_http_info(self, **kwargs): + try: index = ( self.api_client.configuration.server_operation_index.get( diff --git a/python-client/deutschland/feiertage/configuration.py b/python-client/deutschland/feiertage/configuration.py index 1bbe4f8..61c2eb3 100644 --- a/python-client/deutschland/feiertage/configuration.py +++ b/python-client/deutschland/feiertage/configuration.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import copy import logging import multiprocessing @@ -395,7 +394,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.0.0\n" - "SDK Package Version: 1.0.1".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 1.0.2".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/python-client/deutschland/feiertage/exceptions.py b/python-client/deutschland/feiertage/exceptions.py index 695d18e..8e0fd9f 100644 --- a/python-client/deutschland/feiertage/exceptions.py +++ b/python-client/deutschland/feiertage/exceptions.py @@ -96,6 +96,7 @@ def __init__(self, msg, path_to_item=None): class ApiException(OpenApiException): + def __init__(self, status=None, reason=None, http_resp=None): if http_resp: self.status = http_resp.status @@ -123,21 +124,25 @@ def __str__(self): class NotFoundException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(NotFoundException, self).__init__(status, reason, http_resp) class UnauthorizedException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(UnauthorizedException, self).__init__(status, reason, http_resp) class ForbiddenException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(ForbiddenException, self).__init__(status, reason, http_resp) class ServiceException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(ServiceException, self).__init__(status, reason, http_resp) diff --git a/python-client/deutschland/feiertage/model/feiertag.py b/python-client/deutschland/feiertage/model/feiertag.py index ced6f6b..68ee5c6 100644 --- a/python-client/deutschland/feiertage/model/feiertag.py +++ b/python-client/deutschland/feiertage/model/feiertag.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/python-client/deutschland/feiertage/model_utils.py b/python-client/deutschland/feiertage/model_utils.py index aa03605..e128bbf 100644 --- a/python-client/deutschland/feiertage/model_utils.py +++ b/python-client/deutschland/feiertage/model_utils.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import inspect import io import os @@ -612,9 +611,9 @@ def __setitem__(self, name, value): setattr(model_instance, name, value) if name not in self._var_name_to_model_instances: # we assigned an additional property - self.__dict__["_var_name_to_model_instances"][ - name - ] = self._composed_instances + [self] + self.__dict__["_var_name_to_model_instances"][name] = ( + self._composed_instances + [self] + ) return None __unset_attribute_value__ = object() @@ -1823,6 +1822,7 @@ def get_allof_instances(self, model_args, constant_args): """ composed_instances = [] for allof_class in self._composed_schemas["allOf"]: + try: if constant_args.get("_spec_property_naming"): allof_instance = allof_class._from_openapi_data( diff --git a/python-client/deutschland/feiertage/rest.py b/python-client/deutschland/feiertage/rest.py index a0fac18..c1aa04b 100644 --- a/python-client/deutschland/feiertage/rest.py +++ b/python-client/deutschland/feiertage/rest.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import io import ipaddress import json @@ -32,6 +31,7 @@ class RESTResponse(io.IOBase): + def __init__(self, resp): self.urllib3_response = resp self.status = resp.status @@ -48,6 +48,7 @@ def getheader(self, name, default=None): class RESTClientObject(object): + def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -63,9 +64,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args[ - "assert_hostname" - ] = configuration.assert_hostname # noqa: E501 + addition_pool_args["assert_hostname"] = ( + configuration.assert_hostname + ) # noqa: E501 if configuration.retries is not None: addition_pool_args["retries"] = configuration.retries diff --git a/python-client/pyproject.toml b/python-client/pyproject.toml index d5ac949..d40bc0c 100644 --- a/python-client/pyproject.toml +++ b/python-client/pyproject.toml @@ -1,7 +1,7 @@ [tool] [tool.poetry] name = "de-feiertage" -version = "1.0.1" +version = "1.0.2" description = "Feiertage API" keywords = ["OpenAPI", "OpenAPI-Generator", "feiertage", "App", "API"] homepage = "https://github.com/bundesAPI/feiertage-api" diff --git a/python-client/sphinx-docs/conf.py b/python-client/sphinx-docs/conf.py index 94539b7..75658a7 100644 --- a/python-client/sphinx-docs/conf.py +++ b/python-client/sphinx-docs/conf.py @@ -11,11 +11,11 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = "feiertage-api" -copyright = "2023, bund.dev" +copyright = "2024, bund.dev" author = "bund.dev" -version = "1.0.1" -release = "1.0.1" +version = "1.0.2" +release = "1.0.2" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/python-client/test/test_default_api.py b/python-client/test/test_default_api.py index ec60450..c3a860f 100644 --- a/python-client/test/test_default_api.py +++ b/python-client/test/test_default_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest from deutschland.feiertage.api.default_api import DefaultApi # noqa: E501 diff --git a/python-client/test/test_feiertag.py b/python-client/test/test_feiertag.py index e89717a..979deec 100644 --- a/python-client/test/test_feiertag.py +++ b/python-client/test/test_feiertag.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest