Skip to main content

Official Client SDK for the VVUQ Verification API

Project description

VVUQ Client SDK

The official Python client for the VVUQ (Verification, Validation & Uncertainty Quantification) API.

Installation

pip install vvuq-client

Usage

from vvuq import VVUQClient

# Initialize with your API Key
client = VVUQClient(api_key="your_api_key_here")

# 1. Create a Contract
receipt = client.create_contract(
    title="Mathlib Verification",
    description="Verify algebraic identity",
    claims=[{
        "theorem": "theorem test : 1 + 1 = 2",
        "allowed_imports": ["Mathlib.Data.Nat.Basic"]
    }],
    issuer_id="my_agent"
)

print(f"Contract Created: {receipt.contract_id}")

# 2. Submit a Proof
result = client.submit_proof(
    contract_id=receipt.contract_id,
    proof_code="theorem test : 1 + 1 = 2 := by rfl",
    prover_id="my_prover"
)

if result.verdict == "ACCEPTED":
    print("✅ Proof Verified!")
else:
    print(f"❌ Failed: {result.errors}")

Configuration

You can also set your API key/URL via environment variables:

export VVUQ_API_KEY="your_key"
export VVUQ_API_URL="http://api.vvuq.org"  # If self-hosted

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

vvuq_client-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

vvuq_client-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file vvuq_client-0.1.0.tar.gz.

File metadata

  • Download URL: vvuq_client-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for vvuq_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9812360b384cee80b8871d83f2af17d18fbdd9562619d84a442aaaa05e13f920
MD5 d321fcde6601dd8dad6cfa33005beb9c
BLAKE2b-256 1bc17a2ee2c2fb5ac5429cc887d7aceb7170d0b603b49c331f9c59986beaa37e

See more details on using hashes here.

File details

Details for the file vvuq_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vvuq_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for vvuq_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b120326a11a922ebbc52f7e5d3f943fdecfa2df94728344f2ec63f05049e6a4
MD5 56d299668f0a08161db7d4372d2f5d17
BLAKE2b-256 14a4697d356f4f71f53372c476f4207a43d7a3c2aa94ddab6a3298ea921c9bee

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