From 97795214b1d6b0d6e1e41bdd783e2336c7be5b6f Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 29 Sep 2026 06:46:33 +0200 Subject: [PATCH] first skeleton --- pyproject.toml | 4 +++- src/photools3/llm_session.py | 13 +++++++++++++ src/photools3/models.py | 8 ++++++++ src/photools3/photo.py | 18 ++++++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/photools3/llm_session.py create mode 100644 src/photools3/models.py create mode 100644 src/photools3/photo.py diff --git a/pyproject.toml b/pyproject.toml index 5e928ac..2af8f84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,9 @@ authors = [ { name = "Mathias", email = "mathias2784@web.de" } ] requires-python = ">=3.14" -dependencies = [] +dependencies = [ + "pydantic>=2.13.5", +] [project.scripts] photools3 = "photools3:main" diff --git a/src/photools3/llm_session.py b/src/photools3/llm_session.py new file mode 100644 index 0000000..9f88844 --- /dev/null +++ b/src/photools3/llm_session.py @@ -0,0 +1,13 @@ + +from photools3.models import LlmRequest, LlmResponse + + +class LlmSession: + def __init__(self): + ... + + def prompt(self, request: LlmRequest) -> LlmResponse: + ... + + def close(self): + ... diff --git a/src/photools3/models.py b/src/photools3/models.py new file mode 100644 index 0000000..3c38652 --- /dev/null +++ b/src/photools3/models.py @@ -0,0 +1,8 @@ +from pydantic import BaseModel + + +class LlmRequest(BaseModel): + ... + +class LlmResponse(BaseModel): + ... diff --git a/src/photools3/photo.py b/src/photools3/photo.py new file mode 100644 index 0000000..3c618ef --- /dev/null +++ b/src/photools3/photo.py @@ -0,0 +1,18 @@ + +from pathlib import Path + + +class Photo: + + def __init__(self): + ... + + @classmethod + def from_file(cls, path: Path) -> Photo: + # TODO + return cls() + + def resize(self) -> Photo: + # TODO + return self +