An actuarial stochastic modeling library in python.
Note This library is still in beta!
Introduction
The Proteus Actuarial Library (PAL) is a fast, lightweight framework for building simulation-based actuarial and financial models. It handles complex statistical dependencies using copulas while providing simple, intuitive syntax.
Key Features:
- Built on NumPy/SciPy for performance
- Optional GPU acceleration with CuPy
- Automatic dependency tracking between variables
- Comprehensive statistical distributions
- Clean, Pythonic API
Quick Start
from pal.copulas import GumbelCopula
from pal.distributions import Gamma, LogNormal
# Create stochastic variables
losses = Gamma(alpha=2.5, theta=2).generate()
expenses = LogNormal(mu=1, sigma=0.5).generate()
# Apply statistical dependencies
GumbelCopula(theta=1.2).apply([losses, expenses])
# Variables are now correlated
total = losses + expenses
Installation
# Basic installation
pip install proteusllp-actuarial-library
# With GPU support
pip install proteusllp-actuarial-library[gpu]
Documentation
Read the full documentation on Read the Docs
- Usage Guide - Comprehensive examples and API documentation
- Development Guide - Setting up the development environment and running tests
- Examples - Example scripts showing how to use the library
AI and coding assistants
PAL provides dedicated entry points for AI tools as well as human-readable documentation:
- PAL quick reference for coding assistants maps common modelling intentions to the public Python API.
- AGENTS.md contains canonical repository instructions for coding agents, with more-specific guidance under
src/pal/,tests/anddocs/. - The documentation build publishes
llms.txtandllms-full.txtat the documentation root for model-friendly retrieval.
AI-generated PAL code should prefer documented public APIs and inspect signatures/docstrings rather than guessing parameterisations or relying on internal helpers.
Project Status
PAL is currently in early release preview (beta). There are a limited number of supported distributions and reinsurance contracts. We are working on:
- Adding more distributions and loss generation types
- Making it easier to work with multi-dimensional variables
- Adding support for Catastrophe loss generation
- Adding support for more reinsurance contract types (Surplus, Stop Loss etc)
- Stratified sampling and Quasi-Monte Carlo methods
- Reporting dashboards
Issues
Please log issues on our github page.
Contributing
You are welcome to contribute pull requests. Please see the Contributer License Agreement
📚 Development Guide - Get started with development setup and testing
Metadata
Release files for proteusllp-actuarial-library 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| proteusllp_actuarial_library-0.3.1.tar.gz | 5.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proteusllp_actuarial_library-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 MB
Release files / proteusllp_actuarial_library-0.3.1.tar.gz
| Download URL | proteusllp_actuarial_library-0.3.1.tar.gz |
|---|---|
| Size | 5.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77942891ece7afb852e6da81b19c7f3c344df89f6df83fb8e7f058fb136846af
|
|
BLAKE2b-256 checksum How to use checksums |
7ec736e1b44859ddb3d3bda31afcc163e51ca0bdb370e3a84ce44ab71d500e56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / proteusllp_actuarial_library-0.3.1-py3-none-any.whl
| Download URL | proteusllp_actuarial_library-0.3.1-py3-none-any.whl |
|---|---|
| Size | 883.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aab9e2be43052a149bc6c1ed71fa6f42c44a3a3c09795aad4d67ddd402cb2213
|
|
BLAKE2b-256 checksum How to use checksums |
8bcb5083138ff68ed331ebda2702021654d88e8e45279e6932f488194e7b3b81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency log