1
0
forked from MDL29/JacoBot

Create instructions with Pydantic

MDL29/JacoBot#17
This commit is contained in:
HS-157 2024-04-24 11:03:09 +02:00
parent df30c40deb
commit 0708cfb319
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from datetime import datetime
from typing import Literal
from pydantic import BaseModel
class Instruction(BaseModel):
move: Literal["FORWARD", "LEFT", "RIGHT"]
timestamp: datetime
source: str

View File

@ -9,6 +9,7 @@ readme = "README.md"
python = "^3.11"
arcade = "^2.6.17"
redis = "^5.0.3"
pydantic = "^2.7.1"
[build-system]