A documentation injection tool for your classes when using Fast API
LuSyringe is a documentation injection tool for your classes when using Fast API Benefits The main benefit is being able to separate your business code (classes) from the logic of the documentation and pydantic validation. For example, a class that serves as a response for an endpoint may look like this without LuSyringe: class HealthResponse(BaseModel): ping: str = Field(…, example=”pong”) version: str = Field(…, example=”1.0.0″) And that’s not bad at first look, but the response class is tightly coupled of […]
Read more