Framework for actuarial cash flow models
Project description
Info
Cashflower is an open-source Python framework for actuarial cash flow models.
Prerequisites
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.6.1.tar.gz
(78.9 kB
view hashes)
Built Distributions
cashflower-0.6.1-cp39-cp39-win32.whl
(103.4 kB
view hashes)
Close
Hashes for cashflower-0.6.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d477c1413579bfb2dce59bf731cb6c4097d01ce8d6de5411585c20c44a9d9e1 |
|
MD5 | cb0447a419ffe201568f31fa360e663b |
|
BLAKE2b-256 | 654b05908098f404484150ff51e5db8b99cbbf4eada2b0484dd6d2c786ff5ddc |
Close
Hashes for cashflower-0.6.1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29344a6ac4084d2da234e78419c6b35b6d1054537fd4b40b7c3d15a44c3067dc |
|
MD5 | 1357ff5c47fb43b91322c139d2356ab6 |
|
BLAKE2b-256 | 91532ac6180c184c91fc9d1046c619a43b056eec77df2ccedd14405543606fcf |
Close
Hashes for cashflower-0.6.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 441716d215d5cf6c5a5cd86d8bc65c95447591e26c189c5fbaac52df227731c8 |
|
MD5 | 67de897e591ca65c40ef8d70bf35bfef |
|
BLAKE2b-256 | c16e25a60eecf6973e386f0250572c12e20644b705a6c94ac042a308843d7428 |
Close
Hashes for cashflower-0.6.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14d6034adc5bccc3b6f0a78710e98febd070d5b617b33a05d256c0ea9fc219c9 |
|
MD5 | 77bc5c4fd6551485487851b59c4ec516 |
|
BLAKE2b-256 | 5cf655ba7280f6ab2f6d26bc450212616ad2c07cf4c0d41c49453d74d6232e11 |
Close
Hashes for cashflower-0.6.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938137cf2adc3c31a6d4e2eab6c6e114278fa474a2be146350fa8afd8021cdd2 |
|
MD5 | c001d15db9d435369b9e3517d4913226 |
|
BLAKE2b-256 | 820b969121c98a5084d3551de89192bb3a2a21feea2aad116acda2ae65b9a36a |
Close
Hashes for cashflower-0.6.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947c3959e0262114a0d59a5e4c4c70e6449014d5f50cad4ea582f3a10be5fba7 |
|
MD5 | 867e059e7b7f3eae52b0eb60ebd7b105 |
|
BLAKE2b-256 | 68c4d2c18466458fbf08c96e1881c745922b5a7084e8bce94ff5802780ab7513 |
Close
Hashes for cashflower-0.6.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65d53bdcefeccf962178275a6322206ae530cdfbd18ddd93127a114a403a8718 |
|
MD5 | 75c11c35d65e04e334e26fe2a8ee1196 |
|
BLAKE2b-256 | daf041e96d41917930f70eea9f47d631f47db8f73dbc97176ed99b9b265eaf51 |
Close
Hashes for cashflower-0.6.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdb0c08ae71b762e18cd7b5ad2568a8236fb1d325aeb076b69bfd82208b37825 |
|
MD5 | 2f190e1545d5d3fb5c930d89389c28cf |
|
BLAKE2b-256 | d3c147b5194336a5e65bef1cabc3c251c53e9d54a8660196c25272e0185ee032 |
Close
Hashes for cashflower-0.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db942d925d7fd8df7fb633d346676db722c13468225f8cfa0e29865c71713d38 |
|
MD5 | 5c1b89f0a1c03dc31978782cd4d11fef |
|
BLAKE2b-256 | cae70a893f85a9541cc00ad0b3306d3e7bf913a60263918c89242387b9fee26c |
Close
Hashes for cashflower-0.6.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2858421ed7c4a02eba71ac7ebd8fc7e15b0bf0312c232013be401ce954834e1f |
|
MD5 | f6d88f3a78cdc941d81a2dd27c288ddd |
|
BLAKE2b-256 | f852774c214634c8a2f5915261f8cb67327cbaa7e34a010e82dcddda6c2d64ce |
Close
Hashes for cashflower-0.6.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8f8f144a5b902b04b47732e329c411137e4f1897091855fbcd1c639422d01a3 |
|
MD5 | 987319def6f93aeedd2ff63cf3d37fe3 |
|
BLAKE2b-256 | d9d9f6b374ed215a3e78cf249432733af3b73543191a578251bda51875291ed9 |
Close
Hashes for cashflower-0.6.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea72a22524ac9abcfa23f2630628d4feb8fff6c8e2b88a557ab69561a6e1bdaf |
|
MD5 | 9b3e4b67345181181a4974ab5f67662c |
|
BLAKE2b-256 | 73b2bf2da6d2b771243543d610253728cc888e155687b3f8286699002510817f |
Close
Hashes for cashflower-0.6.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d600d6898e85c67850468a343e8991fce579ef98eb6f1d1fdc96e8e641435b |
|
MD5 | c7cb761c67c4c4b20a97608a1273d2b4 |
|
BLAKE2b-256 | ec7b641c7e6c7a0ed40509fc8f7a981f6b3a83908cbb0e2db99a7b0797e3940d |
Close
Hashes for cashflower-0.6.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0253925dde4463d663d92b43ebb01c6c47335cdb593ef31c47c010fd22c2a215 |
|
MD5 | f613e30c83371839576b44035fdf5c7c |
|
BLAKE2b-256 | 33f757a3d93c2d4d6cd4b4fd839670ccd4f755e52e5108f93871d78da6b3783b |
Close
Hashes for cashflower-0.6.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d498288e99b0213ce6ec578f0146537782df16903f871267485c9afd7069b7f |
|
MD5 | fdf08bfbbe3089dfec90eec18f85b132 |
|
BLAKE2b-256 | 0c5e55af24282bd5dce4a2d5c87cd387cf25cd866580105d48a6a737c3a3fdb3 |
Close
Hashes for cashflower-0.6.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fa9d29addbf842f2faf739902804c76d4b8c9469b9335804f88f923c2db58d |
|
MD5 | 93e6240458d5431643619b24a43752ba |
|
BLAKE2b-256 | b801a91c6dcadc7d7e7aef19fc990a5fd57e361d3cff3fe3fc093d27be85c4f3 |
Close
Hashes for cashflower-0.6.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3c211cfa4514ad9efc4d6c580718a46268041ad824d97df89851933431af10 |
|
MD5 | 241d9dcb3b8452d1d7f06a945ab59674 |
|
BLAKE2b-256 | e86082520f2cae536ec8f603ac102d7786d0d47e1e616f4709021be5c675c2f5 |
Close
Hashes for cashflower-0.6.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52d7c469beb2df7074b9b0d997f0d6c8430ff8973103a9e0fd48b18360476729 |
|
MD5 | 6a7bb71dc3b697cb17cb4c1b1bdfa0c3 |
|
BLAKE2b-256 | 683be45c815829cd9624f313256ddaabceed0a18be479f28712cb9a3fbc4bab7 |
Close
Hashes for cashflower-0.6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a8e62eea90040de807488c9fb9d57938115907b4c125a4da3fe195ef0bb33e |
|
MD5 | 897f18ea632210cf2a66b780c4e4d115 |
|
BLAKE2b-256 | 426bd5d5dcb23f030e6fa4bcf06d8e936617f0b7dc9e1899013ffc77c7b91499 |
Close
Hashes for cashflower-0.6.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f2df48393e487e537c802297e39ad60993a2770bf45223a153a7aed89e0373 |
|
MD5 | 905d532027493f02ee4691db3ecfa90f |
|
BLAKE2b-256 | c6c3e4cec013f893e79a70c7997794b181e724acd312df14e23d38a51d8edea3 |