An open-source Python framework for actuarial cash flow models
Last updated Jun 17, 2026
58
Stars
14
Forks
27
Issues
0
Stars/day
Attention Score
46
Language breakdown
Python 95.2%
HTML 4.3%
Cython 0.5%
▸ Files
click to expand
README
Info
Cashflower is an open-source Python framework for actuarial cash flow models.
Installation
terminal
pip install cashflower
Create model
python console
from cashflower import create_model
createmodel("mymodel")
Creates:
my_model/
input.py
model.py
run.py
settings.py
Model
my_model/model.py
from cashflower import variable
@variable() def survival_probability(t): mortality_rate = 0.01 if t == 0: return 1 return survivalprobability(t - 1) * (1 - mortalityrate)
Calculate
terminal
python run.py
Contribution
GitHub repository:
https://github.com/acturtle/cashflower
Documentation:
🔗 More in this category