File size: 396 Bytes
3998131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from pydantic_settings import BaseSettings , SettingsConfigDict 
from functools import lru_cache

class Settings(BaseSettings):

    #MongoDB 
    mongodb_url: str 
    database_name: str
    secret_key: str 
    access_token_expire_minutes: int 
    algorithm: str
    frontend_url: str

    ## To get all the values 
    model_config = SettingsConfigDict(env_file=".env")

settings = Settings()