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.0.tar.gz
(80.0 kB
view hashes)
Built Distributions
cashflower-0.7.0-cp39-cp39-win32.whl
(104.8 kB
view hashes)
Close
Hashes for cashflower-0.7.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba61640d58617f018ca0216bf4d7e27d16eb1580fba96970bf70c345683b144e |
|
MD5 | 412d73de3d76a12f6562464350b189a5 |
|
BLAKE2b-256 | 2c4458147df5db098310f7bc791b78a499ec83de8dcedf2ff7263d023d5f00fc |
Close
Hashes for cashflower-0.7.0-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f44a6617c25ee3d6f07245dedddbfe1a2d39721063e70b216f7ca98593c831 |
|
MD5 | 837f09f104c1af66a07f6f17fb08d21d |
|
BLAKE2b-256 | 4dda86aa7732f13e83b386d8b84666a9fd7b64fc69128342249b04f09dc8ee3a |
Close
Hashes for cashflower-0.7.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b2b6f2401044d485d815eb3ec8eb994925f61f0c97b90aef4f7adba0df45e7 |
|
MD5 | 8a34ab06870730d3f11691890fe80401 |
|
BLAKE2b-256 | 893bf82b57c32f67c047c98da5c3b817508485ffb41975e68ecb37b0cb729c38 |
Close
Hashes for cashflower-0.7.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06569af05dd3b0dff331442680602b898a392469ee0e0fef44e063f214733704 |
|
MD5 | 1c0b19c597cbd2812db4b517ef239a8c |
|
BLAKE2b-256 | fac094eb22e85563b280757781a7e54eb6d7eed340e374af52040e44c35c318f |
Close
Hashes for cashflower-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da754a905f2b80edec8612524585a21d5b30e29d7951a33d031d27f2c1d5786 |
|
MD5 | a46692405a6a1bff27f1c8383abe97dd |
|
BLAKE2b-256 | 95d09d010a0aa3487b98382e942b74fbeccaa4afe86e32039dc697c0616c5e57 |
Close
Hashes for cashflower-0.7.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 789a309eddbb80390ac49e4e457ad28eb68842def7b8bc903c74fc917d75e035 |
|
MD5 | 0b78673db03bf0339ddbfc5c71a49b17 |
|
BLAKE2b-256 | 928869e0df6930bad17d09e257bba53f8bd552408482c65daa16f75ba2cf7403 |
Close
Hashes for cashflower-0.7.0-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f8abb4ff3b025aaa23aa390f6f4da2704d528795237cb169873e147df51f0de |
|
MD5 | 2e09797083577fc1bd3b2a31e2ac40bc |
|
BLAKE2b-256 | 1cf6e4e958918978f768697b87ed39e1d7039695bd44000417a32cb166bd6e5e |
Close
Hashes for cashflower-0.7.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5276f81177f43c5f4a7d67b393d15645a2adc9d115374ea97bed19ff626943ad |
|
MD5 | 6c2d16a14f9afa9183100188b18a40b6 |
|
BLAKE2b-256 | a36fb920538e89f536a6aec65584dd97f6e9f6e0cbe9dc2d7637a290da6de429 |
Close
Hashes for cashflower-0.7.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac60322d02296db949b912c6a1fd89ddb82afd9671754d137883000dd8fc746b |
|
MD5 | 639efd3157c47c10131676f5046ad059 |
|
BLAKE2b-256 | bb7b2c7c9e0ede2c46499615c9adf3f6e5693d287dee6c78e6db6d5b973c9f4e |
Close
Hashes for cashflower-0.7.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32365c86f4e22af0b92d3f0c1a05085e897d45f0348553ff29e3de6c521f65c9 |
|
MD5 | 0f103aa7223615b92e23320850e84949 |
|
BLAKE2b-256 | 30645f02b67b65156f9c5ab8845d85e8b07d2e48f5c93c88becfc3667382faa6 |
Close
Hashes for cashflower-0.7.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0228a1699cd034ab78142b8a06e06fc2c57b3b11257c7f116e2dbe1c7feebaf9 |
|
MD5 | af506cf43ec1819657108274b85e0045 |
|
BLAKE2b-256 | c8016cc9b7662e47f357842d4e4f31137191f3ed514b4f5c7241a54a9173032d |
Close
Hashes for cashflower-0.7.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2ab23db5d43310848a27f6f4aede77a3cee02c045438f848484c13d3ccfed2 |
|
MD5 | 700c667aebede028f6f05df218c769c1 |
|
BLAKE2b-256 | 1689dc87ed2e6851dd335746b0f932da9f29067ef993a4917bb122be72ea3d1a |
Close
Hashes for cashflower-0.7.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f9779d0be6cf8ba4c2b2de3058daaa9c41856550f582139d23f90cec5b01ea6 |
|
MD5 | 73b686bf0d498883129725a0da152e64 |
|
BLAKE2b-256 | 5c8aba96b956c419442da75bca3e651ace9db56538d958b03124a0a76f11cdb9 |
Close
Hashes for cashflower-0.7.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb85b57d2fa11c70f0d16d25a7a041302d306075d481d27978891b13ad7664ff |
|
MD5 | 537b246cc2344748115af0346b8e254b |
|
BLAKE2b-256 | e5bca10ad0577fdb30c5a2acd6c4fd66763adde6caecbe635cdf1b1acaf07b81 |
Close
Hashes for cashflower-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48cec44cd7b26d0096124fc6f69eed72f417a2575b046931b26fb6455a1fdaa3 |
|
MD5 | b9257950c2d5ffc7d1b09b8bb3089317 |
|
BLAKE2b-256 | 530dbd86cb4fbe6fb4dd730ddd8000c8a81813d02b8cd4bfc4ee1fa8d1c3314a |
Close
Hashes for cashflower-0.7.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94e3f9d549ad072dccdd07ab9298334f1e63be1ea8a9be32c170f91a1ed34502 |
|
MD5 | eb00196c5afa61106926283c7847d214 |
|
BLAKE2b-256 | 580a02a18f50c90f2e1ce481e128e924a7c0ab4e54f729f401cb5c1394455d7b |
Close
Hashes for cashflower-0.7.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7600fd5d632e3a2377d636394e0f6ba69265d4368e2b2c128e34db07ad26d5b1 |
|
MD5 | 64b367ec0503ecc93dd1ea88cc0261bc |
|
BLAKE2b-256 | 95848c66f6265160bb338241380b0f03d01ec081e3d7c2e3774b632a7f7c3a44 |
Close
Hashes for cashflower-0.7.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9637dd6343e6452af46eea9f76fb6782903ea0e037205ee9a9f3348a5a3579 |
|
MD5 | be5ba8d56f051c24da4efa66f7c07f08 |
|
BLAKE2b-256 | 64b3e8b9d6113beeea2cc725397aca29001fcaaffdab39aa315153c6e6f5d747 |
Close
Hashes for cashflower-0.7.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cab1e97f51c5c571a3a8b1a5f50fcb482cfa99a5f9a125090bbb074e73f4636 |
|
MD5 | 1eeb207ed132a222a06bb9584560b752 |
|
BLAKE2b-256 | 0c2837ddb49c9bb0b6e92b5137be3ab7a2f4ebc161826068dee9f1af01a23eec |
Close
Hashes for cashflower-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df010fd7f3690391ed42ea1858e60dcd32ee36c9128c9410cb722da78ae2fed |
|
MD5 | edea5c70abe40190a23da7c9e2b6edca |
|
BLAKE2b-256 | 2aaf92ffba1cd5114593306ca78fc9da677e264d8ea11b43aacc514a4a3eac3b |