{"adoption": {"forks": 1171, "observed_at": "2026-08-28T04:09:33.982616+00:00", "stars": 5983}, "canonical_url": "https://ross.abutalabs.com/products/pyportfolioopt", "card": {"archived": false, "artifact_type": "library", "description": "Financial portfolio optimization in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity", "domain": ["fintech", "data-science", "mathematics"], "enriched": true, "function": ["math", "data-science", "trading"], "health_score": 92, "homepage": "https://pyportfolioopt.readthedocs.io/", "language": "Jupyter Notebook", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["PyPortfolio/PyPortfolioOpt"], "name": "PyPortfolio/PyPortfolioOpt", "platform": ["python", "cross-platform"], "pushed_at": "2026-07-07T21:18:14+00:00", "repo": "PyPortfolio/PyPortfolioOpt", "stars": 5983, "tags": ["portfolio-optimization", "quantitative-finance", "efficient-frontier", "black-litterman", "hierarchical-risk-parity", "mean-variance", "investing"], "topics": ["finance", "portfolio-optimization", "portfolio-management", "quantitative-finance", "algorithmic-trading", "investing", "efficient-frontier", "covariance", "python", "investment", "investment-analysis", "financial-analysis"], "urls": [], "use_cases": ["compute the efficient frontier for a basket of stocks", "optimize portfolio weights to maximize Sharpe ratio", "apply Black-Litterman allocation with my own views", "run Hierarchical Risk Parity on asset returns", "combine multiple alpha sources into risk-efficient weights", "shrink a sample covariance matrix for more stable estimates", "prototype portfolio allocation strategies in Python"], "what_it_is": "PyPortfolioOpt is a Python library for financial portfolio optimization, implementing classical mean-variance optimization, Black-Litterman allocation, covariance shrinkage, and Hierarchical Risk Parity. It is designed in the spirit of scikit-learn to be extensive yet easily extensible for both casual investors and professional quants prototyping allocation strategies.", "when_to_avoid": ["you need live market data feeds or backtesting engines - pair it with other tools", "you require high-frequency or execution-level trading infrastructure", "you need non-Python environments or GPU-accelerated large-scale optimization"], "when_to_choose": ["you need well-tested portfolio optimization methods in Python with a scikit-learn-like API", "you want classical MPT, Black-Litterman, and HRP in one library", "you are prototyping allocation strategies or teaching quantitative finance", "you want a permissively licensed (MIT) library with good documentation"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pyportfolioopt", "repo": "PyPortfolio/PyPortfolioOpt", "role": "main", "score": 75}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/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:09:33.982616+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:33.982616+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:49:52.788303+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9469ab019abfbe222c02adcb9aade272410f8d020767b5dee704db336890beff", "fetched_at": "2026-08-28T04:09:33.982616+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PyPortfolio/PyPortfolioOpt"}, {"content_hash": "601b78bdb7f9905093795f58d56a6db4dd8e3535fabd8d4302fd2687f83a6d12", "fetched_at": "2026-08-29T08:46:24.762273+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyportfolioopt/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 91, "longevity": 100, "rhythm": 40}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3018, "days_push": 57, "days_rel": 188, "gap_med": null, "n_releases_24m": 1}, "score": 75, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}