Initial commit: Markov Economics Simulation App

This commit is contained in:
2025-08-24 19:12:50 +02:00
commit 26c82959a2
28 changed files with 3646 additions and 0 deletions

38
config.py Normal file
View File

@@ -0,0 +1,38 @@
import os
from datetime import timedelta
class Config:
"""Base configuration class"""
SECRET_KEY = os.environ.get('SECRET_KEY', 'dev-key-for-markov-economics')
MAX_SIMULATION_AGENTS = int(os.environ.get('MAX_AGENTS', 10000))
SIMULATION_TIMEOUT = int(os.environ.get('TIMEOUT', 300))
# Parameter constraints
MIN_CAPITAL_RATE = 0.0
MAX_CAPITAL_RATE = 0.25
MIN_GROWTH_RATE = 0.0
MAX_GROWTH_RATE = 0.20
MIN_AGENTS = 10
MAX_AGENTS = 10000
MIN_ITERATIONS = 100
MAX_ITERATIONS = 100000
class DevelopmentConfig(Config):
"""Development configuration"""
DEBUG = True
DEVELOPMENT = True
class ProductionConfig(Config):
"""Production configuration"""
DEBUG = False
DEVELOPMENT = False
config = {
'development': DevelopmentConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}