-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
29 lines (21 loc) · 843 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (c) 2023 Oackland Toro
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
import os
from dotenv import load_dotenv
load_dotenv()
class Config:
SECRET_KEY = os.getenv("SECRET_KEY")
FLASK_APP = os.getenv("FLASK_APP")
FLASK_DEBUG = os.getenv("FLASK_DEBUG")
FLASK_ENV = os.getenv("FLASK_ENV")
SQLALCHEMY_DATABASE_URI = (
f"postgresql://{os.getenv('DB_USER')}:{os.getenv('DB_PASSWORD')}@"
f"{os.getenv('DB_HOST')}:{os.getenv('DB_PORT')}/{os.getenv('DB_NAME')}"
)
SQLALCHEMY_TRACK_MODIFICATIONS = False
API_KEY = os.getenv("API_KEY")
API_SECRET = os.getenv("API_SECRET")
# # pokemon key
pokemontcgsdk_api_key = os.getenv("POKEMONTCG_IO_API_KEY")