Configuration Module#

Handles configuration management and settings via config.yaml (modern) or ~/.panobbgo/config.ini (legacy).

class panobbgo.config.Config(parse_args: bool = False, testing_mode: bool = False)[source]#

Bases: object

Configuration of one strategy run.

Every StrategyBase owns its own Config instance, so strategy.config.max_eval = 500 affects that strategy only. (Up to 2026-09 this class was a process-wide singleton, which made per-strategy overrides leak into every strategy created afterwards in the same process — including the other specs of a benchmark run.)

Values are read, in decreasing precedence, from the command line (only with parse_args=True), ./config.yaml, ~/.panobbgo/config.ini and the built-in defaults.

Parameters:
  • parse_args (boolean) – parse sys.argv (scripts only)

  • testing_mode (boolean) – if True, signals that it is run by the unittests

property debug: bool#
get_logger(name: str, loglevel: int | None = None) → Logger[source]#