{"id":13415687,"url":"https://github.com/quantopian/pyfolio","last_synced_at":"2025-05-14T15:05:54.679Z","repository":{"id":33034516,"uuid":"36670205","full_name":"quantopian/pyfolio","owner":"quantopian","description":"Portfolio and risk analytics in Python","archived":false,"fork":false,"pushed_at":"2023-12-23T06:14:58.000Z","size":87861,"stargazers_count":5922,"open_issues_count":165,"forks_count":1831,"subscribers_count":305,"default_branch":"master","last_synced_at":"2025-04-24T01:51:22.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://quantopian.github.io/pyfolio","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quantopian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-06-01T15:31:39.000Z","updated_at":"2025-04-23T17:08:27.000Z","dependencies_parsed_at":"2023-01-14T23:15:29.657Z","dependency_job_id":"29747e21-f1d2-4e07-bfd6-d9e05fe34762","html_url":"https://github.com/quantopian/pyfolio","commit_stats":{"total_commits":1019,"total_committers":59,"mean_commits":"17.271186440677965","dds":0.5897939156035329,"last_synced_commit":"4b901f6d73aa02ceb6d04b7d83502e5c6f2e81aa"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantopian%2Fpyfolio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantopian%2Fpyfolio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantopian%2Fpyfolio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantopian%2Fpyfolio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantopian","download_url":"https://codeload.github.com/quantopian/pyfolio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169007,"owners_count":22026207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:51.338Z","updated_at":"2025-05-14T15:05:54.654Z","avatar_url":"https://github.com/quantopian.png","language":"Jupyter Notebook","readme":"![pyfolio](https://media.quantopian.com/logos/open_source/pyfolio-logo-03.png \"pyfolio\")\n\n# pyfolio\n\n[![Join the chat at https://gitter.im/quantopian/pyfolio](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/quantopian/pyfolio?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![build status](https://travis-ci.org/quantopian/pyfolio.png?branch=master)](https://travis-ci.org/quantopian/pyfolio)\n\npyfolio is a Python library for performance and risk analysis of\nfinancial portfolios developed by\n[Quantopian Inc](https://www.quantopian.com). It works well with the\n[Zipline](https://www.zipline.io/) open source backtesting library.\nQuantopian also offers a [fully managed service for professionals](https://factset.quantopian.com) \nthat includes Zipline, Alphalens, Pyfolio, FactSet data, and more.\n\nAt the core of pyfolio is a so-called tear sheet that consists of\nvarious individual plots that provide a comprehensive image of the\nperformance of a trading algorithm. Here's an example of a simple tear\nsheet analyzing a strategy:\n\n![simple tear 0](https://github.com/quantopian/pyfolio/raw/master/docs/simple_tear_0.png \"Example tear sheet created from a Zipline algo\")\n![simple tear 1](https://github.com/quantopian/pyfolio/raw/master/docs/simple_tear_1.png \"Example tear sheet created from a Zipline algo\")\n\nAlso see [slides of a talk about\npyfolio](https://nbviewer.jupyter.org/format/slides/github/quantopian/pyfolio/blob/master/pyfolio/examples/pyfolio_talk_slides.ipynb#/).\n\n## Installation\n\nTo install pyfolio, run:\n\n```bash\npip install pyfolio\n```\n\n#### Development\n\nFor development, you may want to use a [virtual environment](https://docs.python-guide.org/en/latest/dev/virtualenvs/) to avoid dependency conflicts between pyfolio and other Python projects you have. To get set up with a virtual env, run:\n```bash\nmkvirtualenv pyfolio\n```\n\nNext, clone this git repository and run `python setup.py develop`\nand edit the library files directly.\n\n#### Matplotlib on OSX\n\nIf you are on OSX and using a non-framework build of Python, you may need to set your backend:\n``` bash\necho \"backend: TkAgg\" \u003e ~/.matplotlib/matplotlibrc\n```\n\n## Usage\n\nA good way to get started is to run the pyfolio examples in\na [Jupyter notebook](https://jupyter.org/). To do this, you first want to\nstart a Jupyter notebook server:\n\n```bash\njupyter notebook\n```\n\nFrom the notebook list page, navigate to the pyfolio examples directory\nand open a notebook. Execute the code in a notebook cell by clicking on it\nand hitting Shift+Enter.\n\n\n## Questions?\n\nIf you find a bug, feel free to [open an issue](https://github.com/quantopian/pyfolio/issues) in this repository.\n\nYou can also join our [mailing list](https://groups.google.com/forum/#!forum/pyfolio) or\nour [Gitter channel](https://gitter.im/quantopian/pyfolio).\n\n## Support\n\nPlease [open an issue](https://github.com/quantopian/pyfolio/issues/new) for support.\n\n## Contributing\n\nIf you'd like to contribute, a great place to look is the [issues marked with help-wanted](https://github.com/quantopian/pyfolio/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).\n\nFor a list of core developers and outside collaborators, see [the GitHub contributors list](https://github.com/quantopian/pyfolio/graphs/contributors).\n","funding_links":[],"categories":["Jupyter Notebook","Libraries \u0026 Packages","Analytics","Research Tools","Analytic tools","金融数据处理","Other","Python","金融股票","编程","Libraries","开源项目","指标\u0026风险分析"],"sub_categories":["Risk","Arbitrage","Risk Analysis","网络服务_其他","风险分析","Python","2\\. **数据处理与分析**"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantopian%2Fpyfolio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantopian%2Fpyfolio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantopian%2Fpyfolio/lists"}