Relativities
Run EffectiveAI raters on your own book, in Python.
Relativities brings insurance raters from EffectiveAI, including competitors' rating plans rebuilt from their public rate filings, onto your machine and runs them on a native Rust engine. Rate one policy or an entire book, get exact premiums back, and keep every result to yourself.
Install
pip install relativities
export EFFECTIVE_API_KEY=sk-eai-...
Python 3.12 or newer on macOS, Linux and Windows. Prebuilt wheels, no compiler.
Rate your book
from relativities import Dataset, Rater
rater = Rater.load("<rater-id>") # downloaded once, verified, cached
book = Dataset.from_pandas(policies, key="policy_id")
results = rater(book) # rated locally, on every core
premiums = results.to_pandas() # one row per policy: status, reason, outputs
premiums["premium"].mean() # then it's pandas
What you get
- Exact premiums. Every premium is calculated in exact decimal arithmetic, with nothing rounded behind your back.
- Every policy accounted for. Each policy keeps its row. A policy the rater refuses comes back with the reason, never as a zero premium.
- Private by design. Raters run on your machine; your book and results are never uploaded.
- Reproducible. Pin a rater with
revision=to rerun exactly, even offline. - Fast. A whole book is rated in parallel on every core of your machine.
- Every step visible.
rater(policy, detailed=True).explain()lists each intermediate value behind a premium.
License and support
Relativities is proprietary software from EffectiveAI, licensed under the terms
in the LICENSE file included with the package. Catalog raters and data are
covered by separate agreements.
- Website: https://effectiveai.app
- Documentation: https://docs.effectiveai.app
- Support: support@effectiveailabs.com
Metadata
Release files for relativities 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| relativities-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / relativities-0.3.0-py3-none-any.whl
| Download URL | relativities-0.3.0-py3-none-any.whl |
|---|---|
| Size | 37.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
062a92bcf43f6c5432529abb40964e6bc9b1ff2c35a6af58633559899a1bd35a
|
|
BLAKE2b-256 checksum How to use checksums |
4a621ac6a4fb5f5688792da9bc8d1e65987591507755a13ba98db00ce56ac853
|
| 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 11, 2026.
Transparency log