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.8.tar.gz (109.3 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.8-cp311-cp311-win_amd64.whl (135.5 kB view details)

Uploaded CPython 3.11Windows x86-64

cashflower-0.10.8-cp311-cp311-win32.whl (133.2 kB view details)

Uploaded CPython 3.11Windows x86

cashflower-0.10.8-cp311-cp311-musllinux_1_2_x86_64.whl (223.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

cashflower-0.10.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (225.3 kB view details)

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

cashflower-0.10.8-cp311-cp311-macosx_11_0_arm64.whl (133.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: cashflower-0.10.8.tar.gz
  • Upload date:
  • Size: 109.3 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.8.tar.gz
Algorithm Hash digest
SHA256 be9c5d167debda2d650f782b2209543d2e14c8776682e348d101d924681a4673
MD5 1ad2e7b2eb806c015edeb9492e133f13
BLAKE2b-256 4314a5067f7d6d3e9af9fb1a2b3841db16659bb845a34cd70abd62948b97504a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashflower-0.10.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 135.5 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.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 411d048c869b52c4b7000a2241a1e32e1cd83a17ea2a9259003c10c39060ffdb
MD5 f6544fad3b4fd32347bcf1052cb7e9b7
BLAKE2b-256 32f6d5966093138c880e511566f01d0dc30f8ee631e2bf6d12a80af8c8e950bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashflower-0.10.8-cp311-cp311-win32.whl
  • Upload date:
  • Size: 133.2 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.8-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a68ba1b79004a2b7385684117273993ec4c4797a03b764480bd4c789b264b837
MD5 7e587f5a9be40552af3d9883a62b827b
BLAKE2b-256 862463efb36c11eee92598436c456c98924fe80f7750a2ec622ec320239cb731

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.8-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bdadc99be35af3ee4d1b6146a1b5007e8288ee21450f6319930cfa3a74de4515
MD5 6a0e37ee7a658012be9871055448c1c8
BLAKE2b-256 51eb932273bb86f512568781de6ddfe290eac9b5848d258c12b701e30db65db0

See more details on using hashes here.

File details

Details for the file cashflower-0.10.8-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.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40caa51af36b3353a1823277ed87bbc20829a84a093cdaf46f2af051524cc4db
MD5 63bf5f9a4df08b9c4ba60c41933c7b2d
BLAKE2b-256 56f1c6d9bb6c425d612be5a5c588e1dc017f7ba9e85bc65bc8317da243a7b7fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cashflower-0.10.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f36f10a5e0a338431ea1e53034c2a596d422349b5db74630ef67c50b503b94d7
MD5 c0ea2a7b61cc2ae4eda20a4d09fcdae8
BLAKE2b-256 8a3815e6709bf781f54b0522709d3ad13ea48c01b1368bfb72d12e46b188f62e

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