Hi all, I made a Python library that can simulate the effect of different patterns over time. For example, the combined effect of a growing salary, inflation, spending, etc. (But also non financial things).
Looking for ideas and feedback. Developers that want to contribute are welcome!
. Below you can see a python sample of using this library.
GITHUB: https://github.com/TimoKats/pylan
PYPI: https://pypi.org/project/pylan-lib/
Looking for ideas and feedback. Developers that want to contribute are welcome!

GITHUB: https://github.com/TimoKats/pylan
PYPI: https://pypi.org/project/pylan-lib/
import matplotlib.pyplot as plt from pylan import AddGrow, Item, Subtract savings = Item(start_value=100) dividends = AddGrow("90d", 100, "1y", 1.1) # the dividend will grow with 10% each year growing_salary = AddGrow("1m", 2500, "1y", 1.2, offset="24d") # every month 24th mortgage = Subtract("0 0 2 * *", 1500) # cron support savings.add_patterns([growing_salary, dividends, mortgage]) result = savings.run("2024-1-1", "2028-1-1") x, y = result.plot_axes() plt.plot(x, y) plt.show()
![[Image: example.png?raw=true]](https://github.com/TimoKats/pylan/blob/main/.github/example.png?raw=true)