market-assistant/backend/pipeline/jd_competitor_report.py
hub-gif ca6e71eb4b refactor(pipeline): 整理 csv、jd 细类标签与竞品报告子包
- 新增 pipeline.csv 与 pipeline.jd.matrix_group_label,根目录模块保留兼容转发

- 竞品报告主实现迁至 competitor_report.jd_report,兼容入口补全下划线辅助函数再导出

- 增加 pipeline/__init__.py 避免 Django 将 pipeline 识别为多路径命名空间包

Made-with: Cursor
2026-04-17 14:14:48 +08:00

24 lines
843 B
Python

# -*- coding: utf-8 -*-
"""
兼容入口:竞品报告实现见 ``pipeline.competitor_report.jd_report``。
命令行:``python -m pipeline.jd_competitor_report``;爬虫目录下的 ``jd_competitor_report.py`` 仍转发至此。
"""
from __future__ import annotations
from pipeline.competitor_report.jd_report import * # noqa: F403, F401
from pipeline.competitor_report.jd_report import ( # noqa: F401
main,
# ``import *`` 不导出以下划线开头的名称;测试与调试会经本兼容入口访问这些辅助函数。
_comment_lines_with_product_context,
_comment_sentiment_lexicon,
_consumer_feedback_by_matrix_group,
_counter_mix_top_rows_with_remainder,
_merged_rows_grouped_for_matrix,
_sku_to_matrix_group_map,
_structure_names_for_pie_counter,
)
if __name__ == "__main__":
main()