def __init__(self,
                 parsers: t.List[BaseParser],
                 silent: bool = False,
                 suppress_logs: bool = False,
                 keep_read_records_max: int = 1024):
        """
        Initialization:
            - takes a list of initialized parsers;
            - it's supposed to use ONLY unique parsers for ``parsers`` argument
              (or you are going to get the same initial arguments for all parsers of the same type in
              :meth:`~django_docker_helpers.config.ConfigLoader.from_env`);
            - the parsers's order does matter.

        :param parsers: a list of initialized parsers
        :param silent: don't raise exceptions if any read attempt failed
        :param suppress_logs: don't display any exception warnings on screen
        :param keep_read_records_max: max capacity queue length
        """
        self.parsers = parsers
        self.silent = silent
        self.suppress_logs = suppress_logs
        self.sentinel = object()
        self.logger = logging.getLogger(self.__class__.__name__)
        self.config_read_queue = deque(maxlen=keep_read_records_max)

        self.colors_map = {
            'title': '\033[1;35m',

            'parser': '\033[0;33m',
            'path': '\033[94m',
            'type': '\033[1;33m',
            'value': '\033[32m',

            'reset': '\033[0m',
        }
def __init__ ( self , parsers : t . List [ BaseParser ] , silent : bool = False , suppress_logs : bool = False , keep_read_records_max : int = 1024 ) : self . parsers = parsers self . silent = silent self . suppress_logs = suppress_logs self . sentinel = object ( ) self . logger = logging . getLogger ( self . __class__ . __name__ ) self . config_read_queue = deque ( maxlen = keep_read_records_max ) self . colors_map = { 'title' : '\033[1;35m' , 'parser' : '\033[0;33m' , 'path' : '\033[94m' , 'type' : '\033[1;33m' , 'value' : '\033[32m' , 'reset' : '\033[0m' , }
Initialization:
            - takes a list of initialized parsers;
            - it's supposed to use ONLY unique parsers for ``parsers`` argument
              (or you are going to get the same initial arguments for all parsers of the same type in
              :meth:`~django_docker_helpers.config.ConfigLoader.from_env`);
            - the parsers's order does matter.

        :param parsers: a list of initialized parsers
        :param silent: don't raise exceptions if any read attempt failed
        :param suppress_logs: don't display any exception warnings on screen
        :param keep_read_records_max: max capacity queue length