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 }