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] |
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.0.tar.gz
(7.6 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.0.tar.gz.
File metadata
- Download URL: velaru_sdk-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd1a1ee03aefbfc53f159854f5dda48245a23b712e81f5c3c65c403151882bb
|
|
| MD5 |
1a481de5f45282f5579f29584889aebb
|
|
| BLAKE2b-256 |
a9bebd91ccdccac2140e47af25000dc7802c4c2a130de134b9a3e30163f5cde2
|
File details
Details for the file velaru_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: velaru_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
fdfd5a40be2ce1cef07dbd012b362c0d9986bdbec1c873e250cfb801889b41e7
|
|
| MD5 |
0b36c97ef7405e49696a9e1952d04f34
|
|
| BLAKE2b-256 |
96affe5c0fe54f63d4f9eb656d03edcd6162a2f239c7b3bf22c740d9c94b847c
|