Config readers
mongorunway.infrastructure.config_readers
¤
__all__: typing.Sequence[str] = ('default_mongo_repository_reader', 'default_mongo_auditlog_journal_reader', 'read_repository', 'read_events', 'read_event_handlers', 'read_auditlog_journal', 'read_filename_strategy', 'BaseConfigReader', 'YamlConfigReader')
module-attribute
¤
event_handler_pattern: typing.Pattern[str] = re.compile('\n ^ # Start of the string\n Prioritized\\[ # Match the literal string "Prioritized["\n (\\d+), # Group 1: Match one or more digits (priority)\n \\s* # Match zero or more whitespace characters\n (.+) # Group 2: Match one or more characters (handler function path)\n \\]$ # Match the closing square bracket and end of the string\n | # OR\n ^ # Start of the string\n ([^,\\[\\]]+) # Group 3: Match any characters except comma, square brackets\n $ # End of the string\n ', flags=re.VERBOSE)
module-attribute
¤
logging_config: typing.Dict[str, typing.Any] = {'version': 1, 'disable_existing_loggers': False, 'formatters': {'simpleFormatter': {'format': '%(asctime)s - %(name)s - %(levelname)s - %(message)s', 'datefmt': '%Y-%m-%d %H:%M:%S'}}, 'handlers': {'consoleHandler': {'class': 'logging.StreamHandler', 'level': 'DEBUG', 'formatter': 'simpleFormatter'}}, 'loggers': {'root': {'level': 'INFO', 'handlers': ['consoleHandler'], 'propagate': 0}}}
module-attribute
¤
BaseConfigReader
¤
Bases: config_reader_port.ConfigReader
Source code in mongorunway\infrastructure\config_readers.py
application_name = application_name
instance-attribute
¤
potential_config_filenames: typing.List[str]
instance-attribute
¤
__init__(application_name)
¤
from_application_name(application_name)
classmethod
¤
read_config(config_filepath=None)
¤
Source code in mongorunway\infrastructure\config_readers.py
YamlConfigReader
¤
Bases: BaseConfigReader