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

Uploaded Source

Built Distributions

cashflower-0.10.4-cp313-cp313-win_amd64.whl (115.0 kB view details)

Uploaded CPython 3.13Windows x86-64

cashflower-0.10.4-cp313-cp313-win32.whl (112.2 kB view details)

Uploaded CPython 3.13Windows x86

cashflower-0.10.4-cp313-cp313-musllinux_1_2_x86_64.whl (199.1 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

cashflower-0.10.4-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (197.3 kB view details)

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

cashflower-0.10.4-cp313-cp313-macosx_11_0_arm64.whl (111.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cashflower-0.10.4-cp313-cp313-macosx_10_13_x86_64.whl (111.9 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

cashflower-0.10.4-cp312-cp312-win_amd64.whl (115.7 kB view details)

Uploaded CPython 3.12Windows x86-64

cashflower-0.10.4-cp312-cp312-win32.whl (112.6 kB view details)

Uploaded CPython 3.12Windows x86

cashflower-0.10.4-cp312-cp312-musllinux_1_2_x86_64.whl (205.8 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

cashflower-0.10.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (205.2 kB view details)

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

cashflower-0.10.4-cp312-cp312-macosx_11_0_arm64.whl (112.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cashflower-0.10.4-cp312-cp312-macosx_10_13_x86_64.whl (112.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

cashflower-0.10.4-cp311-cp311-win_amd64.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86-64

cashflower-0.10.4-cp311-cp311-win32.whl (112.4 kB view details)

Uploaded CPython 3.11Windows x86

cashflower-0.10.4-cp311-cp311-musllinux_1_2_x86_64.whl (199.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

cashflower-0.10.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199.9 kB view details)

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

cashflower-0.10.4-cp311-cp311-macosx_11_0_arm64.whl (112.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

cashflower-0.10.4-cp311-cp311-macosx_10_9_x86_64.whl (112.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: cashflower-0.10.4.tar.gz
  • Upload date:
  • Size: 88.0 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.4.tar.gz
Algorithm Hash digest
SHA256 ac7a690009b061a07ac7166d08635c650ecd5a5e0e823c1d81f703f56c6c61dc
MD5 0e373629dbaa63b2702b82a1d85e1a49
BLAKE2b-256 d4e91eff549a7e62c016e407187635647eb65e8d6a8a2e7ca7f12d65a3b9f696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2794952af383a44043e38fd34bdcfb08972d5f54c87a0090bc635442449252df
MD5 b41c59a501fb82eade821dd3d040c33c
BLAKE2b-256 1fec881f11e0210f2138e07e555e11508b9d08fa61e167c518ee79e6cb861f92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashflower-0.10.4-cp313-cp313-win32.whl
  • Upload date:
  • Size: 112.2 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.4-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 fbbc917a806b1da333e6fc00e1e6573b2864f1fd01fcb1ec6f0a38658104d56d
MD5 8b26298fdb8e41501d7d8fbbb47f600d
BLAKE2b-256 7f33dd3b5389386b22b0b219bdba1378ae7d54e874b120ded353b4968e434753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0a649f3b4eeed533962782ada3101b91f447a929c8bc72ee0bd76f72f086e63f
MD5 ce1566c1c63bc80717622b475546769c
BLAKE2b-256 c31c3bdfb4e0b43e5183a0d25415da05e093bec6f098e8e00b8321f70ed0a92a

See more details on using hashes here.

File details

Details for the file cashflower-0.10.4-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.4-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e02584990c6e9a4be7693a268cd5552f1a6c8e7ab210165b3ee8d3872870b580
MD5 4e1f9a6374d5244c736bf5c70f050893
BLAKE2b-256 0c55494cac69bf8adc92feadcf9a51670296d8803bcbcc4174863528ef38fc80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00682ae453ea961675b338e0c664e43fd7fbcfff39130ec206dc06620acecbfa
MD5 dc145f1d9eb67c8d5a80bee09a138413
BLAKE2b-256 26fc9ee905d0f51463ea24d55bdba95a014074dee7b45077d8619188208a4928

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 35e44cad6ebb2be82771daae332e8965b878dcbdcf6b572a0093e66114f0312f
MD5 f0f76d5b2617ce889ac91187551a83fc
BLAKE2b-256 d0698cffd41ad481fb02149740c39c491e2cf8cfc81da8bf969405438bddd113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8f3120f59a5c7c1096c369553979a804d7b43bd2babf3cbc4c12cf04526b2a65
MD5 4543b766ceed9291d4cc3694048573bd
BLAKE2b-256 2ad4b8b44cdd2bdbb16c3ab8f34b39c6e401ee95e3df9baa05be30d43d132d05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashflower-0.10.4-cp312-cp312-win32.whl
  • Upload date:
  • Size: 112.6 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.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0e2464fb01f0f7b24a95f4d63783cef02905297f584177fda069c7e7f1eb984b
MD5 ff75bdde290e12b7f6be0d060751079b
BLAKE2b-256 14af8615391104d2a85a7c3bd26557a59692b6f011f6440a4017ffa30a910dba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e114b1112e2b488cfd6b4a5a0112656d5348f1a5c2486a291f3ba8d9d52ee01f
MD5 ae4e7d1d88105ded52ebd4afe1307dd8
BLAKE2b-256 af7ad1c6701c29661d85502e3c4a0f6b7e52e19982b0001cf3aef14112883230

See more details on using hashes here.

File details

Details for the file cashflower-0.10.4-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.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b4acb4c24a9f9717fbeef65f7cafebb5f975a2e0c72f75fcd1015671ceaa734f
MD5 edb56e8be72317dde7074fabb913a7d8
BLAKE2b-256 7abd91d637210f46367bcd753ef80a00763b70872bf9a769027808433dccbe3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2446658c62401f721d188324d90757596f4e3bdfc4f0ee9e1ddcc92ffa3f1b0
MD5 f03e6941802a5da56ad51d719a33117a
BLAKE2b-256 9ca9da6b5599d6cd823847de649ddc0df71a522e4483b6b52c681e3af0df32c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 73be725ab64af8a692d1f45f95760ae94791ef862da4695a392b3d577f1707dd
MD5 79aafa3a88659e828d90911190a0099d
BLAKE2b-256 050a5cf25f0c51e2666051c52b99fdf5ed39721eb495d92f43047ddbbdc2593b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 699eb6e5881d33130ffb9f20044bfe783280c36b7868227c1dc208e01ddabde5
MD5 1e81c6c6e0e4c7b4e4d495358ca7b2e1
BLAKE2b-256 ad74303fe8e0e71420a6be85e3fa8ca71bab4ce18056c58915dbee2e47f84155

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashflower-0.10.4-cp311-cp311-win32.whl
  • Upload date:
  • Size: 112.4 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.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 01d6b2e4fefb67f12f6a7cf2c72eb56bc46fe376379a40326d8eee11523f538d
MD5 0cb5067eb49b76d7e9ef82957662d08e
BLAKE2b-256 b9518868ae54f383129299b8924f768853c2467088aca80b6cc3aa115401a222

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c77dc5a92eb1aca09de28576b8750365d5c520134d2bc482ef6d0d601e576199
MD5 fb17cac6700c935d43ec068ff467ce35
BLAKE2b-256 392d4c2daab4c3d2ee4355b209fa52c15b85fb245e3ee7138597ecf9a0c607db

See more details on using hashes here.

File details

Details for the file cashflower-0.10.4-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.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 efd1337138a73348117dc33a798e3048288e13e6fe371fe673922f76397d723a
MD5 14c071b005f6309bc3103946e7d69921
BLAKE2b-256 c898cd5fa1f94325fba585d389bf09cba451b54a79e38f4215149b260c151e6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 363ffd22bf3389245eee8e411aff76b339653f272ea0a0ec9c1f7a04aa8760af
MD5 8a2db41aaa6f745e021bc8f1e69bef32
BLAKE2b-256 41a3f12633fd14d934663ce1e1c6d87f45e7a76d7ed0a26ac91b63fd7d322172

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 da466d8d4bd39c4b6f1a3e66ab40dccaae2e868aa040e89d33a8bf674e065553
MD5 a248a8baad837f1bbb0967f3582a0b31
BLAKE2b-256 ce3a9f4afb028dfdff44bd26bda7e7092cf27152ad5af49e15f76f6c02206d79

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