diff --git a/wetterdienst/ui/restapi.py b/wetterdienst/ui/restapi.py index 3eed68543..2add39a95 100644 --- a/wetterdienst/ui/restapi.py +++ b/wetterdienst/ui/restapi.py @@ -9,7 +9,7 @@ from fastapi import FastAPI, HTTPException, Query from fastapi.responses import HTMLResponse, PlainTextResponse, Response -from wetterdienst import Provider, Wetterdienst, __appname__, __version__ +from wetterdienst import Info, Provider, Wetterdienst, __appname__, __version__ from wetterdienst.core.timeseries.request import TimeseriesRequest from wetterdienst.core.timeseries.result import ( _InterpolatedValuesDict, @@ -36,9 +36,6 @@ log = logging.getLogger(__name__) -PRODUCER_NAME = "Wetterdienst" -PRODUCER_LINK = "https://github.com/earthobservations/wetterdienst" - CommaSeparator = StringListParamType(",") @@ -54,6 +51,7 @@ def index(): f"
  • {shortname} ({name}, {country}) - {copyright_}
  • " ) sources = "\n".join(sources) + info = Info() return f""" @@ -139,8 +137,11 @@ def index():
  • DWD Climate Summary
  • Producer

    -
    - {PRODUCER_NAME} - {PRODUCER_LINK} +
    +
  • Version: {info.__version__}
  • +
  • Authors: {', '.join(f"""{author.name} ({author.email})""" for author in info.authors)}
  • +
  • Documentation: {info.documentation}
  • +
  • Repository: {info.repository}
  • Providers