excel_translator/models/excel_models.py
2025-04-06 21:39:00 +02:00

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]