Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Verdict Python SDK

PyPI distribution: cognifity-verdict. Python import: verdict.

The Verdict Python SDK. Auto-instruments your LLM calls via wrapt and captures them into a vendor-neutral Trace schema (attribute names follow the OpenTelemetry GenAI semantic conventions, but no OTel spans are emitted). Traces are written to SQLite by default (or any Storage adapter). Content capture (prompts/completions) is off by default — opt in with capture_content=True; when enabled, captured content is run through built-in regex + Luhn PII redaction before it is stored.

sample_rate controls the fraction of supported calls retained, and buffered_writes=True moves persistence to a background batched writer. Stored costs are best-effort estimates from Verdict's dated static base-price table; unknown models remain unpriced, and the values are not billing truth.

import verdict
from anthropic import Anthropic

verdict.init(service_name="my-app", storage="sqlite:///./verdict.db")
client = Anthropic()
# Use Anthropic normally — supported SDK calls are captured.

See the repository README for the full picture, the architecture decisions, and the examples.

Apache 2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cognifity_verdict-0.1.0a3.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognifity_verdict-0.1.0a3-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file cognifity_verdict-0.1.0a3.tar.gz.

File metadata

  • Download URL: cognifity_verdict-0.1.0a3.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cognifity_verdict-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 764f931c9dee3a16f11e110d16c29ea74d8b64c15e044b6a7d73feee6421e839
MD5 3d4834ee6f9d4041c880d18ac8612ac5
BLAKE2b-256 8752183e1b3875f074fbe48ecb0707df5f6f5e3cb87251a0aa86029fc4c51ef1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cognifity_verdict-0.1.0a3.tar.gz:

Publisher: publish.yml on cognifityai/verdict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cognifity_verdict-0.1.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for cognifity_verdict-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ad13f7be031344975a9cfa3d403bb8d64180f979a514d0fd5252900231cf48b
MD5 e12a204570f2dd5a9fee4c114c4dad1f
BLAKE2b-256 312e404fc34c7d1aa706346b48b7c741dafda48bce6fc6244fba25e7d92484b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cognifity_verdict-0.1.0a3-py3-none-any.whl:

Publisher: publish.yml on cognifityai/verdict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page