{"adoption": {"forks": 459, "observed_at": "2026-08-28T04:04:55.609933+00:00", "stars": 1508}, "canonical_url": "https://ross.abutalabs.com/products/empyrical", "card": {"archived": false, "artifact_type": "library", "description": "Common financial risk and performance metrics. Used by zipline and pyfolio.", "domain": ["fintech", "data-science", "analytics"], "enriched": true, "function": ["math", "data-science"], "health_score": 20, "homepage": "https://quantopian.github.io/empyrical", "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["quantopian/empyrical"], "name": "quantopian/empyrical", "platform": ["python"], "pushed_at": "2024-07-26T06:19:42+00:00", "repo": "quantopian/empyrical", "stars": 1508, "tags": ["quantitative-finance", "risk-metrics", "performance-metrics", "pandas", "numpy", "quantopian"], "topics": [], "urls": [], "use_cases": ["calculate max drawdown of a returns series", "compute alpha and beta against a benchmark", "compute rolling risk metrics like rolling sharpe or rolling max drawdown", "calculate capture ratios for up and down markets", "evaluate backtest performance statistics in zipline or pyfolio"], "what_it_is": "A Python library of common financial risk and performance metrics such as max drawdown, alpha, beta, and capture ratios, built on NumPy and pandas. It is used by Quantopian's zipline backtesting framework and pyfolio portfolio analysis tool.", "when_to_avoid": ["you need built-in market data fetching - data reading via pandas-datareader is deprecated and unreliable", "you need actively developed features - the library is in maintenance mode", "you need a full backtesting or portfolio analytics platform rather than just metrics"], "when_to_choose": ["you need standard quantitative finance risk/performance statistics in Python", "you are using zipline or pyfolio and need compatible metrics", "you work with pandas Series or NumPy arrays of returns"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/empyrical", "repo": "quantopian/empyrical", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:55.609933+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:32:34.245666+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2f9d8dc2adf0a2d354058ee7b9ffe99142b8953b3bdaa567359a1979169e090d", "fetched_at": "2026-08-28T04:04:55.609933+00:00", "kind": "readme", "missing": false, "url": "https://github.com/quantopian/empyrical"}, {"content_hash": "4f4cecfc32579956cdfcf35fca77e5da1f9affeef6ac34580ec29bdbca7c6c99", "fetched_at": "2026-08-29T11:36:57.636480+00:00", "kind": "homepage", "missing": false, "url": "https://quantopian.github.io/empyrical"}, {"content_hash": "0ed2aa708ef3560bb86420ece791e119e2530b2862ed9768e3c2ab7a3378d710", "fetched_at": "2026-08-29T11:36:57.645341+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/empyrical/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3820, "days_push": 768, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}