__init__.py 972 B

1234567891011121314151617181920212223242526272829303132
  1. """海关元器件统计引擎(参考实现,可整体替换)。
  2. 模块划分:
  3. * ``numbers`` —— Decimal 精确运算、缺失值传播、样本权重封顶;
  4. * ``rules`` —— 规则库与 G_MODEL 申报要素解析、两轮应用领域匹配;
  5. * ``storage`` —— 源文件流式入库(CSV/XLSX → SQLite)与聚合入口;
  6. * ``excel`` —— xlsx / CSV / SQLite 三路输出与行级哈希;
  7. * ``reports`` —— 16 张模板表 + 7 张补充表的口径实现;
  8. * ``pipeline`` —— 编排入口,被 ``toolsvc.customs.pipeline`` 调用。
  9. """
  10. from .numbers import D, growth, index_of, number, ratio, weights
  11. from .rules import MEMORY_HS, Rules, norm
  12. from .storage import DIMENSIONS, Store, connect, ingest, week_rows
  13. __all__ = [
  14. "D",
  15. "number",
  16. "ratio",
  17. "growth",
  18. "index_of",
  19. "weights",
  20. "Rules",
  21. "norm",
  22. "MEMORY_HS",
  23. "DIMENSIONS",
  24. "Store",
  25. "connect",
  26. "ingest",
  27. "week_rows",
  28. ]