Skip to content

Instantly share code, notes, and snippets.

@dineshkumarkb
Created July 28, 2022 04:32
Show Gist options
  • Select an option

  • Save dineshkumarkb/ac4c75293e18a866dc201101d5ceeea3 to your computer and use it in GitHub Desktop.

Select an option

Save dineshkumarkb/ac4c75293e18a866dc201101d5ceeea3 to your computer and use it in GitHub Desktop.
from pydantic import BaseSettings
from dotenv import load_dotenv
load_dotenv()
class Settings(BaseSettings):
DB_NAME: str = 'local'
DB_USER: str = 'localuser'
DB_HOST: str = "mysql.localhost.com"
DB_PASSWORD: str
API_ENDPOINT: str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment