conf_reader_factory
Factory class for generating readers for configurations
- class MDMC.readers.configurations.conf_reader_factory.ConfigurationReaderFactory[source]
Provides a factory for creating readers. Any module within the readers submodule can be created with a string of the class name, as long as it is a subclass of
ConfigurationReader
.- static base_class() Literal['ConfigurationReader'] [source]
This should be implemented to return the base class of objects returned by the
ReaderFactory
- classmethod create_reader_from_ext(extension: str, file_name: str) MDMC.readers.configurations.conf_reader.ConfigurationReader [source]
- Parameters
- Returns
An initialized configuration reader which has the extension specified by
extension
- Return type
- Raises
NotImplementedError – If
extension
does not match theextension
property of any subclass ofConfigurationReader