ARQERA Python SDK — AI governance that learns
Project description
ARQERA Python SDK
AI governance that learns. Evaluate actions, enforce compliance, and maintain complete audit trails.
Installation
pip install arqera
Quick Start
from arqera import ArqeraClient
client = ArqeraClient(api_key="ak_...")
# Evaluate an action against governance laws
result = client.governance.evaluate(
"email.send",
description="Send quarterly report to investors",
context={"risk_level": "medium"},
)
print(result.verdict) # "proceed", "escalate", or "block"
if result.passed:
print("Action allowed")
elif result.needs_approval:
print("Requires human approval")
elif result.blocked:
print(f"Blocked: {result.explanation}")
Features
- Governance Evaluation -- Evaluate any action against 7 governance laws
- Ara Actions -- Execute actions with built-in governance checks
- Evidence Chain -- Complete audit trail for compliance (EU AI Act, SOC 2)
- Human-in-the-Loop -- Automatic escalation for high-risk actions
Governance
# Evaluate an action
result = client.governance.evaluate(
"data.delete",
description="Delete user records older than 2 years",
context={"record_count": 1500, "contains_pii": True},
)
# Check per-law results
for law in result.evaluations:
print(f"Law {law.law_id} ({law.law_name}): {law.result}")
Ara Actions
# Execute with governance
action = client.ara.execute(
"email.send",
description="Send quarterly report",
)
# If escalated, approve or reject
if action.status == "pending":
client.ara.approve(action.id)
# or: client.ara.reject(action.id, reason="Not ready")
# List pending actions
pending = client.ara.pending()
Evidence
# List evidence artifacts
artifacts = client.evidence.list(artifact_type="governance_evaluation")
# Export for compliance audit
export = client.evidence.export(
artifact_types=["governance_evaluation"],
start_date="2026-01-01",
end_date="2026-03-01",
export_format="json",
)
Requirements
- Python 3.10+
httpx(installed automatically)
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arqera-0.1.0.tar.gz
(5.8 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 arqera-0.1.0.tar.gz.
File metadata
- Download URL: arqera-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
881710d809c6c13e6a3f9a213fd5e274436704fa4ebdc0de9ec460155ce90e19
|
|
| MD5 |
dce5993c42442363593a4b45a7b8549c
|
|
| BLAKE2b-256 |
618d3efc781419ee8882395003d5cb7388033018e86c3b359e28dc25b06bdd78
|
File details
Details for the file arqera-0.1.0-py3-none-any.whl.
File metadata
- Download URL: arqera-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d661c34fff3e2bac4c8c01ae5ae2150fe741f037121fffd7f95fe1295bc0e11
|
|
| MD5 |
e5ba1ee75a40d80967e252bfac70b5c9
|
|
| BLAKE2b-256 |
cbfcbd4aa334f4ef2d67b15f770318346e3f6759e417ac4cf92790dcb7071398
|