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.7.1.tar.gz
(83.6 kB
view hashes)
Built Distributions
cashflower-0.7.1-cp39-cp39-win32.whl
(108.5 kB
view hashes)
Close
Hashes for cashflower-0.7.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 948e5f33448dbdb9f59036b09d274f406078e5178364100b65bf5d086ec2e0f2 |
|
MD5 | a986b763e70e86f99b6905c4a11f8642 |
|
BLAKE2b-256 | 6759767649267783cd659e41c6d0338f9af475c5c40380058b35a4765e6b9a3e |
Close
Hashes for cashflower-0.7.1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a5e002437a9c6303e71890c47d1aca6b954c1f100955cf707716f58e44ad00 |
|
MD5 | 1517d307aefb7f9e481ca8a0f69f4c20 |
|
BLAKE2b-256 | ff7f9e84e2d26b780480eb454004774f1bcca92d4690e1569375085bc3d9b165 |
Close
Hashes for cashflower-0.7.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ccb1c46f3ecf21c8125bb0b68a35373e703a89fcfd006a17219374cda06952b |
|
MD5 | 3e6e696437a051eb27de2e2438e32b33 |
|
BLAKE2b-256 | 82fb43c37a522c9e2688354896a7d67104bc0ccf566dbfe75e0957e59db83169 |
Close
Hashes for cashflower-0.7.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212a69c545c7a32205a1deafe5066639280c715a8e722e8131ea13f8343daace |
|
MD5 | 33f963e9291befec258b6de4b71cbc01 |
|
BLAKE2b-256 | acef339e148e6ee9b66fb0cf929068ac89b9e6dfbb80fb6345a1160619f36cec |
Close
Hashes for cashflower-0.7.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be902826cdba88ffa35c514a65af3801f4d639d81b882f842e01fa15ebcb3987 |
|
MD5 | cc939d9fb0a618ac79dd6f268aa86473 |
|
BLAKE2b-256 | 748cccd03f0f0bcc169cddb716e55a7299b025ef4bdf0b470843188cbf01f902 |
Close
Hashes for cashflower-0.7.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66e3709d2a070f120c903a965778c274a92b8039dfabc8518ecda284d78dec1 |
|
MD5 | f5456f1e0e242ba8f0cbc521cea282cd |
|
BLAKE2b-256 | 7ebe193e0499613f048ab1d398e0ae80aa7e650a3e8da6965574f1c1f9553a81 |
Close
Hashes for cashflower-0.7.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7780b09204b03062592c306c9493568a3a18c4f91d05318c8507f2a87a8ab3a3 |
|
MD5 | 0c679bd2a343e1eed9b163402651d0d0 |
|
BLAKE2b-256 | 9dd971790925d318e09105d84a5c5aa362bfbc48f01d794686c7a693b6ab3487 |
Close
Hashes for cashflower-0.7.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2701fcf1f19efd3aae0770debefadd576a61813602321e19e44aca9678ae8eef |
|
MD5 | 54edfd57428ebd98d0a0b061986da609 |
|
BLAKE2b-256 | be4f89cdd4b8930750738c4e2591acd961335a5491758d3b577e2c1e4838ddd7 |
Close
Hashes for cashflower-0.7.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdfff026f91a224c766ffd8c193a1234226dbba0e6ee170b526d5cf0dc554967 |
|
MD5 | 796aca87c10b6c31f5b50fa5cebb17be |
|
BLAKE2b-256 | e869102bb8deae2f290276b54fec8b3c3243ac3bdacf0fbfb6579b5f62e5a809 |
Close
Hashes for cashflower-0.7.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6eb68e74dc4880a520e9ce5f06d8d9f8f111635c6870373dc3dc9719cb63a47 |
|
MD5 | b4c3a6174621a18654829fbd8b9427e7 |
|
BLAKE2b-256 | 3f12902b87df173ecf1eec3e1632a89866d0a40b8522600ff5541c53d013b034 |
Close
Hashes for cashflower-0.7.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68e078d6787318c50ea7aaab73cdb70d797f40de000f4dfa301d6e09dc31f74f |
|
MD5 | 113e90d42f69233aebb211c5970ef345 |
|
BLAKE2b-256 | 8e40275c385734c5caac2c43b07f963439525361cda9af990c27745b60d355f8 |
Close
Hashes for cashflower-0.7.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95f9bec239946466825f759ba0b89d7891e5676132a96621b0a0c481b20c7681 |
|
MD5 | 641d0c98dfbb07a8197a3e72b7e78449 |
|
BLAKE2b-256 | 2c4701c11193a23bc2d4dae7aa5328bd25a27869a07bbe06f1cfcff4e736fc04 |
Close
Hashes for cashflower-0.7.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2fddc7e9a2630675f0efb8c895d0be6b8943518cd64871d29f84817f0280b81 |
|
MD5 | 98ea665aacc3eb63bc52c5ed5e5d9556 |
|
BLAKE2b-256 | 243bb8392521f79242e6971159a04a7e030966649a76829889d31ded3670b852 |
Close
Hashes for cashflower-0.7.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9cc921a427ec7133bf2791e1e539dfabf9142b443f7a4cae4c4b6a1f6e8abae |
|
MD5 | 7f1f1cf6adb95291873387d4bfdd5013 |
|
BLAKE2b-256 | 411a3e3d09f4e5aefc6083cb44324adc8492155ee8822556f8a6c4809600c2d1 |
Close
Hashes for cashflower-0.7.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c287bb222c136bbdd61265188380bbf87a16176fd27cef0915db6c137b922b5 |
|
MD5 | f36801ede4204905346683f45354c09d |
|
BLAKE2b-256 | 8e8b5898c589d1eb3d2e9e9f2c79bee7a9257df7e3f1f6a5fc17f1cd821c539e |
Close
Hashes for cashflower-0.7.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555058671b09052e0ec8c48c7ce6d89fb8aad806ff77a8a59fb98e989095ec22 |
|
MD5 | 311147cebf894d3f36167ceb8e17d572 |
|
BLAKE2b-256 | 7fbe0ea69475ca46f9a983b04eeef65929db9a007d353119fb2615383be7b49e |
Close
Hashes for cashflower-0.7.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecaaa719146e9f74942503347f780dcb3978ee228052be2d8bdfb34e433770f0 |
|
MD5 | fe843024ac222e19d3a6b84b94de5bcb |
|
BLAKE2b-256 | d455b66f0ad4d1f037c92bd88a6945c364989401758947dc4f72ca2fcdcddfba |
Close
Hashes for cashflower-0.7.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f9dd69edf17f9866e2e9fa71b04476b233ed34ba38491d3cdd5fe7a95b539c |
|
MD5 | b2aee4e934e0b09ddcb5802345c3ea26 |
|
BLAKE2b-256 | 4c51f2320795f4c5982b63cfc335903ee42f05847e61d5c7f4544e71b7474822 |
Close
Hashes for cashflower-0.7.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fae3aa8e8936a108c96a89af3c2a39b63671dd4bd3b887838a5ba807f6c58b |
|
MD5 | 767cee5db57c1ce818b17bb5d3135af7 |
|
BLAKE2b-256 | cf58574c1bb92b2a7708d6ad2bb748ffa2e83ccf9d8ef10e5a7dad6e7e33d47c |
Close
Hashes for cashflower-0.7.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7967a0f2ea5f3a5a73812ca58e98a9c7e7dea92b59dd7a4e1c03d069535bd38d |
|
MD5 | 36c1949ab80abe5b2f37ac989ff710c0 |
|
BLAKE2b-256 | aae07b6f224905c27f14e5edc18ee4c0bf2f6a2c81eb63aacefdf4f302796b9a |