Buckets:

download
raw
650 Bytes
# app/schemas/base_response.py
from datetime import datetime
from typing import Optional, TypeVar, Union
from pydantic import BaseModel, ConfigDict
try: # pragma: no cover - dependencia opcional
from beanie import PydanticObjectId # type: ignore
except ImportError: # pragma: no cover
PydanticObjectId = str # type: ignore[assignment, misc]
# Define un tipo genérico
T = TypeVar("T")
BaseSchemaId = Union[str, "PydanticObjectId"] # type: ignore[name-defined]
class BaseSchema(BaseModel):
id: BaseSchemaId
created_at: datetime
updated_at: Optional[datetime] = None
model_config = ConfigDict(from_attributes=True)

Xet Storage Details

Size:
650 Bytes
·
Xet hash:
a79611bfcb8a0a6f10ad8f63d9754cffc5dda307416284fefc9961ac85f3de64

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.