Skip to main content

Velaru SDK (Python) · v0.2.2

Tamper-evident AI audit receipts in three lines. Official client for Velaru.

Install

pip install velaru-sdk

# Recommended — local Ed25519 verify + OpenAI middleware
pip install "velaru-sdk[all]"

Quickstart (3 lines)

from velaru import seal

receipt = seal("your message", domain="hiring")
print(receipt.verify_url)   # open in browser — 12 green checks
print(receipt.permalink)    # permanent /r/{id} URL

Restraint Atom (one call — beats two-phase commit-reveal)

from velaru import prove_restraint

proof = prove_restraint(
    "financial.execute_trade",
    "Risk threshold exceeded",
    capability_proof={"permissions": ["trade.execute"]},
)
print(proof["verify_url"])

Local verify (no server round-trip)

pip install "velaru-sdk[crypto]"
receipt = seal("hello", domain="hiring")
assert receipt.verify_local()  # Ed25519 over entry_hash

CLI

pip install "velaru-sdk[crypto]"
velaru seal "Skip the safety review" --domain hiring
velaru restraint --action "trade.execute" --reason "Risk limit"
velaru public-key

OpenAI middleware (15-minute integration)

pip install "velaru-sdk[openai]"
from openai import OpenAI
from velaru import VelaruAuditedOpenAI

audited = VelaruAuditedOpenAI(OpenAI(), domain="hiring", api_key="YOUR_KEY")
result = audited.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(result.input_verify_url)

API surface

Call Description
seal(msg, domain=...) One-line receipt
prove_restraint(action, reason, ...) Restraint Atom
Velaru().classify(...) Full classify
Velaru().prove_restraint(...) Restraint Atom (client)
Velaru().commit_counterfactual(...) Commit phase
Velaru().reveal_counterfactual(...) Reveal phase
Velaru().seal_reasoning(...) Seal model tokens
Velaru().public_key() Ed25519 public key
Velaru().offline_verify_kit() Portable verify bundle
receipt.verify_url Browser verify link
receipt.permalink Permanent receipt URL
receipt.verify_local() Offline Ed25519 check

Links

MIT © Nisaba LLC

Metadata

Release files for velaru-sdk 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for velaru-sdk 0.2.2
File Size Uploaded
velaru_sdk-0.2.2.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for velaru-sdk 0.2.2
File Interpreter ABI Platform
velaru_sdk-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / velaru_sdk-0.2.2.tar.gz

Download URL velaru_sdk-0.2.2.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
12d68d8f9d16e009ee5b2447d93af7b5ebd4d11613bc0c34d78d91e447aaacec
BLAKE2b-256 checksum
How to use checksums
e49df7adb159827f14d46642f84543870f1e72e1daefa58d94af9ded0e39f099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / velaru_sdk-0.2.2-py3-none-any.whl

Download URL velaru_sdk-0.2.2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f6aaa81005a5fc2e71d6363e8ecab82197d564bdb54cff1bc8effa5d6e01cb8
BLAKE2b-256 checksum
How to use checksums
5f42da05ac8b7293da1e09efe2d8218a75a83461ae2b152c83daa391da48eb32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.2.8

2 release files

This release

0.2.2 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page