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.7.2.tar.gz
(85.2 kB
view hashes)
Built Distributions
cashflower-0.7.2-cp39-cp39-win32.whl
(110.9 kB
view hashes)
Close
Hashes for cashflower-0.7.2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b5ed0c1b4125ba1a9f22ca9d06bb68a4ebdac34909ea3910ec260fd8e7fb8dd |
|
MD5 | d8692a3d98f2ec3d8ec6c6104a44d60a |
|
BLAKE2b-256 | cd5b754ad70fcb8c632bc16cbacf1baed193fa3f8ffe38a86d2f18d6a62adbe2 |
Close
Hashes for cashflower-0.7.2-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c791afa211ec1add6412641246541c35d78c0c754667d38d95272d6bc18e4eeb |
|
MD5 | 31f5b73a996582e43e8b2c3eaeba3d2a |
|
BLAKE2b-256 | 055453a4cff5c4777774c5fb9cb599809f582c023cd78ef7d2d69a5181edd118 |
Close
Hashes for cashflower-0.7.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f093606bc7bfeb491e2c5a1fca855ae6a94f0757f4b361c1d9bb74f680f0819 |
|
MD5 | 0b326ff6df9ebdd5de0c24b67af2d462 |
|
BLAKE2b-256 | cf4e42f011de2a151ba6f2b38c48d488a5680168c9dbf727455508b9347f0738 |
Close
Hashes for cashflower-0.7.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b830f82de3cdff28993fefb9dbb73b9845e51fb14df0854cc2d7e9948bbf1e9e |
|
MD5 | 8ca4d0dba94d120e92b77768176ff427 |
|
BLAKE2b-256 | 65f9eabae8175ee8be258857b95b88d7724f24e049cdb451a67eb9da9a9af777 |
Close
Hashes for cashflower-0.7.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f9c1bef26827d7755edf6a5ed8b75a6899fc314f59cf07341b93c772620af87 |
|
MD5 | 9e92220e6f7e5648a8c8a0d3fb754a9a |
|
BLAKE2b-256 | 667bf75ee78c895326db5a4f23e5ace62118e51e65e6bcf070c29eebea5b7170 |
Close
Hashes for cashflower-0.7.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c76ec89f94613d94394691a16e67766e2e23eeba229a2f40b28127c518a3d2 |
|
MD5 | 20316490dc0f90d335f1413235d1f792 |
|
BLAKE2b-256 | 3ffffd8bc27aab2dfd42d9c9baf9024a00276df3588efdf086186b01f4ba6178 |
Close
Hashes for cashflower-0.7.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c91ef58d032b69f984eeaae45d6f5ff307e6a6146927656344549c8de096572 |
|
MD5 | 8bb49c30e14461d2feeaa1f8771b45f0 |
|
BLAKE2b-256 | d006ed4946268d05925238a855aea3f854835699e3aef4cd417a8ccaf45b658e |
Close
Hashes for cashflower-0.7.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94acfe2328517af1d2fea187cb0a905d7e27a97e31b7a2b84878e3d611375b85 |
|
MD5 | 29e458c047a0a96900aa72a8fed59cab |
|
BLAKE2b-256 | 3506ad49857928474cd0e866be41c00969a07814a3e0154657b2617e88530593 |
Close
Hashes for cashflower-0.7.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f4daa488f02dca20dff0a9da7102ad8d1929f4159e9e3cbcfe31bb1920dc75 |
|
MD5 | 6dff94fd5bcd9d98334bac8099473cd2 |
|
BLAKE2b-256 | ed68ad6b423f89b88ca4d912568ef559fe39229662d88cc18673b06d9bfd8fea |
Close
Hashes for cashflower-0.7.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ed360fca2d23b65bf631de830d007fc38026c092f6c7402b3811de2652a1f46 |
|
MD5 | 44b9dad19a96efd7690c01f9f23e608c |
|
BLAKE2b-256 | 8839c231774157efb150945a5c4d6639be79693c42f1502b7e8ace6e3bd15016 |
Close
Hashes for cashflower-0.7.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499f12864ea5b813170f1cfb8544b2d9151299833f711a0d3185e8ab3ace27fb |
|
MD5 | f42b5037f31980247db06fbcfd8bf8bf |
|
BLAKE2b-256 | b7053189656310a62b9ed64fa127378d8cac9261dd0baf282421a3e76349e3fd |
Close
Hashes for cashflower-0.7.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf7f7c82981ff802af81d66de80378cb685ef792602bcb06dfd4ad812ed5089 |
|
MD5 | 4a044b04f6c6affcc7459295d81867b9 |
|
BLAKE2b-256 | 23bf44b22a83178b77e07de4a43bbaee127efa0f1efc675c3a2b9d05b6ab46b8 |
Close
Hashes for cashflower-0.7.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adec6a077861bd014dcc4c46bd7db199ce454e3228dcbd177e71af1e7e3863fa |
|
MD5 | 06d8ce99f2846268cf0fd51a30fb25e3 |
|
BLAKE2b-256 | c9aa52c220c5c3ecc6fd1becb6fb07da46b265201c7d0f39554463801cd13717 |
Close
Hashes for cashflower-0.7.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74e86c45a49600b33213ba6582da2e94f39c2932791e524a46c18fdb5b8b393 |
|
MD5 | 905f1abf42881629f21bec45bffd7413 |
|
BLAKE2b-256 | 1f36e00e2e529a98d3650c42000f516356df56f5ba6b8cb43be9bb3c22ee00d0 |
Close
Hashes for cashflower-0.7.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc347e4e4a5ae37e7b1f9e7b79ac4b50851d6305cc54f04ee5c939edc0ca672 |
|
MD5 | bc400f324101ce32a7f75efc73e64247 |
|
BLAKE2b-256 | 2d268224674e7927f6919e60c3e7bdbf4162317c76c337003175ae60a4614aee |
Close
Hashes for cashflower-0.7.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9ea1ecf81bc0396e6e6875550b4f5d8d64784a7846426be310167aa76fd6729 |
|
MD5 | fae054e52dbdf64db30c334a4ecb6f48 |
|
BLAKE2b-256 | 65e98ae685136e5948409f0105fbcf098a4f6de9a83ebcd3eab9795a592cdd65 |
Close
Hashes for cashflower-0.7.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 373665fb62554369bbfef6b0a86ab9486430fc4150f3fbecc579530d6b67ee1d |
|
MD5 | 5a2d8eee170a9207b54b2eceed7afd4c |
|
BLAKE2b-256 | 0a542aa3fd939614c9a3486c64c08011e325377781078c40ba0d41f626e64d7c |
Close
Hashes for cashflower-0.7.2-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ecfbcdbe02898cd1c1b80bcfec54f154039876ca1ce15f0fa6959c50587998f |
|
MD5 | d6778757c762835bb648ce2f3d177955 |
|
BLAKE2b-256 | ab205c5b15eebedf829ae520574841491d42afa21faabd06a39d45c6ea9daa50 |
Close
Hashes for cashflower-0.7.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41f71f760a33527ea2e3bb1a5767cbe0a7cb0363f3f5a21dc6cc3a014e27a3e |
|
MD5 | b70a4ba7dd97bfb0a5a259f39a374907 |
|
BLAKE2b-256 | a0c2d82db83aa0f646d4d205a759cca9f195638db4024acbfff68adc13522647 |
Close
Hashes for cashflower-0.7.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039aee71f6ebb3b1aabdce62ae041ac2971ee50a139f0dac6a172fe837006e06 |
|
MD5 | 2341af94dc55ca84fd8a052e49361c5e |
|
BLAKE2b-256 | 1143bfba5d27c922063b947891a0a7701ab855b792d7e1e33de1e4abe4b3f167 |