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}")

🔑 Getting Access

VVUQ is currently in Private Beta. To obtain an API key, please contact: englund@mit.edu

Configuration

To use the production API, set your environment variables:

export VVUQ_API_KEY="your_received_key"
export VVUQ_API_URL="http://18.25.11.95:8081"

Then initialize the client:

# Client automatically picks up env vars
client = VVUQClient()

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.2.tar.gz (4.3 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.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vvuq_client-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 59d50c8a8ff34ee784eec1d10c1724d5a25d341abbb9cfebaf9aca8debf8e7a5
MD5 f6f96abddeecaf4453d2ff8affd2ed53
BLAKE2b-256 79b90889bb444aeef8f4c5885ce7c27f0f34f8b3357c58769d78b402cf24bf54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vvuq_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afe3866778e768d31828fdb7ce009e99f2f78fffc5a1440087c9a8da303cb108
MD5 32e270156f998ed24c3851fb3f331b8e
BLAKE2b-256 d70f8ed33de49ef06b21aa1dac456e197124baa586a1e9a40205c7898440bd04

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