epluribus
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
nonly 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.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 | Provenance | Actions |
|---|---|---|---|---|
| epluribus-0.1.1.tar.gz | 33.4 kB | With provenance | Details for epluribus-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epluribus-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for epluribus-0.1.1-py3-none-any.whl |
Total release size: 73.9 kB
Release files / epluribus-0.1.1.tar.gz
| Download URL | epluribus-0.1.1.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8ce2239998c954cfa31c84cbdbf5ce7b56d1fdfb748b258b77502e99009513f
|
|
BLAKE2b-256 checksum How to use checksums |
a7747b323b2db9f263f5c1223d81c2c883848f8865d897ae74ecbb5b32da3fa7
|
| 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 logRelease files / epluribus-0.1.1-py3-none-any.whl
| Download URL | epluribus-0.1.1-py3-none-any.whl |
|---|---|
| Size | 40.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66dba6da6f6ff6d1072ddbfa483f846b03b32af039f13a7c2a138b9942cbe38c
|
|
BLAKE2b-256 checksum How to use checksums |
9241569e23e1fd1f2a14cd09f4862f7e11522ae03378492fe833cb1c59a66781
|
| 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 logSecurity for epluribus 0.1.1
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.
Attestation for epluribus-0.1.1.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 logA 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.