forked from 0xWheatyz/SPARC
Export analysis reports as PDF or CSV from the dashboard #867
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P3 - Export analysis reports
Users currently have no way to share or archive analysis results outside the web UI.
Work to do
GET /analyze/{id}/export?format=csv(and optionallypdf) endpoint that serializes the analysis result.reportlaborweasyprint; for CSV use Pythoncsvmodule.Acceptance criteria
.csvfile with analysis data..pdfreport.Resolved in codebase. SPARC/api.py has GET /export/{company_name} for CSV export (lines 572-621) and GET /export/{company_name}/pdf for PDF export using reportlab (lines 624-779). Both require authentication. Closing as implemented.