You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
242 B
11 lines
242 B
from pydantic_settings import BaseSettings
|
|
from pydantic import BaseModel
|
|
|
|
class RunSettings(BaseModel):
|
|
host: str = "0.0.0.0"
|
|
port: int = 8000
|
|
|
|
class Settings(BaseSettings):
|
|
run: RunSettings = RunSettings()
|
|
|
|
settings = Settings()
|