A professional report generation tool that transforms raw work content into structured weekly/monthly reports using AI.
| Input Type | Free | Std | Pro | Max |
|---|---|---|---|---|
| ------------ | ------ | ----- | ----- | ----- |
| Text paste | ✅ | ✅ | ✅ | ✅ |
| File upload (TXT/MD) | ❌ | ✅ | ✅ | ✅ |
| Feishu tasks | ❌ | ❌ | ✅ | ✅ |
| Format | Free | Std | Pro | Max |
|---|---|---|---|---|
| -------- | ------ | ----- | ----- | ----- |
| Markdown | ✅ | ✅ | ✅ | ✅ |
| Word (.docx) | ❌ | ✅ | ✅ | ✅ |
| ❌ | ❌ | ✅ | ✅ | |
| Feishu card | ❌ | ❌ | ❌ | ✅ |
| Tier | Monthly Limit | History Retention |
|---|---|---|
| ------ | --------------- | ------------------ |
| Free | 5 (non-reset) | ❌ |
| Std ¥9.9 | 30 | 30 days |
| Pro ¥29.9 | 100 | 6 months |
| Max ¥99 | Unlimited | 12 months |
# Generate a weekly report
python -m scripts.main generate --content "今天完成了XX,明天计划做YY" -k YOUR_API_KEY
# Generate from file
python -m scripts.main generate --file worklog.md -k YOUR_API_KEY
# Generate monthly report in detailed style
python -m scripts.main generate --type monthly --style detailed -c "本月工作..." -k YOUR_API_KEY
# Continue from previous report
python -m scripts.main generate --continue-from REPORT_ID -c "新增工作..." -k YOUR_API_KEY
# Output to Word
python -m scripts.main generate -c "内容..." -k KEY --format word --output report.docx
# View history
python -m scripts.main history -k YOUR_API_KEY
# Check status
python -m scripts.main status -k YOUR_API_KEY
# Validate API key
python -m scripts.main validate -k YOUR_API_KEY
from scripts.report_generator import ReportGenerator
from scripts.templates import ReportType, ReportStyle
generator = ReportGenerator(api_key="your_llm_key")
result = generator.generate_report(
work_content="今天完成了A项目第一阶段...",
report_type=ReportType.WEEKLY,
style=ReportStyle.CONCISE,
api_key="your_token_key"
)
if result["success"]:
print(result["report"])
Get your key from YK-Global.com:
RPT-WEEKLY-* (RPT-WEEKLY-FREE, RPT-WEEKLY-STD, etc.)https://api.yk-global.com/v1/verifySelf-configured. Supports OpenAI-compatible APIs:
~/.weekly_reporter/history/~/.weekly_reporter/token_cache.json~/.weekly_reporter/uploads/Requires Feishu OAuth token with task:task:readonly scope.
Send reports as Feishu interactive cards. Requires bot token.
requests>=2.28.0
python-docx>=0.8.11 # For Word output
reportlab>=4.0.0 # For PDF output
共 2 个版本