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.5.tar.gz
(76.6 kB
view hashes)
Built Distributions
cashflower-0.5.5-cp39-cp39-win32.whl
(101.1 kB
view hashes)
Close
Hashes for cashflower-0.5.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4587e320bd8f77520d133f1fddf318c3c7de390a32c842f11354fc6372d8cccb |
|
MD5 | 7109d3a69457a7f262caf3d3f603e4b7 |
|
BLAKE2b-256 | 89a0170fc7f9af56b3e58ce318b0a8696e6bfb356efcb11f2aaa5808172961a6 |
Close
Hashes for cashflower-0.5.5-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08738a2f2a82cedf51f2a626bb4e1e9d9dd295845d0ab96f42f07a71ca507847 |
|
MD5 | 96d04d194b130b9bc649eea9e6367eba |
|
BLAKE2b-256 | d29c7ee4343e1d8e88d4d6a2b47357d595c295332047fd8844ac2def1c90b275 |
Close
Hashes for cashflower-0.5.5-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec821291b484884b69a59b405a4b3a2a19f8034555be2c6f672387d542d912d |
|
MD5 | 3cdc9a731010310455fd4c61da4fb701 |
|
BLAKE2b-256 | 56f84063b2682e8d1930f96acf38d196652232be1d7db1528b3bce82ce8f5378 |
Close
Hashes for cashflower-0.5.5-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 107196f7670b9277e5de653e1f91a246d47245b1561d528b88337ff3c99bad61 |
|
MD5 | 653641eb482ca0a98ed12de69eb76bf6 |
|
BLAKE2b-256 | 9aa8c7a2f3c7456027000523c0fa6a05f6dd401fd915b7c3a559fa3ac41d1103 |
Close
Hashes for cashflower-0.5.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a009ab584a2341ff0a9b7b0df35a49e916bf57ea4c6cc21a7c2eb33be7394c33 |
|
MD5 | 75ba9d1cb1c528d0a3628635f13c29e7 |
|
BLAKE2b-256 | f3e3f494c5bac676d942918978c70662c73bff9e10887dd58bf3c49cff5ce4aa |
Close
Hashes for cashflower-0.5.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f125a809a871f412cc41f03e9925350cf3ebd0340cba113457947f4db2276cee |
|
MD5 | ce9234b9c8e9e0c1e86ff7513a376855 |
|
BLAKE2b-256 | cb9c1b07632cf2f113ebd59219956b16d2db1dd20b3af2546e1fb91ce1bb9425 |
Close
Hashes for cashflower-0.5.5-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3edb4fa6a5799dfc905cfff7537e0dbcbc8e8492ff3df79e87b9076d7d2af5d7 |
|
MD5 | 38cf4ffd1f3fc00471acac1eb57820d5 |
|
BLAKE2b-256 | 3dd6ae096512629218a7ba654fac3ee0f9c9bd71b62e3d3985591faa519273ae |
Close
Hashes for cashflower-0.5.5-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68373ac3290401289a975eb5b1add2e5892924906ecdff24db5041f84cc4f40b |
|
MD5 | 8ef431ed52ef7d4f8fd5e4ed865ffc9c |
|
BLAKE2b-256 | 4b2cfedb77d62f5210cdf3f5e7a78fdd56693ca2f40679f11da8fb1c20871d75 |
Close
Hashes for cashflower-0.5.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de601d13ceb72af12224e5b7f8edd00aa83b799edfa760f463620d4d9633ffeb |
|
MD5 | fc5dbfce3c19d8f61161c29eb2af5037 |
|
BLAKE2b-256 | 0e0228ad32dca14e72459785fac16cfb1e3af62a323a8189b454e80ff66ac349 |
Close
Hashes for cashflower-0.5.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7bd8cca2d9bb0fe7e7ac748bbfd71dd98339731d39c3cbf45c65deee22d0afa |
|
MD5 | 79d0ef0ce4c7f8788677d45e43ea3e87 |
|
BLAKE2b-256 | f9d659927092cf93bbaf208f22d8617b326190d744412dd3ac8ef7c9ce986265 |
Close
Hashes for cashflower-0.5.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e5e277f6a957fe9fac8259ad1ec564146ce1dc5c888e4430eea5cd860109bd |
|
MD5 | dce1a737c60372c9dcddee0b2120c28e |
|
BLAKE2b-256 | 9149a1f41b1360c24b8b6a20309a98437becf87411af3349356a9e77be4a9df9 |
Close
Hashes for cashflower-0.5.5-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 563cf36abfbf791fbc58ce80733857314047322949f3dc4aafb02d74042ac42c |
|
MD5 | 38a26f5924991c3dc6e60cba70f6cbda |
|
BLAKE2b-256 | 7782dd9c1f75ca9ad96ecb3e1ca44c4d78352a186a86f78c0e8ee8d5b5cd4380 |
Close
Hashes for cashflower-0.5.5-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1e13d9db18dba4ed3f52b24a607012b5ce14ee643c56d6065d92e5819e4cce |
|
MD5 | bf424656177e16e5ec3cd422f93aa46d |
|
BLAKE2b-256 | fddf9ac719f1209180534a02c1ca81f9bd37159d27afe569b5ac00057e459ea8 |
Close
Hashes for cashflower-0.5.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49c253f05ca3b96091f4d8ea9dfff2ed11787e6538e7074345d84e5d5ef2bc2 |
|
MD5 | 357e747299cd10af75330f8d56d95478 |
|
BLAKE2b-256 | f231e8291e5cdc021fa136d048b6c469a61459919bd7cfb0a5f358321d8813f0 |
Close
Hashes for cashflower-0.5.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cea73cabd6302fb087ea13077a59779bbd8d7d3ccb2ca82fd09810555b22022 |
|
MD5 | 05ee3d40d77fa88038f6168b938bc6c4 |
|
BLAKE2b-256 | 4347a3a69742fe64a619d01850c529b78bccdd51447fa4b27307282f2182edf5 |
Close
Hashes for cashflower-0.5.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef41a3e1768882e0dace70939e76e73cde7ebc22f1d5f934d1c1414ca6a17cc5 |
|
MD5 | 0302397530d8a4545658275875943f81 |
|
BLAKE2b-256 | a9a7ee449ef1e5aa466387c0260dcfdc968f93d72a00fd2607ee7b00b5d5cef4 |
Close
Hashes for cashflower-0.5.5-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0491e585a4ea5aabb923ca2636620a11ab04ae501b29c1ed98143522fe1d3f1 |
|
MD5 | c359286db9141b56ca9577d2bdeddd5b |
|
BLAKE2b-256 | 6ffcaa74740b98fa1d55acd4e7cb3b8375950fb63501112510e350044f89f06d |
Close
Hashes for cashflower-0.5.5-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295a4f47a8c130184fff1a13a1104bbfd1f5efcecf27b86fc03fa9862a186e8a |
|
MD5 | 64a2e96ae057db9b3373989496bebc0f |
|
BLAKE2b-256 | 5607626c673a3d763fdbe564c0af340372ebef2ff129af96f942c6a5a2becb9c |
Close
Hashes for cashflower-0.5.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98996c5528fc055fd72c14bb119aa98c32251d5a06b730c67033b9531f8b0233 |
|
MD5 | 9d644d62e6f820ed69ba7d92ae82e12c |
|
BLAKE2b-256 | a2b2cb3c751fec01f0c97c11fb13294d251f915be3fce4d0cf3bba9b9f48c182 |
Close
Hashes for cashflower-0.5.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e955dca26bb4118b03a3590579e7066eb7f677d05124beca492d4893dde9f19 |
|
MD5 | 2328b686628c33d871f9612fb3525623 |
|
BLAKE2b-256 | d405533aed57413f955e9fc3f100c4fcb5e0ffb364882c68a007e669ae0a30bf |