Skip to main content
PAL Logo

Proteus Actuarial Library

CI Status Coverage Status Documentation Status PyPI version Python versions CodeFactor Ruff


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/ and docs/.
  • The documentation build publishes llms.txt and llms-full.txt at 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)

Source distribution for proteusllp-actuarial-library 0.3.1
File Size Uploaded
proteusllp_actuarial_library-0.3.1.tar.gz 5.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for proteusllp-actuarial-library 0.3.1
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page