Buckets:

download
raw
756 Bytes
from datetime import datetime
from typing import Optional
from pydantic import BaseModel, EmailStr, Field
class UserSchema(BaseModel):
id: int
name: str
email: EmailStr
age: Optional[int] = None
is_active: bool
created_at: datetime
updated_at: datetime
class Config:
from_attributes = True
class UserCreateSchema(BaseModel):
name: str = Field(..., min_length=1, max_length=100)
email: EmailStr
age: Optional[int] = Field(None, ge=0, le=150)
is_active: bool = True
class UserUpdateSchema(BaseModel):
name: Optional[str] = Field(None, min_length=1, max_length=100)
email: Optional[EmailStr] = None
age: Optional[int] = Field(None, ge=0, le=150)
is_active: Optional[bool] = None

Xet Storage Details

Size:
756 Bytes
·
Xet hash:
42f37ee2329f023616380fc466f6f755ff37371dc30381eaa301e1ff372ce0fc

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