Python actuarial model
Project description
Vates Project
Open-source Python framework and sample implementations for actuarial modeling.
How this repo is organized
vates/— The standard library / installable package: reusable framework code (pip install -e .).examples/model/— Example / tutorial for model developers (company builders): reference models (fund_model.py,port_monte_carlo.py) and local package(s) (local_package/).- Other folders under
examples/(scripts/,cli/,input/, …) — Example / tutorial for most colleagues: how to run models for analysis and reporting (commands, sample data), without editing framework or model code. - The
gui/app is another way for analysts to run tasks.
Install the framework (vates)
Work from the repository root.
1. Create a virtual environment (recommended)
PowerShell (Windows):
cd path\to\your\project
python -m venv .venv
.venv\Scripts\Activate.ps1
If activation is blocked by execution policy, run once in that window:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Then run Activate.ps1 again.
Command Prompt (cmd.exe):
cd path\to\your\project
python -m venv .venv
.venv\Scripts\activate.bat
You should see (.venv) in the prompt when the environment is active.
2. Install vates in editable mode
pip install -e .
This installs the distribution vates in editable mode; import the library as import vates.
Project layout
| Path | Role |
|---|---|
vates/ |
Core framework and library (pip install -e .). |
examples/model/ |
Reference models and company-style package(s). |
examples/scripts/ |
Python scripts that call the reference models. |
examples/cli/ |
CLI commands and model args json files. |
examples/input/ |
Sample CSV input data. |
gui/ |
End-user launcher. |
docs/ |
Structure notes and discussions. |
Quick start
1) Example Models
| No | Example Model | Python Script | CLI + json |
|---|---|---|---|
| 1 | 01_asset_proj | python .\examples\scripts\script_01.py |
.\examples\cli\cli_01.bat |
| 2 | 02_fund_proj | python .\examples\scripts\script_02.py |
.\examples\cli\cli_02.bat |
| 3 | 03_cross_proj | python .\examples\scripts\script_11.py |
.\examples\cli\cli_11.bat |
| 5 | 21_smith_wilson | python .\examples\scripts\script_21.py |
.\examples\cli\cli_21.bat |
- Model output can be found in
.\examples\results\script_*and/or.\examples\results\cli_* - CLI is configured via the corresponding json file
.\examples\cli\model_args_*.json.
2) GUI
Start GUI:
.\gui\start.bat
For model developers
- Treat
examples/model/as a reference layout: copylocal_package/(rename to your company package) and the model files into your own repository. - Keep company-specific code outside
vates/; depend onvatesviapip installor your dependency mechanism.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vates-0.1.0.tar.gz.
File metadata
- Download URL: vates-0.1.0.tar.gz
- Upload date:
- Size: 67.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
077e322356109b12a0c999fd7ad588607e3c45ae9e259b07ee5f99ccf69c882b
|
|
| MD5 |
edb7c0a650a193ae95511fe8ecc38ec9
|
|
| BLAKE2b-256 |
4d0c3c7bd508fc9ab9c2f52e0d41457cb4fb13ef0de826a53f53a131dde54dcd
|
Provenance
The following attestation bundles were made for vates-0.1.0.tar.gz:
Publisher:
python-publish.yml on shanyashi2025/vates
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vates-0.1.0.tar.gz -
Subject digest:
077e322356109b12a0c999fd7ad588607e3c45ae9e259b07ee5f99ccf69c882b - Sigstore transparency entry: 1251641171
- Sigstore integration time:
-
Permalink:
shanyashi2025/vates@1950a221ed6ea10fe90b4925be355cd16e7531e1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/shanyashi2025
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1950a221ed6ea10fe90b4925be355cd16e7531e1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vates-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vates-0.1.0-py3-none-any.whl
- Upload date:
- Size: 85.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02cf0ccd39e32d1c44aa39d1fe08878377a464fa9c96a67b549b4f1a0da1e76f
|
|
| MD5 |
733c3d25a77b65de8000bdc05897e53c
|
|
| BLAKE2b-256 |
4cf7973ad70d8fdb75a899bb6d8d3aa9796b5782f33de2c9ba94f5cb674f55d3
|
Provenance
The following attestation bundles were made for vates-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on shanyashi2025/vates
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vates-0.1.0-py3-none-any.whl -
Subject digest:
02cf0ccd39e32d1c44aa39d1fe08878377a464fa9c96a67b549b4f1a0da1e76f - Sigstore transparency entry: 1251641184
- Sigstore integration time:
-
Permalink:
shanyashi2025/vates@1950a221ed6ea10fe90b4925be355cd16e7531e1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/shanyashi2025
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1950a221ed6ea10fe90b4925be355cd16e7531e1 -
Trigger Event:
release
-
Statement type: