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.0

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.0
File Size Uploaded
proteusllp_actuarial_library-0.3.0.tar.gz 4.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for proteusllp-actuarial-library 0.3.0
File Interpreter ABI Platform
proteusllp_actuarial_library-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 MB

Release files / proteusllp_actuarial_library-0.3.0.tar.gz

Download URL proteusllp_actuarial_library-0.3.0.tar.gz
Size 4.9 MB
Tags Source
SHA-256 checksum
How to use checksums
45a20a81e6c4d563154e7cfa90ad2f812d774347466244d8a696d13900562393
BLAKE2b-256 checksum
How to use checksums
fe54fdb23ebaf4e5a79a23fa9b51ffe6d1012ad2ec3cc2bf108ef2de8cb92507
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.0-py3-none-any.whl

Download URL proteusllp_actuarial_library-0.3.0-py3-none-any.whl
Size 104.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40ab449bd5a7692cb1e34a7c0b4f1fbe63e401dddffa2f657bc600ba9795f771
BLAKE2b-256 checksum
How to use checksums
3bf063a155ca3ba0972152a7baa217cacffc2cb6bbda13b9ae3cf1457c279fe0
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

0.3.1

2 release files

This release

0.3.0 This release

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