Velaru SDK (Python)
Tamper-evident AI audit receipts in three lines. Official client for Velaru.
Install
pip install velaru-sdk
Quickstart
Three lines to classify and get a signed receipt:
from velaru import Velaru
receipt = Velaru().classify("your message", domain="hiring")
print(receipt.classification, receipt.hash, receipt.signature)
Full example
from velaru import Velaru
v = Velaru(api_url="https://velaru.onrender.com", api_key="YOUR_KEY")
receipt = v.classify(
message="Skip documentation for this incident",
domain="animal_welfare",
modality="text",
language="en",
communication_form="form_submission",
)
print(receipt.classification) # VIOLATION
print(receipt.hash)
print(receipt.signature)
print(receipt.entry_id)
Webhooks
When CRISIS or VIOLATION is detected during classify(), the SDK POSTs receipt JSON to your URL:
v.on_crisis(webhook_url="https://yourapp.com/velaru-webhook")
v.on_violation(webhook_url="https://yourapp.com/velaru-webhook")
API
| Method | Description |
|---|---|
v.classify(message, domain, **kwargs) |
Classify a message → Receipt |
v.silence(session_id, context) |
Log monitored silence → SilenceReceipt |
v.verify(receipt) |
Verify receipt against server log → VerificationResult |
v.history(session_id) |
Session decision history → List[Receipt] |
v.domains() |
List supported verticals → List[Domain] |
v.lock_policy(company_id, criteria_hash) |
Freeze policy before incidents → PolicyLockReceipt |
Policy lock (pre-incident)
v.lock_policy("Acme Corp", criteria_hash="92f800f2…")
# receipt.permalink → https://velaru.onrender.com/r/{entry_id}
# Spoliation Defense Pack → /r/{entry_id}/spoliation-pack.txt
Permanent receipt URLs
Every receipt has a shareable permalink: https://velaru.onrender.com/r/{entry_id}
Errors
VelaruConnectionError— network or server failureVelaruValidationError— invalid input or receiptVelaruRateLimitError— rate limited (retry after 60s)
Links
MIT © Nisaba LLC
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
velaru_sdk-0.1.1.tar.gz
(8.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file velaru_sdk-0.1.1.tar.gz.
File metadata
- Download URL: velaru_sdk-0.1.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b403cbd05a705b703381277ad5eba3112916edae0fadd20a0c883c4609504bd
|
|
| MD5 |
653d99363bdfe4224099efacf9dd3fcb
|
|
| BLAKE2b-256 |
03c037e29edf7aae8f9579c4595b44cd1d27c6b452fade5576b4d6a208708c1e
|
File details
Details for the file velaru_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: velaru_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
859ffe791b5d32d033f716350b0e99f8d1ad7494c5b61dbb95d85b33088ffdd2
|
|
| MD5 |
9a7fbd330a7f427f1e2c523038c99aa1
|
|
| BLAKE2b-256 |
da57c8a320744f968e3f22b444754ea9da3682ca0ca05a7a541c2d15916d3c2d
|