Skip to main content

epluribus

CI PyPI Python

Out of many, one. Sample LLMs many times on a structured question. Get every answer with its call metadata, plus summaries that fit each answer's type, with intervals.

Documentation: https://cldixon.github.io/epluribus/

Install

uv add "epluribus[anthropic]"     # or epluribus[openai]

Use

from typing import Literal

from pydantic import BaseModel, Field

import epluribus as ep
from epluribus.clients.anthropic import AnthropicClient


class Vote(BaseModel):
    choice: Literal["approve", "reject", "abstain"]  # categorical
    confidence: int = Field(ge=1, le=5)  # ordinal
    reason: str  # text: kept, not summarized


task = ep.Task(
    "You are $role. The council votes on converting a garage into housing. How do you vote?", Vote
)
models = [
    AnthropicClient("claude-sonnet-5-5", effort="low"),
    AnthropicClient("claude-haiku-5-5", effort="low"),
]

rs = ep.run(task, models, n=30, grid={"role": ["a retiree", "a cyclist"]})

rs["choice"].freq()  # shares with 95% intervals
rs.group_by("model", "role")["confidence"].mean()  # means with bootstrap intervals
rs.usage()  # calls, tokens, cost, errors
df = rs.to_pandas()  # one row per sample, with metadata

Use ep.FakeClient("model-a") instead of a real client to try everything offline.

  • The schema decides the summaries. The pydantic model is the answer format sent to the model and the rule for how each field is summarized.
  • Intervals by default, always with n.
  • Every sample is kept, with its prompt, model snapshot, tokens, latency and cost.
  • Failures are data. Refusals and invalid answers are recorded, not retried.
  • Cheap reruns. A disk cache keyed on each sample; raising n only makes the new calls.
  • No logprobs needed, so it works with frontier APIs.

Simulated answers show a model's tendencies. They are not real voters or customers.

Develop

uv sync --all-groups
uv run ruff check . && uv run ruff format --check .
uv run ty check
uv run pytest                       # offline; also runs every docs example
uv run pytest -m live               # real APIs; needs keys and costs a few cents
uv run zensical serve               # docs at http://localhost:8000

To release, merge a PR that bumps version in pyproject.toml. The release workflow sees the new version, publishes it to PyPI, and creates the vX.Y.Z tag and GitHub release.

Design notes and the roadmap are in design/.

License

MIT.

Metadata

Release files for epluribus 0.1.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 epluribus 0.1.0
File Size Uploaded Provenance Actions
epluribus-0.1.0.tar.gz 32.7 kB With provenance Details for epluribus-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epluribus 0.1.0
File Interpreter ABI Platform Actions
epluribus-0.1.0-py3-none-any.whl Python 3 none any Details for epluribus-0.1.0-py3-none-any.whl

Total release size: 72.3 kB

Release files / epluribus-0.1.0.tar.gz

Download URL epluribus-0.1.0.tar.gz
Size 32.7 kB
Tags Source
SHA-256 checksum
How to use checksums
edaa26efe26cd5be6c6eb972921f7645f243d3f9a433146c01554b636ce04917
BLAKE2b-256 checksum
How to use checksums
64ec0730cb991014572470823257ebde8b4843734afd8116cd8d9b821faa91b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / epluribus-0.1.0-py3-none-any.whl

Download URL epluribus-0.1.0-py3-none-any.whl
Size 39.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31d4f8f6b183f530b83b391e6f3ddf1451fdb1cdd1336ae71810d04dfdd9ce45
BLAKE2b-256 checksum
How to use checksums
8997be3d4e9d19e5cb40c036481201dfa656532cbab3db5f4dd2c7559371413a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for epluribus 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for epluribus-0.1.0.tar.gz

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 Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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