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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vvuq_client-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d04263ebebfadc0cde48ce62ac9d33a62607273a23132870d48ffe9874d43b35
MD5 3bd3a8c9565ff5820c54fa9328cca655
BLAKE2b-256 ca34aedcf1a755fabca46a8371ff26fe466e9860134fb5e0f826a889e1df3c31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vvuq_client-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f860494588a6c294b9e4a02417574f7ebb12149018c925ea33d76c3844766b9
MD5 45d14a4a4f5066cf89dcb7e7a1b2870b
BLAKE2b-256 59c62a41b7ac035a2b7a810d91ea751fac28be20302286a5946eb261f024dde0

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