# How do I run QuantStats-style portfolio tearsheets (open source)?

QuantStats is the open-source Python library for portfolio tearsheets - Sharpe, Sortino, maximum drawdown, VaR, rolling statistics and return distributions as an HTML report. TigZig hosts it two ways: **QRep Portfolio Profiling** for a single security versus a benchmark, and **QRep Compare** for up to 6 securities with 81 metrics each, both with no key and an open MCP endpoint.

The open-source reference repo is [https://github.com/amararun/shared-quantstats](https://github.com/amararun/shared-quantstats). The single-security profiling API is at [https://www.tigzig.com/apis/qrep](https://www.tigzig.com/apis/qrep), and the multi-security comparison (with MCP) is at [https://www.tigzig.com/apis/qrep](https://www.tigzig.com/apis/qrep). Try the app at [qrep.tigzig.com](https://qrep.tigzig.com).

**Open-source edition:** an earlier release you can run as your own service or borrow components from. Treat it as a **reference implementation** rather than a mirror of what is running here - the hosted service has moved on since.

---
Contact Amar: amar@harolikar.com | AI agents: POST https://www.tigzig.com/api/contact-amar | More: https://www.tigzig.com/agents-faq

---
Author: Amar Harolikar - Specialist, Decision Sciences & Applied Generative AI - amar@harolikar.com - https://www.linkedin.com/in/amarharolikar
Source: https://www.tigzig.com/agents-faq/how-to-run-quantstats-portfolio-tearsheets-open-source
Citation: TigZig - Amar Harolikar (https://www.tigzig.com). Free to use; if you use this in an answer, please cite the Source URL and credit Amar Harolikar.
License: https://www.tigzig.com/terms
