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.8.2.tar.gz
(86.8 kB
view hashes)
Built Distributions
cashflower-0.8.2-cp39-cp39-win32.whl
(110.9 kB
view hashes)
Close
Hashes for cashflower-0.8.2-cp312-cp312-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 05060406a9cbff0d53c517047ed3635a30437df5a4b949db503102d35f360ac9 |
|
| MD5 | bce0d78bb7f4af118ba48fa90b316415 |
|
| BLAKE2b-256 | da88ebec1bc5badd5e1a9d58b8d07ee4a4f2a0606b9f7590929b52c9f06b82a1 |
Close
Hashes for cashflower-0.8.2-cp312-cp312-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | bec7e2e8fb7f0e15515fcd313b98678e8585d3e8b5ad10f45fc0caf7e029369b |
|
| MD5 | fdc0292d1009e8924a1f8e4ffbf4917d |
|
| BLAKE2b-256 | 5e76de9a15d5f89d67b6716f7ebd8249dd2a0e08e90b3de38d87c7e23d093329 |
Close
Hashes for cashflower-0.8.2-cp312-cp312-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 833c9b0603abdce809122efb262cab238a17d974967a60ee14392bbb604b39a9 |
|
| MD5 | 94f947c452c90d1d82401d52249f65f7 |
|
| BLAKE2b-256 | 98498f9fe04b1aa26c9199414cb8d524ddc92899dc50e5314c8289fe530007a3 |
Close
Hashes for cashflower-0.8.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 4b5fc6e0910b74527c7309ff00f378a3ac1750f59017b93ed83d80a34626b3f7 |
|
| MD5 | b32588ce41cec558347b471e470a0e46 |
|
| BLAKE2b-256 | 4600db71666c3e8060f2ff347cfda7c5a0bca20487eb8bd765e1a7f113632017 |
Close
Hashes for cashflower-0.8.2-cp312-cp312-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 3ce2964c581275cd21249b093cfee3dbb22abdaff443112b8afccb3c0399c498 |
|
| MD5 | 41d8eb2184dae97141af846961bd0278 |
|
| BLAKE2b-256 | 4189eec1e083c31b8433927a135e58284032c7c2b9565e087bf7f2e31976bfdb |
Close
Hashes for cashflower-0.8.2-cp311-cp311-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e41d7dc53e2fc3fb89cc2b72aaa1ab28ff647399628f17f8e055c8e309ab01cf |
|
| MD5 | 8961c036c4c1dda66b955fbb5a52949d |
|
| BLAKE2b-256 | 4ccbd42b373ff3a7a4a960e02fb9a5e10f62daaed86659a93d11fbc629801cda |
Close
Hashes for cashflower-0.8.2-cp311-cp311-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 460cbb2de2769fd0ea39685d1586eac86c5bbc0ffc6720edf53640e84e0d6b19 |
|
| MD5 | 0a9fd51ed338b342f1b98b839aa6d717 |
|
| BLAKE2b-256 | 37570638c6edda3af91b2c860462f40f9a2d25dd64b3f335d668f143b343d243 |
Close
Hashes for cashflower-0.8.2-cp311-cp311-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 0916206a503a48696ff6043aae9f2920f7aaef1e099b03c83c8416b44269d750 |
|
| MD5 | 1c493b66d226e152bbb5c9c957856a69 |
|
| BLAKE2b-256 | 0149f3a1cf45fff6fa5e5ad04cbca5d4a237ae8dd89a6a64b06189fbd6e551aa |
Close
Hashes for cashflower-0.8.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e32a24ad6062e71e9e5cafdcd668736f53ae2ca96bdf713f29e22d0ee0775a6a |
|
| MD5 | fa0b696dff2dc44eb996436ec2cf6a50 |
|
| BLAKE2b-256 | 5a44d17ce33ac59a56c524c0562800bbe93f9344308f8617523e5a193d09d8ff |
Close
Hashes for cashflower-0.8.2-cp311-cp311-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e8fc53b2b33274bc50248a2db915470191136f8bc873d97b9042af044687bf14 |
|
| MD5 | baa7c3c98f0eba2409b5cff7c2d33b10 |
|
| BLAKE2b-256 | 7803fb04af7f3525ca0137c11564d30358493049d2adcac74b9826dfd574cfa2 |
Close
Hashes for cashflower-0.8.2-cp310-cp310-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 21ae0f8b3383c2ae29e0021ce0e96524352d88cb1d2c9982aaae9802c9a8b30f |
|
| MD5 | 1a1a1c5026394e3a51435bd0b2954028 |
|
| BLAKE2b-256 | 3323293087c21d08f25f90b51136cbba79f96e04a896740a82eb08859a7cf203 |
Close
Hashes for cashflower-0.8.2-cp310-cp310-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 73b4ad2c189a6a2b15b5610a1ee9d1ef8c946f4b2b5d9874473d49c05e2024bd |
|
| MD5 | de2ffdfb2836352a1c414e3d1901881f |
|
| BLAKE2b-256 | 984b987d7177791f9b2732825c37d67d0965ec3d9836de64f816e209c5068e50 |
Close
Hashes for cashflower-0.8.2-cp310-cp310-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c350441a5df1c6ed7005502754af6ec92eb00b7fa88ab33b0e6006304aa5cf62 |
|
| MD5 | 62f90a18d97b231a9905646520e52c62 |
|
| BLAKE2b-256 | f2f1b8daf557521746bad4504e7b2f2c8751a68e7377eefa0b2669cecec1a0aa |
Close
Hashes for cashflower-0.8.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 7423dec2a8ff851c58ae949d671a78b3bcd656a302997bcd7ccb2dc85f52ad02 |
|
| MD5 | ac82143f25f899f030fa3420afb6097c |
|
| BLAKE2b-256 | 6dbc5a642b479680a881a01f497f5f9dd1d524deb5e9c931de33b4144d9c79d5 |
Close
Hashes for cashflower-0.8.2-cp310-cp310-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 8917c5a2c220c0946adf32ec76c2c52936771ae869a7ef81a4e9732439a2788c |
|
| MD5 | 568f0289098498d4f30d12f35b64bd75 |
|
| BLAKE2b-256 | 4723763dfd440cf73a1c755d0c4c3de0f920d9590df2d6b8c66831ed2e5c70bd |
Close
Hashes for cashflower-0.8.2-cp39-cp39-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5994f41f5ae6af944ec210c357e7c65a1467abc6a9a65248ca42704bf9770dd1 |
|
| MD5 | db8b7d956a5fadd59821b325c2d1e20b |
|
| BLAKE2b-256 | 3cac1c8c74490123d460ed2b1cb36b4ff31fe148ecd0280866a322e5a3ed4ae1 |
Close
Hashes for cashflower-0.8.2-cp39-cp39-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 28b0dc962ace799c3d5baca72b5e5ce27c4ee89979c9dc32f7edbb9707246529 |
|
| MD5 | 570fa4d71042ebb1af08e939d2630816 |
|
| BLAKE2b-256 | f9998fae55ede9acb2d69109d5a5013592d272ed55ab76ccc4b5a51cc845d063 |
Close
Hashes for cashflower-0.8.2-cp39-cp39-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | dd8b614f7da5c3b5ee593db3e8150d662cdb9a029b265634b61ac8717b5e29cf |
|
| MD5 | 0de35fb2f40217b323575abe33d80d94 |
|
| BLAKE2b-256 | 9b005bf86dce43ef3bb8d1ad9aa87acc0e61ffea823ea82a8d5ffa722da07630 |
Close
Hashes for cashflower-0.8.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 58fbc4e6aeecb4529fa93548762e8835c2e1573b6539975136523ed3f25f6d2c |
|
| MD5 | 4f6666d1a6115f4d3c57a7c66a37629f |
|
| BLAKE2b-256 | 17b6757720bfe69e0ca6a8da507329545017e53ef7159be307784446885defff |
Close
Hashes for cashflower-0.8.2-cp39-cp39-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c5fc57b9c293315052199a7567fe6687775f37312165ab4e1ca3b199e617eba8 |
|
| MD5 | a38789cc8ce1a0b6804a4f9f2939350e |
|
| BLAKE2b-256 | 8d49651323a2d67d3fcbb92b2841edd5cebad9373a1b2c97b784eb3f2d89fcb3 |