Skip to content

Instantly share code, notes, and snippets.

@ShahriyarR
Created December 6, 2022 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShahriyarR/3202b1799c12cd26c686634364704f9f to your computer and use it in GitHub Desktop.
Save ShahriyarR/3202b1799c12cd26c686634364704f9f to your computer and use it in GitHub Desktop.
from pydantic import BaseModel
class DBCredentialsModel(BaseModel):
comment: str
password: Password
uri: DBUri
port: DBPort
host: DBHost
class Config:
arbitrary_types_allowed = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment