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")
Creates:
my_model/
input.py
model.py
run.py
settings.py
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
terminal
python 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.9.tar.gz
(12.7 kB
view hashes)
Built Distribution
cashflower-0.4.9-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for cashflower-0.4.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0b5b6f9b98e6c1457a2862ae71f2ad9967893988160f02f4353344e6c6d126 |
|
MD5 | 04995a577eba1bd2b7733214bf204d1a |
|
BLAKE2b-256 | 14efc35dcee5f0b293c66c7c6dfab69139205f3c8fa9d82c8be1242265daa88b |