Files
kadastr18/run.py
jze9 b5f7060a1f Приём документов → реестр + журнал
Внесение данных из файлов приёма в реестр невостребованных документов
и заполнение журнала. Дата внесения — текущая; журнал заполняется чисто
(без строк-примеров шаблона).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 03:11:18 +05:00

28 lines
821 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Точка входа: внести данные приёма в реестр и заполнить журнал.
python3 run.py
Зависимости: odfpy, openpyxl, xlrd (pip install odfpy openpyxl xlrd)
Оригинальные файлы не изменяются — результат пишется в *_ЗАПОЛНЕНО.
"""
import logging
import sys
from priem_register import Pipeline
def main() -> int:
logging.basicConfig(level=logging.INFO, format="%(message)s")
try:
Pipeline().run()
except Exception as exc: # noqa: BLE001 - короткое сообщение для пользователя
logging.error("Ошибка: %s", exc)
return 1
return 0
if __name__ == "__main__":
sys.exit(main())