Spaces:
Running on T4
Running on T4
Download backend/app/modules/drills/schemas.py from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/drills/schemas.py
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/app/modules/drills/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/drills/schemas.py
559 Bytes
| from datetime import date, datetime | |
| from uuid import UUID | |
| from pydantic import Field | |
| from app.common.schemas import RequestModel, ResponseModel | |
| class DrillLogIn(RequestModel): | |
| session_id: UUID | None = None | |
| drill_id: str = Field(min_length=1, max_length=16) | |
| reps: int = Field(ge=1, le=8) | |
| day: date | |
| class DrillLogOut(ResponseModel): | |
| id: UUID | |
| session_id: UUID | None | |
| drill_id: str | |
| assignment_id: UUID | None | |
| reps: int | |
| day: date | |
| created_at: datetime | |
| class DrillLogEnvelope(ResponseModel): | |
| log: DrillLogOut | |