HF RL Explorer

Build a PrefixedConfig class using starlette 's Config as a backend. PrefixedConfig wraps a…

Build a PrefixedConfig class using starlette 's Config as a backend. PrefixedConfig wraps a…: a task in repo2rlenv-code-instruct (Harbor dataset). Example: python cfg = PrefixedConfig({"APP PORT": "8080", "APP DEBUG": "true", "DB HOST": "localhost"}) cfg.get all("APP ") → {"PORT": "8080", "DEBUG"…

The task

Example: ```python cfg = PrefixedConfig({"APP_PORT": "8080", "APP_DEBUG": "true", "DB_HOST": "localhost"}) cfg.get_all("APP_") # → {"PORT": "8080", "DEBUG": "true"} cfg.get_one("APP_PORT", cast=int) # → 8080 cfg.get_one("MISSING") # raises KeyError ```

Part of FineEnvs/repo2rlenv-code-instruct.