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.5.4.tar.gz
(76.3 kB
view hashes)
Built Distributions
cashflower-0.5.4-cp39-cp39-win32.whl
(100.7 kB
view hashes)
Close
Hashes for cashflower-0.5.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcfe44dd5875a3299d255363cfcdb65467c94912dc493f1a99b5ca6f23f088b4 |
|
MD5 | 11ba5411df54b8704a96073b62b1e9fa |
|
BLAKE2b-256 | f8fb54b44017c9384c7d8a7ebfddda40e5a8c3035a034d4b29f7f90b41e2cb74 |
Close
Hashes for cashflower-0.5.4-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f3a9aba60b4f095cbfa810cf9ce62a73f35008b082e9e2403d122a18984fcf |
|
MD5 | 470f7c805bbef22bc46dd63771edbd2c |
|
BLAKE2b-256 | 5dbbc80e51e63d8eab702876d86a35bbdc52163bd24150587fb096ef071455cb |
Close
Hashes for cashflower-0.5.4-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd00c4d925f48d84496a81421336004ce091fe185cee1640da82fbcec8870a5d |
|
MD5 | bd9ad5ae45c3139dca0ce1475c57b8fb |
|
BLAKE2b-256 | d77b47901b0b8e7142a5f5d105251a7f7bd5d30f97ccef36da0b008ebf1a39ae |
Close
Hashes for cashflower-0.5.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bb2d8a1f303f862542c2f7528080461c1e7ba84f29df5dde6e2789078a9c3e1 |
|
MD5 | 200e958b6ebdeb3780b4b732becf10a7 |
|
BLAKE2b-256 | 10bcd03e7d8febc5a8ac5126b14258d3ecce01e73f8f03be24becd53a6398853 |
Close
Hashes for cashflower-0.5.4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f823e10bd9a8a8176f9787541dab8b5b215204b18231d739d23bbafcda224a |
|
MD5 | 187452756faa7fd972c91d8df8ddf434 |
|
BLAKE2b-256 | 6df2def8d2fba07d22439fcb47097cb25781167f7bd1ca378dde9ca0da2e31ba |
Close
Hashes for cashflower-0.5.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb6c40e7f6aecb8acc93d09c841acc77cf5e729820b90e8e15e8b92d2d2f3b69 |
|
MD5 | a0fa201ecf49225627c32646128b3bab |
|
BLAKE2b-256 | d6a24a10ee8a2cc34390b6dae929684c64ca3aec83140d5f466bcba8df179065 |
Close
Hashes for cashflower-0.5.4-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ebd06ee657458d4c349b0d7c5f778ffaaa4d01ae96dc9a22a9a9e84e57812cc |
|
MD5 | d0235d9b90e39eb15560fd3a67474eef |
|
BLAKE2b-256 | 0db56b112b204ee110237496af5a24abf8590a4cf883edb12b44e99f13e9d206 |
Close
Hashes for cashflower-0.5.4-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3680e496a7c90829a6f9b1a0eb9eecabb7df2f389b1c811cbe152553eae1f1d0 |
|
MD5 | 76356689d20cfffa0979217e28af67d6 |
|
BLAKE2b-256 | 365f59a9694e060b967365d6276fb7670bdb4d0a3df76ea008dcca33914d5d53 |
Close
Hashes for cashflower-0.5.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51edeb8ee3f9ce288947147b24bdf3178920b77f89df6978476490657932ea15 |
|
MD5 | 782bb45d6535fc734049e72d8b939901 |
|
BLAKE2b-256 | 16974e38fe34bae9b1ded41f33ff7ad2f2cba927358cf7b4ea80f54aaf0548d4 |
Close
Hashes for cashflower-0.5.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53e34b12a9c89ce594cf9c8e2dbd5adac739dcf7201c30348396d7d75aa697aa |
|
MD5 | c9d256af308b9a17b15f88ef8e6c4afc |
|
BLAKE2b-256 | d4b14f83c48dc48c8567f44d4885208340084ce6189b111a0a455d046f01c073 |
Close
Hashes for cashflower-0.5.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c7ad40cd017ac985bee5f3d99538dc0dfe105c786fb4b2c9c3e642c1bdf9a8 |
|
MD5 | 496e74ff9a876a5120996b260e423c6d |
|
BLAKE2b-256 | 45a479f08a0ebdc57cedafe6236ea85c345502543d30974daf9090b6cac1fab8 |
Close
Hashes for cashflower-0.5.4-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e0cf9c7f443a6d1e63c93f9c75ee4ae75bf590451f993540927e5c4b4305d72 |
|
MD5 | 93b1655d103aa0c6d58c7faa53ca8f47 |
|
BLAKE2b-256 | 83fb1fb4f4e7712011cac1599a1d8f40edd0efaacdc9ec7f0eca2a5fd54549fd |
Close
Hashes for cashflower-0.5.4-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5357434f3dab432ff86567d2a9a9bee6b718fa80948f75b7a025b5727153bf73 |
|
MD5 | 150f7ea61ebb567b0e5d6f89277aeb01 |
|
BLAKE2b-256 | eec59a654cd6207be02b34799d28707351c7f8360f8074e20c3c3bdbb05fe3ea |
Close
Hashes for cashflower-0.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77c51dc1674fd56fc585134af6bd9230a9f8e8d9b73c15c6b7d03a27127c0c5 |
|
MD5 | b8945a6b7e23dddbffd752645a413f22 |
|
BLAKE2b-256 | fd56085de642cba7e207ffb869fb94bee14d38f7923aa3ff90e64f2c1ba52f79 |
Close
Hashes for cashflower-0.5.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c78cc8bf08a1a92cd163cc28604afd7c75826cff6c73a72f92e7e926d54d6b48 |
|
MD5 | be9621797cd6e028d1e227af88fc749e |
|
BLAKE2b-256 | 74ddccd8a4b6136581a3586b5a0942c514e6b202f7ff843146293ba594608df2 |
Close
Hashes for cashflower-0.5.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f4b0d2bd51c442de953f7ed5b7e1f6c1b3e1e3e1c01714c8a7744be4b9621a |
|
MD5 | 120b4c65b0adbe49985a29e56daee2c3 |
|
BLAKE2b-256 | 20d9100d9353be97db1791421f936084fc86d948b8c4e22b32a99ab6c811a289 |
Close
Hashes for cashflower-0.5.4-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c47dd472dbba794c345d95bf82dea1e8b65a9049f920f5734e83c8c512cc18b |
|
MD5 | 4d9f0e19f37e154bd4721ade2fef1f4c |
|
BLAKE2b-256 | a625251f65201b49fe705f49bc4a84426102b0f86901ab1b77b2e1a263781a06 |
Close
Hashes for cashflower-0.5.4-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 749a785f603a4f3def34220696bad590adb79d40473e061bd0a86a7c58a61198 |
|
MD5 | 91e21ea7ddaf0ad4bad6bbd17edf6ab6 |
|
BLAKE2b-256 | d0efd679ceb371fd43f190572a51bb3c60286f5e9c2bed7349a4f1872dbe47f5 |
Close
Hashes for cashflower-0.5.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbb8ea3841c9ea52db3c4524c1dd4e201c952e3174045cb3bfa3a7064f7f6838 |
|
MD5 | bc578f638c7d23c95fecfaae6e4a8244 |
|
BLAKE2b-256 | b8b44f3e269b87511c6609c5e33657c7e76aaa3d854161ec55f99a72c23280d9 |
Close
Hashes for cashflower-0.5.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ab008beed516ac5cbb9590ea2e2d57571fb25e2fe4c55a0db63bc5074e26a89 |
|
MD5 | a64a48a95b08b06dd8cee79e6f59e3de |
|
BLAKE2b-256 | 43d4699f9fb68790c7e328ab72cabbc287cbf1374af3a4149deadf7ee5b6f427 |