Skip to main content

Framework for actuarial cash flow models

Project description

PyPI Latest Release pytest Documentation Status

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:

https://cashflower.acturtle.com

Project details


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.10.6.tar.gz (100.2 kB view details)

Uploaded Source

Built Distributions

cashflower-0.10.6-cp313-cp313-win_amd64.whl (128.2 kB view details)

Uploaded CPython 3.13Windows x86-64

cashflower-0.10.6-cp313-cp313-win32.whl (125.0 kB view details)

Uploaded CPython 3.13Windows x86

cashflower-0.10.6-cp313-cp313-musllinux_1_2_x86_64.whl (213.1 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

cashflower-0.10.6-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (212.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

cashflower-0.10.6-cp313-cp313-macosx_11_0_arm64.whl (124.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cashflower-0.10.6-cp313-cp313-macosx_10_13_x86_64.whl (124.2 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

cashflower-0.10.6-cp312-cp312-win_amd64.whl (128.8 kB view details)

Uploaded CPython 3.12Windows x86-64

cashflower-0.10.6-cp312-cp312-win32.whl (125.5 kB view details)

Uploaded CPython 3.12Windows x86

cashflower-0.10.6-cp312-cp312-musllinux_1_2_x86_64.whl (217.8 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

cashflower-0.10.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (217.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

cashflower-0.10.6-cp312-cp312-macosx_11_0_arm64.whl (124.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cashflower-0.10.6-cp312-cp312-macosx_10_13_x86_64.whl (124.9 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

cashflower-0.10.6-cp311-cp311-win_amd64.whl (128.4 kB view details)

Uploaded CPython 3.11Windows x86-64

cashflower-0.10.6-cp311-cp311-win32.whl (125.1 kB view details)

Uploaded CPython 3.11Windows x86

cashflower-0.10.6-cp311-cp311-musllinux_1_2_x86_64.whl (211.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

cashflower-0.10.6-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (211.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

cashflower-0.10.6-cp311-cp311-macosx_11_0_arm64.whl (124.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

cashflower-0.10.6-cp311-cp311-macosx_10_9_x86_64.whl (125.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file cashflower-0.10.6.tar.gz.

File metadata

  • Download URL: cashflower-0.10.6.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cashflower-0.10.6.tar.gz
Algorithm Hash digest
SHA256 db7da287d20213b771d724028473f0614df1b4798aaca649e37df1798c223a47
MD5 c3634122d6a80034aec02a722c9905b0
BLAKE2b-256 2d99c8f1bab9bf6023f39c0739b97fc493bbf01f30a4cfabd1971eb0f8b670f5

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e05fd49635409888312dccc19b8e9d6a4b9dea693881c7d007efd7305f5908d9
MD5 674767993a15934a4e12cdd5c92d7da6
BLAKE2b-256 2e805b076370d200d9b6c24e7bb20ad436acb0106b111e226f95875accf63183

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp313-cp313-win32.whl.

File metadata

  • Download URL: cashflower-0.10.6-cp313-cp313-win32.whl
  • Upload date:
  • Size: 125.0 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cashflower-0.10.6-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 7c7cc1a7134b48ecb1b223169d0fbcab9b0ac9305c31f345c56e8adf374b8b24
MD5 fd649bf964adfcc01d25b1b67aeef237
BLAKE2b-256 45d0ff659fededb30b1fa576c3c6a975d334ae25c0c2bcacacb6e613ebd960e3

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c392c1883323b05b63debfd06b623ee8adc3cd58cd7e0b516a88bc2f7b76246c
MD5 d460b0b3e184deed90bd3d5ebce73530
BLAKE2b-256 3602e818aff56131c1088f674132a3e2a17572ee0fd2ee60dcbe473d785d9f7a

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee30f8e6f39c6d4d7c0be9345e3e2ab1ec6dcec2fea2e0e52f826699620764ca
MD5 f594cc58efd53f4b910e7bcda866e020
BLAKE2b-256 0ac0b4e194348244d7ad9f58ed388210b5bcb2622842342b89083337c9d17784

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f27aed102ba7754871bca78678805967dbf4b0c0c32e3e7a561183afbf65bbcb
MD5 d4c1a9e2d9a54726a20429fb3de522d3
BLAKE2b-256 7e6d8308331dd4a9f889b49fb97f7b82e7dba309a58d9b0d9fc8fa7bd83a2ff6

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 98a30b92566835ccb21abaec4bc6af6adf5a288f6988faf019ab62b255646628
MD5 f5ca2f72f965748f20f87ae8b321b7b4
BLAKE2b-256 5df4f9cca81b577e776224587570c08ba6d05e48fe432becbbcfab40f91e773c

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 30a704d22039fc8d1fdbc4aa24a1abea13885d53ca3deb056d1db7fe857b8533
MD5 73b92ea167ae04da57c15a776b42cd21
BLAKE2b-256 704709220a595b4a686e93f8e37a52d96525eb8c142259ee58d6c8fde0ac6bcc

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp312-cp312-win32.whl.

File metadata

  • Download URL: cashflower-0.10.6-cp312-cp312-win32.whl
  • Upload date:
  • Size: 125.5 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cashflower-0.10.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 00874731084d00fcb587fa2708de8e0cea9b120f1ad221c8fc6dde3eb6ac7022
MD5 5598760a3d86d8f718de1fff16d10ed7
BLAKE2b-256 8c825ff4db67dfe3f3d0b2a3d98ebb519ac32b2bf77f87d852a9a93cd3a0e2c6

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 90201be5140871145cebab9ce92c4ec5ecfb1db74d366650ee58770f797d3e9e
MD5 fa19fa912b469aa336118aa2b0278793
BLAKE2b-256 8d297aca19e8b800c3b5c7c8434516049fad20d083be4c17acf7edc909ec6371

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 092967cec07989b5535b64b63d95450a9704733f9be6d6a1e1ce8b285b7de334
MD5 b8cb37e4c539b31ebcfe5f57bb62140c
BLAKE2b-256 95e48cabdc2b45244dbf92c8b8b5044f4e39dd54e5704f74b3ff14cb4fdce0a7

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b686a838501e2af71609ec4d8cdbae704f6a535e676846ce9361b41384e494e5
MD5 4d74141637c479189f388efcf48d352d
BLAKE2b-256 be4aad6be120bb964a1ae565dd859b5e7f5bbc22454ecaf795be50db207ac8d7

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0d54cf5e9493104be9212bba0411b0b0b2b19a573cad19980009012c23f3c642
MD5 41621f350516a075dc33bb280f3f1418
BLAKE2b-256 9712d3b152e5ca41fbcc7b5d962840e465029a019723e6a2ef4a18190cef8465

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c08ae9c4c1d2c238eae60afd07af3fdce097bef97d3d9bb5766972f1d6fe219b
MD5 77d0c7f1d24f07a5545d93afe844ba6d
BLAKE2b-256 7295d7fe5e91280f3d60012e0b6338f5c680545632c34d2b1a95451e63666d27

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp311-cp311-win32.whl.

File metadata

  • Download URL: cashflower-0.10.6-cp311-cp311-win32.whl
  • Upload date:
  • Size: 125.1 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cashflower-0.10.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f1e08c428bbe44954e8f5e9d36179bfc29b3c0cdfa7a99f3a98ddf52e3d5ccff
MD5 31623f50e181031ac4a117fe269e51b4
BLAKE2b-256 e57efd4581b53f058ea856926158fb9d6fd216ba20dcc06ca258390ae733b72c

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 480298694f12c4aadb48ab11f30efbb3a12fcb947bf72c67c67e581b1c6f13dd
MD5 d8f54b8a1e0c726babbaf513655380ad
BLAKE2b-256 024afb61b915d61cf45b7d0f03d37fd93cbeaecf4079f60681d73fdf6ad7ee8d

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 127abd8b0c40ab25e3a89af55740eacb19d58d048cbe4a273a08f9e22a09ff0c
MD5 f50ccbd8809868b17bf76631d0b29fc5
BLAKE2b-256 ee16182fda9e5f8d3546478b7033f33d21b81df9d206a17e9069b5150d813725

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 baa13165c1c3389f2c757702902170040471cd10d79c56054304c09db4103a12
MD5 ba05002d00f5df9c5835f6e3b60ba2c3
BLAKE2b-256 529a594ab4ce5ac23ce06b42eb938b9d4e26f4e806683e17a9f6a0381bc2cb0a

See more details on using hashes here.

File details

Details for the file cashflower-0.10.6-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cashflower-0.10.6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 35b737bf7cdd72d4730c598052e6c0b5bdebcd2d90dfbe8c995445d967682a3c
MD5 bdd50c9c841d2b8bbf8bb97f748bc8b5
BLAKE2b-256 3b70286e2816de5af3b233ecf73b86a4d1974523d5c9d74e72cd4d4ce706d439

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page