.env.python.local -
# config.py from pydantic import BaseSettingsclass Settings(BaseSettings): database_url: str secret_key: str debug: bool = False
class Config: env_file = ".env.python.local" env_file_encoding = "utf-8"
settings = Settings()
This file is for local overrides. If your laptop is stolen or someone gains access to your local file system, they should only find development keys, not AWS root credentials or production database passwords. .env.python.local
Create a new file named .env.python.local in the root directory of your Python project. # config