Skip to content

Instantly share code, notes, and snippets.

rickywong0221 /
Created April 11, 2024 13:27
Ricebox FastAPI
import re
from typing import Annotated, List, Optional, Dict, Any
from annotated_types import Interval
from sqlmodel import Field, Session, SQLModel, create_engine, select
from pathlib import Path
from fastapi import FastAPI, HTTPException, Depends
from models import Dish, Ricebox, DishAttributes, RiceboxV2, \
GetDishV2Response, AddDishV2Response, RemoveDishV2Response, GetRiceboxV2Request