@kwilliamm posted:@cdswindell great idea to separate the API implementation from the main package.
I recommend using the FastAPI framework. And also using pydantic to validate requests.Separately you might consider using UV as the package manager and as the recommended installation method for users of pytrain.
Using uv can help make sure python version and other dependencies are consistent across installs and upgrades over time.
Thanks. I was reading about FastAPI last night and was planning to give it a try this morning. I liked that it helps generate the API docs.
-- Dave