13 lines
251 B
Python
13 lines
251 B
Python
from pydantic import BaseModel
|
|
from typing import List, Dict, Any
|
|
|
|
class Cell(BaseModel):
|
|
value: str
|
|
format: Dict[str, Any]
|
|
|
|
class Sheet(BaseModel):
|
|
name: str
|
|
cells: List[List[Cell]]
|
|
|
|
class ExcelFile(BaseModel):
|
|
sheets: List[Sheet] |