Info
Cashflower is an open-source Python framework for actuarial cash flow models.
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
Model
my_model/model.py
from cashflower import variable
@variable()
def survival_probability(t):
mortality_rate = 0.01
if t == 0:
return 1
return survival_probability(t - 1) * (1 - mortality_rate)
Calculate
terminal
python run.py
Contribution
GitHub repository:
https://github.com/acturtle/cashflower
Documentation:
Release files for cashflower 0.10.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cashflower-0.10.8.tar.gz | 109.3 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| cashflower-0.10.8-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
| cashflower-0.10.8-cp311-cp311-win32.whl | CPython 3.11 | CPython 3.11 | Windows x86-32 | Details |
| cashflower-0.10.8-cp311-cp311-musllinux_1_2_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux musl 1.2+ x86-64 | Details |
| cashflower-0.10.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 | Details |
| cashflower-0.10.8-cp311-cp311-macosx_11_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 11.0+ ARM64 | Details |
Total release size:960.4 kB
Release files / cashflower-0.10.8.tar.gz
| Download URL | cashflower-0.10.8.tar.gz |
|---|---|
| Size | 109.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be9c5d167debda2d650f782b2209543d2e14c8776682e348d101d924681a4673
|
|
BLAKE2b-256 checksum How to use checksums |
4314a5067f7d6d3e9af9fb1a2b3841db16659bb845a34cd70abd62948b97504a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / cashflower-0.10.8-cp311-cp311-win_amd64.whl
| Download URL | cashflower-0.10.8-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 135.5 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
411d048c869b52c4b7000a2241a1e32e1cd83a17ea2a9259003c10c39060ffdb
|
|
BLAKE2b-256 checksum How to use checksums |
32f6d5966093138c880e511566f01d0dc30f8ee631e2bf6d12a80af8c8e950bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / cashflower-0.10.8-cp311-cp311-win32.whl
| Download URL | cashflower-0.10.8-cp311-cp311-win32.whl |
|---|---|
| Size | 133.2 kB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
a68ba1b79004a2b7385684117273993ec4c4797a03b764480bd4c789b264b837
|
|
BLAKE2b-256 checksum How to use checksums |
862463efb36c11eee92598436c456c98924fe80f7750a2ec622ec320239cb731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / cashflower-0.10.8-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | cashflower-0.10.8-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 223.9 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
bdadc99be35af3ee4d1b6146a1b5007e8288ee21450f6319930cfa3a74de4515
|
|
BLAKE2b-256 checksum How to use checksums |
51eb932273bb86f512568781de6ddfe290eac9b5848d258c12b701e30db65db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / cashflower-0.10.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cashflower-0.10.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 225.3 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
40caa51af36b3353a1823277ed87bbc20829a84a093cdaf46f2af051524cc4db
|
|
BLAKE2b-256 checksum How to use checksums |
56f1c6d9bb6c425d612be5a5c588e1dc017f7ba9e85bc65bc8317da243a7b7fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / cashflower-0.10.8-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | cashflower-0.10.8-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 133.1 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f36f10a5e0a338431ea1e53034c2a596d422349b5db74630ef67c50b503b94d7
|
|
BLAKE2b-256 checksum How to use checksums |
8a3815e6709bf781f54b0522709d3ad13ea48c01b1368bfb72d12e46b188f62e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|