Работа с YAML
Bases:
JsonКласс для сообщений
- Parameters:
path_to_logs (str) – Смотреть
path_to_logslang (str) – Смотреть
lang
Bases:
YamlMessagesКласс для работы с YAML
- Parameters:
path_to_logs (str) – Смотреть
path_to_logslang (str) – Смотреть
lang
Загрузка YAML файла
- Parameters:
path_to_file (str) – Путь к файлу YAML
create (bool) – Создание файла YAML в случае его отсутствия
out (bool) – Печатать процесс выполнения
- Returns:
Словарь из yaml файла
- Return type:
Dict[str, Union[str, bool, int, float]]
Загрузка YAML файла из ресурсов модуля
- Parameters:
module (ModuleType) – Модуль
path_to_file (str) – Путь к файлу YAML
out (bool) – Печатать процесс выполнения
- Returns:
Словарь из yaml файла
- Return type:
Dict[str, Union[str, bool, int, float]]