pyramid_blacksmith.binding.utils¶
- pyramid_blacksmith.utils.list_to_dict(settings: Mapping[str, str], setting: str, with_flag: bool = False) Mapping[str, str] ¶
Cast the setting
setting
from the settings settings.setting = key value key2 yet another value flag_key
will return
{"key": "value", "key2": "yet another value", "flag_key": True}
- pyramid_blacksmith.utils.resolve_entrypoint(path: str) Any ¶
Resolve a class from the configuration.
string
path.to:Class
will return the typeClass
.