diff --git a/api/.vscode/launch.json b/api/.vscode/launch.json index f303fcf..8a57e6e 100644 --- a/api/.vscode/launch.json +++ b/api/.vscode/launch.json @@ -8,7 +8,7 @@ "name": "Main Module", "type": "python", "request": "launch", - "module": "ovkiosk.main", + "module": "ovdashboard_api.main", "justMyCode": true } ] diff --git a/api/ovkiosk/__init__.py b/api/ovdashboard_api/__init__.py similarity index 100% rename from api/ovkiosk/__init__.py rename to api/ovdashboard_api/__init__.py diff --git a/api/ovkiosk/config.py b/api/ovdashboard_api/config.py similarity index 88% rename from api/ovkiosk/config.py rename to api/ovdashboard_api/config.py index 8486996..554e42c 100644 --- a/api/ovkiosk/config.py +++ b/api/ovdashboard_api/config.py @@ -24,12 +24,12 @@ class Settings(BaseSettings): redoc_url: Optional[str] = "/redoc" caldav_base_url: str = "/remote.php/dav" - webdav_base_url: str = "/remote.php/webdav/ovkiosk" + webdav_base_url: str = "/remote.php/webdav/ovdashboard" dav_protocol: str = "https" dav_host: str = "example.com" - dav_username: str = "ovkiosk" + dav_username: str = "ovdashboard" dav_password: str = "changeme" - dav_path: str = "ovkiosk" + dav_path: str = "ovdashboard" ticker_separator: str = " +++ " diff --git a/api/ovkiosk/dav_file.py b/api/ovdashboard_api/dav_file.py similarity index 100% rename from api/ovkiosk/dav_file.py rename to api/ovdashboard_api/dav_file.py diff --git a/api/ovkiosk/main.py b/api/ovdashboard_api/main.py similarity index 80% rename from api/ovkiosk/main.py rename to api/ovdashboard_api/main.py index e79d2ef..66415ad 100644 --- a/api/ovkiosk/main.py +++ b/api/ovdashboard_api/main.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ -Main executable of `ovkiosk`. +Main executable of `ovdashboard_api`. Creates the main `FastAPI` app. @@ -15,8 +15,8 @@ from .config import SETTINGS from .routers import main_router app = FastAPI( - title="OVKiosk API", - description="This API enables the `OVKiosk` service.", + title="OVDashboard API", + description="This API enables the `OVDashboard` service.", contact={ "name": "Jörn-Michael Miehe", "email": "jmm@yavook.de", @@ -31,7 +31,7 @@ app.include_router(main_router) def main() -> None: uvicorn.run( - app="ovkiosk.main:app", + app="ovdashboard_api.main:app", host="0.0.0.0", port=8000, reload=True, diff --git a/api/ovkiosk/routers/__init__.py b/api/ovdashboard_api/routers/__init__.py similarity index 100% rename from api/ovkiosk/routers/__init__.py rename to api/ovdashboard_api/routers/__init__.py diff --git a/api/ovkiosk/routers/image.py b/api/ovdashboard_api/routers/image.py similarity index 100% rename from api/ovkiosk/routers/image.py rename to api/ovdashboard_api/routers/image.py diff --git a/api/ovkiosk/routers/text.py b/api/ovdashboard_api/routers/text.py similarity index 100% rename from api/ovkiosk/routers/text.py rename to api/ovdashboard_api/routers/text.py diff --git a/api/pyproject.toml b/api/pyproject.toml index 61a3f6c..12f4b4b 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -1,19 +1,19 @@ [tool.poetry] authors = ["Jörn-Michael Miehe "] description = "" -name = "ovkiosk" +name = "ovdashboard-api" version = "0.1.0" [tool.poetry.dependencies] +APScheduler = "^3.9.1" +Markdown = "^3.4.1" +Pillow = "^9.2.0" +async-lru = "^1.0.3" fastapi = "^0.81.0" pydantic = {extras = ["dotenv"], version = "^1.9.2"} python = "^3.9" uvicorn = "^0.18.3" webdavclient3 = "3.14.5" -Markdown = "^3.4.1" -APScheduler = "^3.9.1" -Pillow = "^9.2.0" -async-lru = "^1.0.3" [tool.poetry.dev-dependencies] # pytest = "^5.2"