diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..293ecce --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +API_URI= +API_KEY= +API_TEAM= \ No newline at end of file diff --git a/app.py b/app.py index 5d20a01..a21b187 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,5 @@ +import os + from flask import Flask app = Flask(__name__) diff --git a/config.py b/config.py index fe9c84b..35ab4f7 100644 --- a/config.py +++ b/config.py @@ -9,12 +9,11 @@ class Config: with environment variables when available. """ - def __init__(self, config_file_path: str = "config.yaml"): + def __init__(self): """ Initialize the configuration manager. Args: config_file_path: Path to the YAML configuration file. Defaults to "config.yaml". """ - # Load environment variables from .env file if it exists load_dotenv() \ No newline at end of file diff --git a/poc_requirements.txt b/poc_requirements.txt index b9670b4..1f681d8 100644 --- a/poc_requirements.txt +++ b/poc_requirements.txt @@ -21,4 +21,5 @@ typing-inspection==0.4.0 typing_extensions==4.13.2 urllib3==2.4.0 Werkzeug==3.1.3 -Flask==3.1.0 \ No newline at end of file +Flask==3.1.0 +python-dotenv=1.1.0 \ No newline at end of file