Framework for actuarial cash flow models
Project description
Info
Cashflower is an open-source Python framework for actuarial cash flow models.
Prerequisities
Python version >=3.9
Usage
Installation
terminal
pip install cashflower
Create model
python console
from cashflower import create_model
create_model("my_model")
Input
my_model/input.py
runplan = Runplan(data=pd.DataFrame({"version": [1]}))
main = ModelPointSet(data=pd.DataFrame({"id": [1]}))
Model
my_model/model.py
@variable()
def projection_year(t):
if t == 0:
return 0
elif t % 12 == 1:
return projection_year(t - 1) + 1
else:
return projection_year(t - 1)
Calculate
Run run.py
Contribution
The cashflower package is open-source. Everyone can use it and contribute to its development.
GitHub repository:
https://github.com/acturtle/cashflower
Documentation:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cashflower-0.4.4.tar.gz
(12.6 kB
view hashes)
Built Distribution
cashflower-0.4.4-py3-none-any.whl
(12.8 kB
view hashes)
Close
Hashes for cashflower-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc428583e6f466fa94d6c467a6bbd16f6dbee1320657b810894a7c48746f59c |
|
MD5 | dad51749836f69b07b09af3d008d1494 |
|
BLAKE2b-256 | cd8f7f30e0eaf92cb365cc4a076fe02e368c66cab30b4d23feb9ae607e06319b |