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://127.0.0.1:8081" # Or your deployed server URL

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.3.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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vvuq_client-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ca70cd2792c76ca75fa0c54ce074bf5d3049867524df897fdf6695e41765e710
MD5 9dbeed2267869626f1c3061f50194436
BLAKE2b-256 69cfaec5dbe4cb8bfaf32910aadef8e9e5ab955862ecad773605036d0114abe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vvuq_client-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 02cd974306058f6e7051e43ca80ddc8aa458f2fec64c526e3c16eada0f233d99
MD5 5a63760694994e456537a75723c18155
BLAKE2b-256 849a05947a81b37396cd3ca172ddf21055e900992d85db1ca00f3d087c716e65

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