Skip to main content

plures

The official Python client for Plures: human judgment as an API for AI agents. Send a decision to ID verified people and get their consensus back before your agent acts. A human in the loop step you can call like any other API.

pip install plures

Python 3.8+, standard library only.

Use it

from plures import Plures

plures = Plures()  # reads PLURES_API_KEY, or Plures("pk_test_...")

task = plures.verify(
    "Does the invoice match the order?",
    ["Matches", "Does not match"],
    context="Order: 48 chairs, $4,218. Invoice: 48 chairs plus $180 freight, $4,398.",
    verifiers=3,
)
result = task["result"]
if result and result["agreement"] == 1:
    print("Act on:", result["answer"])
else:
    print("Not unanimous: send to the team")

Get a free test key at plures.si. Test keys complete at once with the first option (or metadata["test_answer"]) and never reach real people. Set metadata["test_outcome"] to split, tie, expired or slow to test the cases you route to your own team.

Production: webhooks

plures.create_task(
    "Should this customer get a refund?", ["Approve", "Decline"],
    context=ticket_text, webhook_url="https://your.app/plures",
    metadata={"order_id": order_id}, idempotency_key="refund-%s" % order_id,
)

# In your webhook handler (Flask shown), pass the raw body exactly as received
from plures import verify_webhook
event = verify_webhook(request.get_data(), request.headers.get("Plures-Signature"), WEBHOOK_SECRET)

API

  • create_task(question, options, idempotency_key=None, **fields): fields are context, image_url, instructions, verifiers (1, 3, 5, 7 or 9), max_verifiers, presence_check (default True), webhook_url, metadata, expires_in
  • get_task(id), list_tasks(status=None, limit=None, starting_after=None), cancel_task(id)
  • wait_for(id, timeout=600, interval=3): poll until settled
  • verify(question, options, timeout=600, **fields): create and wait
  • verify_webhook(raw_body, signature_header, secret): check a webhook and return the event

Errors raise PluresError with .status and .type. Server errors are retried twice.

Examples for LangGraph and the OpenAI Agents SDK: github.com/plureslabs/plures. Full reference: plures.si/docs.

Metadata

Release files for plures 1.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 plures 1.1.0
File Size Uploaded Provenance Actions
plures-1.1.0.tar.gz 4.5 kB With provenance Details for plures-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.8 kB

Release files / plures-1.1.0.tar.gz

Download URL plures-1.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3e0fa1e6e8b67ce60b7b530f9047a9086731852a3de58b04d7537c0332a87aac
BLAKE2b-256 checksum
How to use checksums
567e7e1370f75f1046c1ae14d852c8bfb3fe1427c9b78dbef7f28b43d721d6ac
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 Oct 28, 2026.

Transparency log

Release files / plures-1.1.0-py3-none-any.whl

Download URL plures-1.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77800859ff7cc56d990ff41f8b335dafc14331ac1f218798f4958d50630fa288
BLAKE2b-256 checksum
How to use checksums
b3e837f906681fc0a4b70cf60de8e5a2c86ec35b47b89959a5617564cc5feab3
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 Oct 28, 2026.

Transparency log

Security for plures 1.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 plures-1.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 Oct 28, 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

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