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]
  • extension (str) – The file extension from which to initialize a subclass of ConfigurationReader

  • file_name (str) – The name of the file that you want to read.


An initialized configuration reader which has the extension specified by extension

Return type



NotImplementedError – If extension does not match the extension property of any subclass of ConfigurationReader