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.2.tar.gz
(79.5 kB
view hashes)
Built Distributions
cashflower-0.6.2-cp39-cp39-win32.whl
(104.2 kB
view hashes)
Close
Hashes for cashflower-0.6.2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52bc8716bee9f276468b03aa1987531120a217ab8663248922b10f5c578f906b |
|
MD5 | 90c365699065de13463255637a3ccb43 |
|
BLAKE2b-256 | 9e04334f9dc0d0b2315ab360d62f99bc94e556577a2e55eb66043c7159d9833f |
Close
Hashes for cashflower-0.6.2-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f3182189aaae504dada2d027984f1f13c43ffbcae1a9cb732ea3cef438a29b7 |
|
MD5 | cead2d242cc3beba35a059ad307c8676 |
|
BLAKE2b-256 | be375c0ccd57428f744f8b1a70340ef8f95300e539358c558bc413143164106c |
Close
Hashes for cashflower-0.6.2-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 959114bf85ac1d72f6a66daa09772257baa69253d18292bc1c91e5bbbb113f01 |
|
MD5 | cb8f82d48085797d52cb9321fe594605 |
|
BLAKE2b-256 | f4697a7c7e55624fed7e1ec53675ee54ba5e9ac638986537523fa1fb5ea41491 |
Close
Hashes for cashflower-0.6.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db12e94bc3d270244bb6a80addfbb33c4fee2fc4aa2a898190e075913c0775da |
|
MD5 | 3f56eb365825979794ea906f4a54e0ea |
|
BLAKE2b-256 | 177446983c0531fd59b12bf24c7da24228a7abd3f32fe71e0df067378faaf579 |
Close
Hashes for cashflower-0.6.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66a9aecd8bea860dee1a5ac06dacb2f334cecd2879f7379d6ba312a92e9d2a7 |
|
MD5 | 7baca5dbc9f95cf95b35819a2d3b727b |
|
BLAKE2b-256 | d6420cb3aeb5be77d39936ec6e268c7e34a11f33b1761a8f4b3274333eabd7f4 |
Close
Hashes for cashflower-0.6.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fb509f3a07ecc8be8e41a6ab218731625e5a4e8e27e50e99df1a9efc369250 |
|
MD5 | e889aab1e3aa80ddfe59a54113153648 |
|
BLAKE2b-256 | cd5715909137808fc9f8f3ef4b77dc4c320e146a804a263d9c1171c68a556464 |
Close
Hashes for cashflower-0.6.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e303d49d2aff1754fcacb7e699d19f821b66c1817e84f42fb867d86bdc3ea7e |
|
MD5 | 7df60e5ab9bb81a9b8e4dd67eb8dfb53 |
|
BLAKE2b-256 | 1f17ce2a11784b535e9a673e8f12784c43513f6c3bf3bfe0a84f51d49361dc46 |
Close
Hashes for cashflower-0.6.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fbebd7734b1a50a5e56c5d1e2594ff2222f847aab053874144abbab92d7aa9 |
|
MD5 | 5e4548c6a8bcc63f3f4b8517ea9de31a |
|
BLAKE2b-256 | 05a32131bd5d47bac9bef32737eae8843cda8af38576b20843ed4ee6e1e1e884 |
Close
Hashes for cashflower-0.6.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6700c48e6f68d1481df9f01165b33c5abbae2b6b70bb41eeb22a748ccfaf63 |
|
MD5 | e93be6092019218635ba2a7ec086208a |
|
BLAKE2b-256 | 882ebac0bb12c9f8ab5363921c2c2a5b60692fde77dd36251c13f75af73bdb55 |
Close
Hashes for cashflower-0.6.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0036ff596abc86164e94c5aab1a5c4d433062d054e7c265e7e6fc163b63c55f1 |
|
MD5 | 45cede4fec36c3a61660e6fe009c9f7f |
|
BLAKE2b-256 | efc4db09c6922951f8f2214f1b6d99231f3555707ce1b18802597f824128ab3f |
Close
Hashes for cashflower-0.6.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68cf25c62f97ba5908fff6537d8ae26d4a0bd3c6f817a0683f60febd68b3a32 |
|
MD5 | 5244eef360d1b53109b2c9901d176daa |
|
BLAKE2b-256 | 7566fba695033e2eab2c4ac7f4d66b0e9e2454177b869225ea0c371d5ba74627 |
Close
Hashes for cashflower-0.6.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc98fd1706ced0143c828056faab7cbb2adfaab5c3f49ef46710fc1326e1b70 |
|
MD5 | 400ea27edbe038e7f390748582f172e0 |
|
BLAKE2b-256 | f4409c61e30e84e907679e22d08132f47f77131946a91d49ca6e1daf233b2082 |
Close
Hashes for cashflower-0.6.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0e6eee0632500840d1b154b365fe0f9b5eec9fa59481b8d3814e507653e488 |
|
MD5 | ec698c1e65c74e49993741a8cf3ca6df |
|
BLAKE2b-256 | 4a81c523d2eb5e7f24c61f4c6e7ea5e317b2a495dce01c8c3ced20624111f60a |
Close
Hashes for cashflower-0.6.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6628d4fae7b56907c9b242eedfbbbae1f5b7c285c7940ab19e90f26612a00e29 |
|
MD5 | 81c39a10f6807f5b9fa439cf3a24fd64 |
|
BLAKE2b-256 | 3a4783b128045f0193c1074f1fbc7d5c6f1c85cd1fd70d25b47769b83f9c353d |
Close
Hashes for cashflower-0.6.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d49d90d2883a94933c61ebb94a7b3e4d1615b692c758646ff6268edeef94ce |
|
MD5 | 3e0e12faa18a2088a001bce124365b3c |
|
BLAKE2b-256 | b655b477f3a60ef7a6f8419da717960a8f4344bf27f6466cfc8cf9206f9815f8 |
Close
Hashes for cashflower-0.6.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab97db7dd606de27cb126f9d09549c01713f15f267cba8a64c009fca884fda6a |
|
MD5 | 139b0442624d50310a1ac75cf32edf0b |
|
BLAKE2b-256 | 4a97c7742278d5e319a7cf274b3f267fa127deaec301ea1f8ac9a64876c1867e |
Close
Hashes for cashflower-0.6.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f56bfe8e626949dc146c1dfb65538417d014d1119e52ac932ea73fc56e0435 |
|
MD5 | e04aa2ac360c2029812e798f59934fdc |
|
BLAKE2b-256 | 008aaffc23157775ff1de69293d8e21e5c45935cc7d88fdd2002e01cf9ac0987 |
Close
Hashes for cashflower-0.6.2-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3e9df31c05537e1c0743f9dc0b40229090ad97b78fa291142bf2b86450519d |
|
MD5 | 3aa345686cf1da091fd92d0d97967516 |
|
BLAKE2b-256 | 9605b9b235820500801bf9baecd4079a12799910947dd876f600f506c33014fb |
Close
Hashes for cashflower-0.6.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a8316958961ec629ae6f3d65d856d76f09cc902536a4381688f8639e260dcc6 |
|
MD5 | b7e99b9394b84c32b29bced6da38992c |
|
BLAKE2b-256 | 92c4ebabe4507691400bb41b179fe43b587996e5d36a87d3b0db41bf8d8630a0 |
Close
Hashes for cashflower-0.6.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915973ce20bc86f7aa69b1ab29935ec187ca63183f6930e17f2fd0f429309272 |
|
MD5 | 2d821a006aca726088e997f9f6e125da |
|
BLAKE2b-256 | 0e27616a2d57a449698234a6e501f85cb8394b841784a90d6648bcef52cab7c0 |