classy_config.loader.auto_loader module#
- classy_config.loader.auto_loader.auto_loader(filepath: Path) MutableMapping[str, Any] #
Resolve a loader based on the file’s extension, then use loader to construct a dict.
- Parameters:
filepath –
- Returns:
- classy_config.loader.auto_loader.register_loader(extension: str, loader: Loader) None #
Register a loader for the auto_loader to use. This will resolve a loader from the provided extension.
- Parameters:
extension – The file extension this loader will be assigned to.
loader – The loader function.
- Returns: