FastAPI-Project / app /config.py
abdullah090809's picture
initial commit
55fd541
Raw
History Blame Contribute Delete
343 Bytes
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
database_hostname: str
database_port: str
database_password: str
database_name: str
database_username: str
secret_key: str
algorithm: str
access_token_expire_minutes: int
class Config:
env_file = ".env"
setting = Settings()