Skip to main content

Official Python SDK for the Lenz Hallucination Verification API (preview)

Project description

lenz-io

Official Python SDK for the Lenz Hallucination Verification API.

Status: preview placeholder. The 1.0.0-rc.1 release lands soon at github.com/lenzhq/lenz-io-python.

In the meantime, the API is live and documented at https://lenz.io/api/v1/docs/.

What this will be

A thin, typed Python wrapper around the Lenz Public API v1, the fact-check API for AI product teams.

from lenz_io import Lenz

client = Lenz(api_key="lenz_...")
v = client.verify_and_wait(claim="Sharks don't get cancer")
print(v.verdict.label, v.verdict.score)
# false 2.0

Sources, audit trail, and webhook helpers included.

License

MIT

Project details


Download files

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

Source Distribution

lenz_io-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

lenz_io-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file lenz_io-0.0.1.tar.gz.

File metadata

  • Download URL: lenz_io-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for lenz_io-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9924dfaaf4954e7b2791cab3aa845500c793f07c43de8f7d0975848a73459555
MD5 364fac39f4b356c5382967c07521bb48
BLAKE2b-256 58359e35e7646ff8a667d643eecc94d6f60e892461d69594f2458f21481440a7

See more details on using hashes here.

File details

Details for the file lenz_io-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: lenz_io-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for lenz_io-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a08a5d287129fe7a7f493e57b9827e150ae90757660b0ab1e7164cb557ddf43f
MD5 e4c55aab270d4b75880f0c1d48e41337
BLAKE2b-256 25b1e0548f4d82ccc1d8994da889fde0bc9cf0255001f576ddf5c73f8f258b5e

See more details on using hashes here.

Supported by

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