FastAPI-Project / app /config.py
abdullah090809's picture
Minor Changes
d9d1b31
Raw History Blame Contribute Delete
371 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
test_database_name: str
class Config:
env_file = ".env"
setting = Settings()