Skip to main content

Python actuarial model

Project description

Vates Project

Open-source Python framework and sample implementations for actuarial modeling.

How this repo is organized

  1. vates/ — The standard library / installable package: reusable framework code (pip install -e .).
  2. examples/model/Example / tutorial for model developers (company builders): reference models (fund_model.py, port_monte_carlo.py) and local package(s) (local_package/).
  3. 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.
  4. 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: copy local_package/ (rename to your company package) and the model files into your own repository.
  • Keep company-specific code outside vates/; depend on vates via pip install or 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

vates-0.1.0.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vates-0.1.0-py3-none-any.whl (85.9 kB view details)

Uploaded Python 3

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

Hashes for vates-0.1.0.tar.gz
Algorithm Hash digest
SHA256 077e322356109b12a0c999fd7ad588607e3c45ae9e259b07ee5f99ccf69c882b
MD5 edb7c0a650a193ae95511fe8ecc38ec9
BLAKE2b-256 4d0c3c7bd508fc9ab9c2f52e0d41457cb4fb13ef0de826a53f53a131dde54dcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vates-0.1.0.tar.gz:

Publisher: python-publish.yml on shanyashi2025/vates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for vates-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02cf0ccd39e32d1c44aa39d1fe08878377a464fa9c96a67b549b4f1a0da1e76f
MD5 733c3d25a77b65de8000bdc05897e53c
BLAKE2b-256 4cf7973ad70d8fdb75a899bb6d8d3aa9796b5782f33de2c9ba94f5cb674f55d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for vates-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on shanyashi2025/vates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page