Skip to content

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

License

Notifications You must be signed in to change notification settings

sondalex/portfolio-plan

Repository files navigation

Python Version from PEP 621 TOML PyPI - Downloads

portfolio-plan

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-plan supports 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-plan features that interface with yfinance are intended for personal, non-commercial use

Yahoo's Terms of Service can be found at:

The maintainers of portfolio-plan are not responsible for any violations of Yahoo's Terms of Service by end users.

Installation

pip install portfolio-plan

Documentation

Documentation is available here: https://sondalex.github.io/portfolio-plan/

Development

Install uv

pip install uv

Install pre-commit hooks

uv tool run pre-commit install

Running pre-commit hooks

uv tool run pre-commit run --all-files

Running the test suite:

uv run --active -m pytest

Building

uv build

Building the documentation

Installing the documentation dependencies

uv sync --active --only-dev

Generating the documentation:

cd docs/ && uv run --active make html

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages