From 93394769b2af59ee3028d298a6347ea085c2901b Mon Sep 17 00:00:00 2001 From: June Date: Thu, 30 Apr 2026 18:40:17 +0200 Subject: [PATCH] add initial Python API setup using `uv init` and README with short desc. Add README with short description of the desired state. --- README.md | 11 +++++++++++ api/.python-version | 1 + api/main.py | 6 ++++++ api/pyproject.toml | 6 ++++++ api/uv.lock | 8 ++++++++ 5 files changed, 32 insertions(+) create mode 100644 README.md create mode 100644 api/.python-version create mode 100644 api/main.py create mode 100644 api/pyproject.toml create mode 100644 api/uv.lock diff --git a/README.md b/README.md new file mode 100644 index 0000000..42befdc --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Dooris + +Dooris setup using HomeMatic with Web UI, API and OIDC integration. +Based on prior work of [hmdooris](https://git.hamburg.ccc.de/CCCHH/hmdooris). + +Project structure: + +``` +├── api # Python application interacting with HomeMatic and providing the API. +└── app # Web UI +``` diff --git a/api/.python-version b/api/.python-version new file mode 100644 index 0000000..6324d40 --- /dev/null +++ b/api/.python-version @@ -0,0 +1 @@ +3.14 diff --git a/api/main.py b/api/main.py new file mode 100644 index 0000000..ce7c57d --- /dev/null +++ b/api/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from api!") + + +if __name__ == "__main__": + main() diff --git a/api/pyproject.toml b/api/pyproject.toml new file mode 100644 index 0000000..d57413e --- /dev/null +++ b/api/pyproject.toml @@ -0,0 +1,6 @@ +[project] +name = "dooris_api" +version = "0.1.0" +description = "API for Dooris setup using HomeMatic." +requires-python = ">=3.14" +dependencies = [] diff --git a/api/uv.lock b/api/uv.lock new file mode 100644 index 0000000..400ee46 --- /dev/null +++ b/api/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 3 +requires-python = ">=3.14" + +[[package]] +name = "dooris-api" +version = "0.1.0" +source = { virtual = "." }