src.config.settings
Configuration settings for the Wordle solver application.
Functions
Get the current environment setting from the WORDLE_ENVIRONMENT variable. |
|
Get the global application settings instance. |
|
|
Initialize configuration from file or use defaults. |
Reset the global settings instance (useful for testing). |
Classes
|
Main application settings. |
|
Settings for the Wordle game. |
|
Settings for logging configuration. |
|
Settings for the solver strategies. |
- class src.config.settings.GameSettings(max_attempts=6, word_length=5)[source]
Settings for the Wordle game.
- __init__(max_attempts=6, word_length=5)
- class src.config.settings.LoggingSettings(level='INFO', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', file_handler=True, console_handler=True, backup_count=30)[source]
Settings for logging configuration.
- __init__(level='INFO', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', file_handler=True, console_handler=True, backup_count=30)
- class src.config.settings.SolverSettings(default_strategy='entropy', suggestions_count=10, enable_memory_optimization=True, enable_performance_profiling=False)[source]
Settings for the solver strategies.
- __init__(default_strategy='entropy', suggestions_count=10, enable_memory_optimization=True, enable_performance_profiling=False)
- class src.config.settings.AppSettings(game=None, logging=None, solver=None)[source]
Main application settings.
-
game:
GameSettings
-
logging:
LoggingSettings
-
solver:
SolverSettings
-
game:
- src.config.settings.get_environment()[source]
Get the current environment setting from the WORDLE_ENVIRONMENT variable.
If not set or empty, defaults to ‘PROD’. Valid values are ‘DEV’ and ‘PROD’.
- Returns:
The current environment (‘DEV’ or ‘PROD’)
- Return type:
- src.config.settings.get_settings()[source]
Get the global application settings instance.
- Return type: