Add config and change bear to baer

This commit is contained in:
dylan
2025-04-12 01:37:45 +02:00
parent 2a2aea84ad
commit e9369aa230
3 changed files with 106 additions and 0 deletions

20
config.py Normal file
View File

@ -0,0 +1,20 @@
from flask.cli import load_dotenv
class Config:
"""
Configuration manager for the Julius Baer API client.
Reads configuration from a YAML file and overrides values
with environment variables when available.
"""
def __init__(self, config_file_path: str = "config.yaml"):
"""
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()