A Python package for creating, analyzing and visualizing investment strategies. Portfolio-plan allows users to define portfolios with custom asset allocations, simulate investment plans over time periods, calculate returns, and compare historical performance against benchmarks
IMPORTANT DISCLAIMER
portfolio-plansupports download of Yahoo! Finance data with the help of yfinance package. Please note the following important information:
- Yahoo!, Y!Finance, and Yahoo! finance are registered trademarks of Yahoo, Inc.
- This software is not affiliated, endorsed, or vetted by Yahoo, Inc.
- Users are responsible for ensuring their usage complies with Yahoo's Terms of Service.
portfolio-planfeatures that interface withyfinanceare intended for personal, non-commercial useYahoo's Terms of Service can be found at:
The maintainers of
portfolio-planare not responsible for any violations of Yahoo's Terms of Service by end users.
pip install portfolio-planDocumentation is available here: https://sondalex.github.io/portfolio-plan/
Install uv
pip install uvInstall pre-commit hooks
uv tool run pre-commit installuv tool run pre-commit run --all-filesuv run --active -m pytestuv buildInstalling the documentation dependencies
uv sync --active --only-devGenerating the documentation:
cd docs/ && uv run --active make html