flowgraph / app /config.py
kbsss's picture
Upload folder using huggingface_hub
7b2787b verified
raw
history blame contribute delete
709 Bytes
"""
Configuration settings for the Workflow Engine.
"""
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
"""Application settings with environment variable support."""
# Application
APP_NAME: str = "FlowGraph"
APP_VERSION: str = "1.0.0"
DEBUG: bool = True
# Server
HOST: str = "0.0.0.0"
PORT: int = 8000
# Workflow Engine
MAX_ITERATIONS: int = 100 # Default max loop iterations
EXECUTION_TIMEOUT: int = 300 # Seconds
# Logging
LOG_LEVEL: str = "INFO"
class Config:
env_file = ".env"
case_sensitive = True
# Global settings instance
settings = Settings()