Framework for actuarial cash flow models
Project description
Info
Cashflower is an open-source Python framework for actuarial cash flow models.
Prerequisites
Python version >=3.9
Usage
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
Input
my_model/input.py
runplan = Runplan(data=pd.DataFrame({"version": [1]}))
main = ModelPointSet(data=pd.DataFrame({"id": [1]}))
Model
my_model/model.py
@variable()
def projection_year(t):
if t == 0:
return 0
elif t % 12 == 1:
return projection_year(t - 1) + 1
else:
return projection_year(t - 1)
Calculate
terminal
python run.py
Contribution
The cashflower package is open-source. Everyone can use it and contribute to its development.
GitHub repository:
https://github.com/acturtle/cashflower
Documentation:
Project details
Release history Release notifications | RSS feed
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.6.0.tar.gz
(78.2 kB
view hashes)
Built Distributions
cashflower-0.6.0-cp39-cp39-win32.whl
(102.7 kB
view hashes)
Close
Hashes for cashflower-0.6.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a55be5dedca8ebb2e41432363fd8b8c244c8020ca8f7ef140f0900af444127d |
|
MD5 | 57e5678837a88a587b4b6a610dd62a1c |
|
BLAKE2b-256 | a37d5a9a6ba00d6101eca76c6c11f7268723fb6395bd24abfd75d456c9281e0c |
Close
Hashes for cashflower-0.6.0-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec30bc6f75e2b02baba86ead0483bdcfc4d68ee9892220fd6aafd984ea7c7164 |
|
MD5 | 09cc41d1aa09de93055867fe0c19b650 |
|
BLAKE2b-256 | d868844752bfbcc0f9a0a1d63774b3c9e476ba5e6fef39234fc16f5938a070d7 |
Close
Hashes for cashflower-0.6.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eecd294b3aac7108a2b2b3e5bbaf3dd087f5207fe09437ed879150d7417d98c7 |
|
MD5 | 9f14811b0ddf199c12e8cfc1a57bf023 |
|
BLAKE2b-256 | 2cbbead6600b83be46787568a6521109cc1e8bc86b92eea396eb05aab1891acf |
Close
Hashes for cashflower-0.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72ab71b050ce0b0c2a184063cf7d1948cf51bed3329c89ecb0e6cf05684ec70a |
|
MD5 | b831f876b2da1dad334842c6b7786b2b |
|
BLAKE2b-256 | c1f1b449a595e909177316b7b2857b367176ea638e709149823da85b3b1cde0b |
Close
Hashes for cashflower-0.6.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc2844f0c71d4806ecaf60af0b9dc25ffe47ffc9c1892abd10ce2bff0c0b279c |
|
MD5 | 9a628f3a384aec75404ccf63c94e6e81 |
|
BLAKE2b-256 | 2f32b07045cb686fbb819d1ddd24589e81abffdbf7a2fec2979724a654ef2bc1 |
Close
Hashes for cashflower-0.6.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8475a77c73dcdbead7afcdf301928fb3bd7ae9ecb2ac0a53f6f4f47a327dc3 |
|
MD5 | 7bfbb6aa03bc88acd01cf4174f7da500 |
|
BLAKE2b-256 | abff73034fabbce60f0446bf971239f85a2af90045983ed985a0434d9456fa76 |
Close
Hashes for cashflower-0.6.0-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2650d409180a3ab25aae9779294ab131e838660fc0b2d692360dd4bb570d8ae |
|
MD5 | cb361ae543e098e878bd08bb6ba2a92b |
|
BLAKE2b-256 | d8c441e9a8291238d9f310108e94cc4568eabe4817acdccfae0c416305c0abd2 |
Close
Hashes for cashflower-0.6.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61af4cb8c04db3b7274421d5cfe3969df213117f7f9a1b86742a259833ac1918 |
|
MD5 | d97667df97aa6dc0c246bc11840ecd84 |
|
BLAKE2b-256 | b4e2e4630c91cc502df4bf5413eded89b73d26d4bdfb32110537b6eda737638d |
Close
Hashes for cashflower-0.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d82fc57bb9c4d1ba6f4fd301058dab648af0e68efa2d9575ad8a3f99dc060a16 |
|
MD5 | e576c4ef07456e9264db8e702db01552 |
|
BLAKE2b-256 | dc6bd621de741d26f55730e59a5c30d6ad29e118f7133c6ab962abdcb2c82964 |
Close
Hashes for cashflower-0.6.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1def28f5e2bb98173a6030c46590a64bcb7595c2e2f73d648aacf16f76f58c4a |
|
MD5 | 0595df52f4e984ae58902973e75bb988 |
|
BLAKE2b-256 | cd5843f4a5b433dd55836486c54d315fb4f1fd84c988f5bdf901c23c431f141b |
Close
Hashes for cashflower-0.6.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77d8ad9f7b0103fafd09b80ba28fab3548e0b759a61f37c6dab8043fbdadafaf |
|
MD5 | e7834dacc8fe631c526027d598d49b0c |
|
BLAKE2b-256 | d8b873e53b43d56006c7cff7a81313311face646d0d6a75c7bcd074b6ba53d32 |
Close
Hashes for cashflower-0.6.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b999b786f5ee5e64b35f8b8c9be15eb5521e5516a16034792531ea023ba6ca8 |
|
MD5 | 2ad5e1a6e857903d9e889708beb4ee41 |
|
BLAKE2b-256 | bd65198010e4c12950723869ba8cbf4d58dbe6e25cd016700e7aeefa31982cb2 |
Close
Hashes for cashflower-0.6.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8752dc5558464a2a96f40330a490be97e8b4694868bab2ae540faeedfd4d543 |
|
MD5 | e9361470bb802a307752b0b369531d99 |
|
BLAKE2b-256 | 2ea2c372f697b77f926d3315765a3200748d93ee3fb0c01bd6da26264e4cb239 |
Close
Hashes for cashflower-0.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c17777ddf35c172a317f15d70ef6d55b494e65faa9311629174930b01eb30b |
|
MD5 | 7727790d429460209996b3ce60ae81ba |
|
BLAKE2b-256 | f79281b949571c2a5f910616d999cf7b4b2c77cc1280b76b748689ab9799dbae |
Close
Hashes for cashflower-0.6.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7fdb8e0688edd8b786716f810aa74cbd8839a3f3a5df239dd073d6c464c170 |
|
MD5 | da91ba42962b29d1a00533c732e9271a |
|
BLAKE2b-256 | b08b2f00d84078277d364566da07c6b70cea785bfa444553cafd0c4f1b36f064 |
Close
Hashes for cashflower-0.6.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba894d9dad2bcb455e0ca6897805cbae5673d3a68b5d7c79d859b8b4a74573c |
|
MD5 | e6868c0f70572e911b66609321fd8585 |
|
BLAKE2b-256 | 6b3298d1769ff969b58d54fb97a281939a28afd99d20facfd1d508f8ac478c58 |
Close
Hashes for cashflower-0.6.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0686112d7454e0114a934c81e137c963176e755b5c730b4c26b66f6387b80a |
|
MD5 | ce1db727810bff97cd6d38e3faca2478 |
|
BLAKE2b-256 | 1092d0cf49735940c49e5fa3385bca79b1b4ac0307a4b7e1e8b1c218c11e436f |
Close
Hashes for cashflower-0.6.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0b2545ad3de215c4432b9cfe44027bdf00741f34375417c09837dd9c59a257 |
|
MD5 | e530cbf15e419e766b5cc38deffc0363 |
|
BLAKE2b-256 | f765f32ddf80f9ca5db2bd74bc15c66d9d3185dfba5797c390a1e75a71d5ccc5 |
Close
Hashes for cashflower-0.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 798da5e0d8dbbcd07a83818e9b3d43b35cc401ac9ebc6b32b2ca2963fc21d5f6 |
|
MD5 | 9da11f3e36c5ed47f18ab6a38525fd5f |
|
BLAKE2b-256 | 50b8aa7e646eee00813cada03eca280dcd1f55e62e2e7e218b9b6376bffbf72a |
Close
Hashes for cashflower-0.6.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b7ef97883a918c8146fdcec9f7b14ad3d3d70ec591bfd13dd1e5645cfde7d4 |
|
MD5 | 136e15d7c41480b42d5908bf55497e2b |
|
BLAKE2b-256 | 8f2b6a56548c26269d4d97e857fa80dac1f74b57845cce1fcc87ad71b6157f24 |