Приём документов → реестр + журнал

Внесение данных из файлов приёма в реестр невостребованных документов
и заполнение журнала. Дата внесения — текущая; журнал заполняется чисто
(без строк-примеров шаблона).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jze9
2026-06-26 03:11:18 +05:00
commit b5f7060a1f
20 changed files with 1571 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
"""Выбор читателя по расширению файла."""
from __future__ import annotations
from pathlib import Path
from .base import SourceReader
from .ods_reader import OdsReader
from .xls_reader import XlsReader
from .xlsx_reader import XlsxReader
_READERS = {
".ods": OdsReader,
".xls": XlsReader,
".xlsx": XlsxReader,
}
def get_reader(path: Path) -> SourceReader:
ext = Path(path).suffix.lower()
try:
return _READERS[ext](path)
except KeyError:
raise ValueError("Неподдерживаемый формат: %s" % ext)