Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Clinical-Genomics_statina /statina /models /server /new_user.py
| from typing import List | |
| from pydantic import BaseModel, EmailStr, validator | |
| from statina.exeptions import MissMatchingPasswordError | |
| from statina.models.database import User | |
| class NewUser(BaseModel): | |
| email: EmailStr | |
| username: str | |
| password_repeated: str | |
| password: str | |
| def validate_password(cls, v, values: dict) -> str: | |
| if v != values["password_repeated"]: | |
| raise MissMatchingPasswordError | |
| return v | |
| class PaginatedUserResponse(BaseModel): | |
| document_count: int | |
| documents: List[User] | |
Xet Storage Details
- Size:
- 581 Bytes
- Xet hash:
- cae48e8186ddee1f8cef0b3541e4217063bfe7194ddac41736fee31fec577ed2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.