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.5.7.tar.gz
(77.7 kB
view hashes)
Built Distributions
cashflower-0.5.7-cp39-cp39-win32.whl
(102.1 kB
view hashes)
Close
Hashes for cashflower-0.5.7-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7118fe35f9bd45d5a373b711363ebb78de382746fb6d84fa8762e1932718876b |
|
MD5 | b2c4a9b5cbb978bef8b1ec7c4cd4b2e2 |
|
BLAKE2b-256 | 3d5e893e7bcb1f657716e49c2a97d47a32f17977d434be7f3c0e9299ccb0e869 |
Close
Hashes for cashflower-0.5.7-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 058d3acc85f1d1d1c5fbde57f12dc63fcd4d41e1f68dfd304606358457f7a6f8 |
|
MD5 | 12426045c8e9500aa72d067bdd13c875 |
|
BLAKE2b-256 | 270b0bd8e501c1ba0d4d56306c6967cd033864936835afeb59b637ef7045789e |
Close
Hashes for cashflower-0.5.7-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aafd841ae0771dca5d1fe9d34f4be0f004fe71e677af9b27add8047f3a8d101 |
|
MD5 | 3172b743f669e507d550d1b3b77dadde |
|
BLAKE2b-256 | 6055f3fc4c60b80a8daf99ed6619258193a44f381551e48dafc8baf6d50f29c9 |
Close
Hashes for cashflower-0.5.7-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e350a83930556cff400189184978543eb41ef54b96e4f92670a4bb055fee00d2 |
|
MD5 | 0679a06aebd79e4af03fa1e7b76f6a04 |
|
BLAKE2b-256 | 254c059e83757d18956d4bb512f53a2fb34d50e599c079f3d4a27980640a54b0 |
Close
Hashes for cashflower-0.5.7-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1d0574f50f4771a0772cb4a54ee5de319e3e2b1c7406192b47032c6cc52e1f |
|
MD5 | 9fab420854cfd634cd208c6e0a631259 |
|
BLAKE2b-256 | cc760e89cb59d5a6958a73e06d3f3a3f0703458ee9466b3766dd88f90828e27a |
Close
Hashes for cashflower-0.5.7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27554e9873bb1b5bb33f55ad19bc7191382b8c3f4c3793d022381252f2e224d1 |
|
MD5 | 64497f11c2b399179d01211446e12315 |
|
BLAKE2b-256 | 9f43061e0a4500d9afa161fbe7534998e965605b7d89fe457ea9ffc6e47b2ca9 |
Close
Hashes for cashflower-0.5.7-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc87cbdd5acf2260a909c9d5f33cf720e4938b7cf3092ffc22f64c2f0b86ac1d |
|
MD5 | 69e11bbe6bc7c7cea147afd9452a867e |
|
BLAKE2b-256 | c556d9a397f1e1c776d0f5ff0d09cdbf4a2fc4eca1c3ccc3974328f7f0d8bf46 |
Close
Hashes for cashflower-0.5.7-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3ec23384e42e227cd86cb1ee458219a72ba6ece4ad422ef586d09ac6060ee3a |
|
MD5 | a2a55cdfe9bb4477786e42f67c4b2e13 |
|
BLAKE2b-256 | 6eb2023969bbf0b31c228f03820d905c2c51eb61aab3cdd202c6657351a2bf5f |
Close
Hashes for cashflower-0.5.7-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae61ed8b0ba8b5a1341a32b807a8ef35ad67ad3ff85a0395877e781078b53bed |
|
MD5 | 7a032f84877ad1fcb0c7f73d5efe71c4 |
|
BLAKE2b-256 | ace4534998031da37427c1c7ad0837f4ac60c437eec144247e98a521a90c2c15 |
Close
Hashes for cashflower-0.5.7-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0542232a1bcb2432287b539bfa7edc5fc8fcc250640ada6f1d5f03e42c715074 |
|
MD5 | 554b24363ccd38de805ca8eb0a79dcbc |
|
BLAKE2b-256 | 079e2be3e2e97c85ae83310d2ba4d84778389b225d568788e96f7cbea4402427 |
Close
Hashes for cashflower-0.5.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8283c06734e965ad127842299587b37cd0a384c2bdfc4df109db09245dfbc126 |
|
MD5 | 06116d714502675f533704c68bc82864 |
|
BLAKE2b-256 | 3415e6fc4100b77949d480a76812baf3e21b859a03b51faa419902e5bc2b8856 |
Close
Hashes for cashflower-0.5.7-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a1e7483d1c791fc1faff666845e231a333c8921cebd1769ccbdafe1dadc71f4 |
|
MD5 | 9290dba2ad95f10e2b5076080114b69c |
|
BLAKE2b-256 | 4b5ce76cb552f3e5a8d8f5089a9f6f0500cd14139a018f821bb3076e8e953e8f |
Close
Hashes for cashflower-0.5.7-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1e5ec3fdd7b916184acf062ab1433545617ea29ca7f30800b174d47f459923 |
|
MD5 | b386cf31e781b357e25ac11e00753fc2 |
|
BLAKE2b-256 | 055d50a13776d18822ff264d091f0c9398033394cd370da16674fbd1d3eb6a69 |
Close
Hashes for cashflower-0.5.7-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7e618a09bdf91db6eb0d378c6c37d30eabf19117faa65f6e20894464481d905 |
|
MD5 | 7a613fb01562803cd2790ad8dc177383 |
|
BLAKE2b-256 | 2dc3d81a07a7ce4beb87c037a62fd4d7c3d5570c0f82dbe09ec125852eef26e2 |
Close
Hashes for cashflower-0.5.7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53098706b046005f3a9cb904e9226c3f8fd1cd00883e507820deb91d29ef1270 |
|
MD5 | 4c1cf1c679ee0a1e86b595dddd53f56a |
|
BLAKE2b-256 | 077650812db84dbfe50922f4d3aff105d7ca53e394b144d36be0d162cd8fad07 |
Close
Hashes for cashflower-0.5.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78ef22c92f8dc39b23d9e67fd7fe2d0808f610c95b160aa3205dc154b8b9175 |
|
MD5 | 6deda64fffed035d5975b224809b2214 |
|
BLAKE2b-256 | f61558c917a702658fbcbbea6bcff8897628ab4094e385436615fc553bee1721 |
Close
Hashes for cashflower-0.5.7-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a903baedb5ffa123b3d186870f69fed79892d8d228703c37235af2f6081f522 |
|
MD5 | 892a8cbece58ea9e014fba69d102f5d5 |
|
BLAKE2b-256 | 958e41446305dc40b833162df88f8cd280c7d589e30198a53d04b689834b5b11 |
Close
Hashes for cashflower-0.5.7-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e107b952e3832788860bcee27afb3bcac2b50f5984048d7963d1af4cf9784df2 |
|
MD5 | a625a3d0c393a890c1258dead71abdc7 |
|
BLAKE2b-256 | cc4509c44c170e9dea44958ec30e5846da0be895ab4c0f60f37a699cf97da003 |
Close
Hashes for cashflower-0.5.7-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7a650cdd6ed8f847b036380dffdaeff605df845a752b387491789d5c3913d77 |
|
MD5 | 9de4173540c71ebc84f47a0afa45a430 |
|
BLAKE2b-256 | 524419254ebc044d08c2dbc6a4d639547f9e94668accb8d86f9c6a5153e098ed |
Close
Hashes for cashflower-0.5.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48476c88188fabedc5c21f35adbe6bd06fb64bb0077033f1fbfc1104fc8f2759 |
|
MD5 | cfd74b07073230d7e6308221a0c7dee6 |
|
BLAKE2b-256 | d7c3dba3f65a0d750ce07d2154a17beff6106e9e6062a561f787c51ee4ca249c |