balance-application/util/config.py

13 lines
249 B
Python
Raw Normal View History

2024-09-10 04:14:09 +00:00
import os
from dotenv import load_dotenv
load_dotenv()
conn_param = "host=%s port=%s dbname=%s user=%s password=%s" % (
os.getenv("DB_URL"),
os.getenv("DB_PORT"),
os.getenv("DB_DATABASE"),
os.getenv("DB_USERNAME"),
os.getenv("DB_PASSWORD")
)