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.3.tar.gz
(86.8 kB
view hashes)
Built Distributions
cashflower-0.8.3-cp39-cp39-win32.whl
(110.9 kB
view hashes)
Close
Hashes for cashflower-0.8.3-cp312-cp312-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 3922a44f180267432ba0a6516ef7ac4558296804f9b2b912432bdb06dfdcadad |
|
| MD5 | 35576a243c8a3227b19fa84bc3d043e3 |
|
| BLAKE2b-256 | 537624f63c3ac3a2fc96895a3a6a0c8e1357c276d9e37bb74714a5fb6ac4a39a |
Close
Hashes for cashflower-0.8.3-cp312-cp312-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c8802f56cfce0d6d7db913fe88362678d4a9c1f78f838eb7839619863ff5ce02 |
|
| MD5 | 46be596ad163ffdb0d8277e24cb54224 |
|
| BLAKE2b-256 | 2a5f6106aa1876ad6485542b16c69013a041105376003c73bd5cdc7e53831917 |
Close
Hashes for cashflower-0.8.3-cp312-cp312-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c4c166257ea20def08f93e88bea0caa01114ec351bb7ca91c556d484a6d96b01 |
|
| MD5 | 430e9a7f85a725a6b45f6fbd775d3ca7 |
|
| BLAKE2b-256 | 019bf906c30674fed3973999f9f37f842d4b2b5985ff8a8f667fbdbe9890af2d |
Close
Hashes for cashflower-0.8.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 8b3b1201e9c72c61f322a2a07cfbfa380debe72dfa9e6ca98f3836bd96c0b438 |
|
| MD5 | ddc78910497ef0925e171af2d339b9e7 |
|
| BLAKE2b-256 | 34e3fce3055fd45b7064a290203587522c08cc333e665b2b821d41a47812ad66 |
Close
Hashes for cashflower-0.8.3-cp312-cp312-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 6f434d8726bbf57944fb59865cead962716f1e659137a218cbc190341cce4270 |
|
| MD5 | 38448f51cedec4bba41839840b9c4558 |
|
| BLAKE2b-256 | 2d57604d5ed3fb0447a67c8c3e4d7db01169dc92d7a6001b6a07a5ea878e772f |
Close
Hashes for cashflower-0.8.3-cp311-cp311-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c50b5c5533417058e45cb4d4195773c32e97ae7e3a947d95755546a070ae9abd |
|
| MD5 | 2d3c891c6e0f90304bfcb9e77d9dfd18 |
|
| BLAKE2b-256 | a4205efe8e92446ab4f0875c66e9610f89b04498457c62a8a9c4c67b59dff5ee |
Close
Hashes for cashflower-0.8.3-cp311-cp311-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 333ef2f153483059fe3737b23255cb6e9a9f7c0d3217c4331be6ef2392b04990 |
|
| MD5 | 7ff0a2b8cf95dc7fa6978a76e3ac7ca4 |
|
| BLAKE2b-256 | 99e481831444cd549a9ac6350afdd2aef28e1d677b92b3bd731b74b3e84fad31 |
Close
Hashes for cashflower-0.8.3-cp311-cp311-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 2e120034381b942254f3893e66c231e87b0e001e1d3a103fecc1fd0f7aeaedc6 |
|
| MD5 | d446d4db596a2674ac32cd275f213bfb |
|
| BLAKE2b-256 | a26cff521dc6def6371e1cb89af7dcd5561f93bfd7e889ff3b84db22b3762db5 |
Close
Hashes for cashflower-0.8.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 4e36574cf07fe1eddaaa873a98bd691e08f3a9834c3153c63cd17706fe67b840 |
|
| MD5 | b53ced4d3f73a4d98b3e810e4c227efe |
|
| BLAKE2b-256 | 1c3b6200ead5caf499773021d22d93882468b8dc059a4e6d0ac3f2d02cbec802 |
Close
Hashes for cashflower-0.8.3-cp311-cp311-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 795fe91b6afa58cd95fb4a28d498dc21014bb9d52d07b7940c8bd63ab208ea66 |
|
| MD5 | e7f38369fd4144a330671000cc7afe0d |
|
| BLAKE2b-256 | 9efe8cdda8d500b820c93dfe4f2ba8dc1ca5a1197a6cc64edfb7c25f909d90c5 |
Close
Hashes for cashflower-0.8.3-cp310-cp310-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 7b4f030d3ea9ec7dd189adabcbd19ab5a3547613ef07bb79ea18915d1a7d488a |
|
| MD5 | 065bf98577099d7c398a3a36c4661731 |
|
| BLAKE2b-256 | 3bd20f4c39b8abf38225ca86976f0955f9ecea19d328178e8337a6c154b2f3f1 |
Close
Hashes for cashflower-0.8.3-cp310-cp310-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | cc93a036435850660494677cc25e56e9f63d8ac1cb2da861decd700992742e7c |
|
| MD5 | 8c6a9df771e4d71fab18583f7826a561 |
|
| BLAKE2b-256 | 84627cf71c21489a827cbf57f38b19b69e4197692dfc465709b31fcdb26af29c |
Close
Hashes for cashflower-0.8.3-cp310-cp310-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 4c7449835e7177a8c10b519bb1e7bd11577c7da709361bc94a98b9f379efbe0f |
|
| MD5 | 11298efcb8262c9ab9ad5f8d83ce4769 |
|
| BLAKE2b-256 | dacdaa18b8087e46ee29f32648ffe74408e46f931dbcea24ab48e5412c0afcfd |
Close
Hashes for cashflower-0.8.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 7abd3f5761b0bc8184c1bf93d1f377918e4d8ef7d736600d4292ca3a248707fb |
|
| MD5 | 6fccfd213157d7692d55fbae89457249 |
|
| BLAKE2b-256 | 4313bb7e30350b169c94048ccda60b1d72d9c7199d8c13f847357c7f7b299e64 |
Close
Hashes for cashflower-0.8.3-cp310-cp310-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | f8144f637df485976f1364efb6bccc4c6b6ec57faa9c4ecde175b54a4a945794 |
|
| MD5 | b727d8a91b4352ad9122f232d5408b4d |
|
| BLAKE2b-256 | 2afe60ce8b0ed8f7593de4025b01186ec20bb63d9623a24a30151a3c2796ae86 |
Close
Hashes for cashflower-0.8.3-cp39-cp39-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 98be846465952323c26a91b415f2398a19bcaf9e917563af0d8f2210929666c2 |
|
| MD5 | bed5a96b451f3aa5ecd010da96dc92d8 |
|
| BLAKE2b-256 | 4f692194b4ed1fb5b5e6c83a812f4847d12e59667870c1835ca1954cd2f87f33 |
Close
Hashes for cashflower-0.8.3-cp39-cp39-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | fd40483a44da6d93be760075a948e227fb8719a6b6a7768dbbba804f07cfc0ea |
|
| MD5 | ce606825249290fc96f00d0b6ac8848d |
|
| BLAKE2b-256 | 15a1f2a22617d2180849714ae6c3efb8134c40d0717c181ed4af2a4a248651cf |
Close
Hashes for cashflower-0.8.3-cp39-cp39-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c70cd46f67d076af8a30565e7d59ec2ee3f2e17535e49133b32c89bfa46f6468 |
|
| MD5 | 450b229d6ad459cbd78cbbe84a4643d6 |
|
| BLAKE2b-256 | 23677b85b0389428ec3bc1d4d53b64ebb0a8228d210a90da9e1f9a22211e6362 |
Close
Hashes for cashflower-0.8.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 028ad3b9a2103c79835e2edb46e7162be38de8356041a3adc2ccc5e6c66dfbaf |
|
| MD5 | 9479ef5131f54e41600febaeead29c9e |
|
| BLAKE2b-256 | ae9e255b75af0031673877a5c9e8fd082d5851ee970bd5509f947b366d9d64bd |
Close
Hashes for cashflower-0.8.3-cp39-cp39-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | a0b878a96334620249bf2f8bd730ce01977ff038755ab2722bc5b8c06e83039c |
|
| MD5 | e1042f052390ed23384948389ae61e2c |
|
| BLAKE2b-256 | 18ec98fddd5eb6fa1b0424a6f4eff6443acaf52704b03d081e5f86a2779f01c8 |