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