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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cashflower-0.10.7-cp311-cp311-win_amd64.whl (135.4 kB view details)

Uploaded CPython 3.11Windows x86-64

cashflower-0.10.7-cp311-cp311-win32.whl (133.0 kB view details)

Uploaded CPython 3.11Windows x86

cashflower-0.10.7-cp311-cp311-musllinux_1_2_x86_64.whl (223.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

cashflower-0.10.7-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (225.1 kB view details)

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

cashflower-0.10.7-cp311-cp311-macosx_11_0_arm64.whl (133.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for cashflower-0.10.7.tar.gz
Algorithm Hash digest
SHA256 a09895f8c7aa8bc1f6d9a30b51264f9d4105e2ae3acd17cbb0a38bed1892e1b6
MD5 8d78996acb501483e638cc7b1d641268
BLAKE2b-256 c8e1cf42b17d380aa91c87721f0c7046fc02f82e7587f81882812e2063a73184

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashflower-0.10.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 135.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cashflower-0.10.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7888050ab2448389eeeb6ced377c7bb4395f9f1c3c591cbfaf44cdeb3845ddb6
MD5 659184ee6007f8028c44b9f47ecb2fd1
BLAKE2b-256 71e7b87adfbf09aa29f3c0a05915e6116b610d1a5b171afa28384dc25aa09c1c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cashflower-0.10.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ebfbd0c293d983a491ce8e577caccac6943671a3a5c60d381f569f2a2fb50139
MD5 edb52ea18529d4c7eb04525270f6d266
BLAKE2b-256 4a47691ffd1a54ac71207c1ce252d9541ab14d0ec92a18601a551191927e121e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.7-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 38689a335ac65b002276fce56f7bc85dd493f9c95b59cf03d3b80225da972d18
MD5 5ea615fc9f70270120966e1111671ce0
BLAKE2b-256 6acca4865ce1582efc537c55c76ac8fa070388c0fdc23933c25baa84a1abf204

See more details on using hashes here.

File details

Details for the file cashflower-0.10.7-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.7-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c6817aae8fbcb19b5b1cf4268f64d0bfcf7fe6570bbffe4475900953e110a458
MD5 dff82911534e684af7214031cc273553
BLAKE2b-256 d4b1c942b25beca3d99a6f5fa659532c58dcf24d4e278adbced5ae4960604691

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ffb905a9462bde446145a2f6a986438ea8e03b61f8a06530cc288efe282bd6c
MD5 3c1552ede817cac418f3440c2102606f
BLAKE2b-256 af06a749deb4c71851e2ea8d765e5ce341c4f078e543acd60bf531c1d7641a25

See more details on using hashes here.

Supported by

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