报告生成器 API¶
HtmlReporter¶
Bases: Reporter
flowchart TD
fund_cli.core.reporters.html_reporter.HtmlReporter[HtmlReporter]
fund_cli.core.reporter.Reporter[Reporter]
fund_cli.core.reporter.Reporter --> fund_cli.core.reporters.html_reporter.HtmlReporter
click fund_cli.core.reporters.html_reporter.HtmlReporter href "" "fund_cli.core.reporters.html_reporter.HtmlReporter"
click fund_cli.core.reporter.Reporter href "" "fund_cli.core.reporter.Reporter"
HTML报告生成器 (FUND-ANALYZE-011)
源代码位于: src/fund_cli/core/reporters/html_reporter.py
MarkdownReporter¶
Bases: Reporter
flowchart TD
fund_cli.core.reporters.markdown_reporter.MarkdownReporter[MarkdownReporter]
fund_cli.core.reporter.Reporter[Reporter]
fund_cli.core.reporter.Reporter --> fund_cli.core.reporters.markdown_reporter.MarkdownReporter
click fund_cli.core.reporters.markdown_reporter.MarkdownReporter href "" "fund_cli.core.reporters.markdown_reporter.MarkdownReporter"
click fund_cli.core.reporter.Reporter href "" "fund_cli.core.reporter.Reporter"
Markdown报告生成器
源代码位于: src/fund_cli/core/reporters/markdown_reporter.py
PdfReporter¶
Bases: Reporter
flowchart TD
fund_cli.core.reporters.pdf_reporter.PdfReporter[PdfReporter]
fund_cli.core.reporter.Reporter[Reporter]
fund_cli.core.reporter.Reporter --> fund_cli.core.reporters.pdf_reporter.PdfReporter
click fund_cli.core.reporters.pdf_reporter.PdfReporter href "" "fund_cli.core.reporters.pdf_reporter.PdfReporter"
click fund_cli.core.reporter.Reporter href "" "fund_cli.core.reporter.Reporter"
PDF报告生成器.
源代码位于: src/fund_cli/core/reporters/pdf_reporter.py
generate ¶
generate(
fund_code: str,
metrics: dict[str, Any],
nav_data: Any = None,
benchmark_data: Any = None,
**kwargs,
) -> str
生成HTML内容(PDF基于HTML转换).
源代码位于: src/fund_cli/core/reporters/pdf_reporter.py
DocxReporter¶
Bases: Reporter
flowchart TD
fund_cli.core.reporters.docx_reporter.DocxReporter[DocxReporter]
fund_cli.core.reporter.Reporter[Reporter]
fund_cli.core.reporter.Reporter --> fund_cli.core.reporters.docx_reporter.DocxReporter
click fund_cli.core.reporters.docx_reporter.DocxReporter href "" "fund_cli.core.reporters.docx_reporter.DocxReporter"
click fund_cli.core.reporter.Reporter href "" "fund_cli.core.reporter.Reporter"
Word报告生成器.
源代码位于: src/fund_cli/core/reporters/docx_reporter.py
generate ¶
generate(
fund_code: str,
metrics: dict[str, Any],
nav_data: Any = None,
benchmark_data: Any = None,
**kwargs,
) -> str
生成Word文档内容(返回临时文件路径).
源代码位于: src/fund_cli/core/reporters/docx_reporter.py
PptxReporter¶
Bases: Reporter
flowchart TD
fund_cli.core.reporters.pptx_reporter.PptxReporter[PptxReporter]
fund_cli.core.reporter.Reporter[Reporter]
fund_cli.core.reporter.Reporter --> fund_cli.core.reporters.pptx_reporter.PptxReporter
click fund_cli.core.reporters.pptx_reporter.PptxReporter href "" "fund_cli.core.reporters.pptx_reporter.PptxReporter"
click fund_cli.core.reporter.Reporter href "" "fund_cli.core.reporter.Reporter"
PPT报告生成器.
源代码位于: src/fund_cli/core/reporters/pptx_reporter.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
generate ¶
generate(
fund_code: str,
metrics: dict[str, Any],
nav_data: Any = None,
benchmark_data: Any = None,
**kwargs,
) -> str
生成PPT内容(返回临时文件路径).
源代码位于: src/fund_cli/core/reporters/pptx_reporter.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |