acretix-verify-sdk
Python client for the AI Verify API — submit work against a rubric and receive a scored, explained verdict with an Ed25519-signed, independently re-verifiable proof.
import os
from acretix_verify import AcretixVerify
client = AcretixVerify(api_key=os.environ["VERIFY_API_KEY"])
rubric = client.compile_rubric({
"name": "invoice-check",
"criteria": [
{"key": "total_present", "type": "must_have", "primitive": "regex_match@1",
"config": {"pattern": r"Total: \$[0-9]+"}},
],
})
verdict = client.submit_verification(
rubric_id=rubric["rubric_id"],
submission={"inline": "Invoice... Total: $420"},
wait_ms=30000,
idempotency_key="invoice-001",
)
# verdict["determination"]: "met" | "partial" | "not_met" — flagged=True means needs_review:
# below the confidence threshold the engine abstains rather than asserting a verdict.
report = client.reverify(verdict["verification_id"])
# report["ok"] and report["chain_ok"] — the proof verifies against the published public key.
- Verdicts below the confidence threshold are flagged
needs_review— the engine abstains instead of guessing; your application decides what happens next. - Proofs are signed with Ed25519 and re-verifiable by any third party against the published public key — see the docs for the proof format.
- Also available:
get_verification,wait_for_verification,get_proof,get_usage,submit_feedback. - Usage is metered per verification by judge tier.
Standard library only (urllib). Python 3.9+.
License: MIT
Release files for acretix-verify-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| acretix_verify_sdk-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acretix_verify_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / acretix_verify_sdk-0.1.0.tar.gz
| Download URL | acretix_verify_sdk-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc91279ec6aaa64821be620eb0c3660a134a17397f7719664ca9545321519060
|
|
BLAKE2b-256 checksum How to use checksums |
fe700856f3922c064edc0669ae07277cb46117312ad76c10f226571790eca9d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / acretix_verify_sdk-0.1.0-py3-none-any.whl
| Download URL | acretix_verify_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e735e3a27e9f7bd75e5839d1e9187c3fbc9636d4da7fb009e3a56fc5c96bc24d
|
|
BLAKE2b-256 checksum How to use checksums |
e00675885df39fa510d57ab5d2906c3a74d12651ae4c59e3012bfcdcabf871c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|