auctra (Python SDK)
Stage 0/1 Python client — same Authority Protocol as @auctra/sdk.
Requires Python 3.9+.
pip install auctra==0.2.6
# local dev: pip install -e packages/python-sdk
Quick start (with intent anchor)
High-risk actions require create_intent first, then pass the returned intent (id + anchor_token) on execute:
from auctra import Auctra
client = Auctra(api_key="auctra_...", base_url="https://app.auctra.tech")
agent_id = "your-agent-uuid"
expires_at = "2027-01-01T00:00:00Z"
client.authority.issue(
subject=agent_id,
capabilities=["send_payment"],
expires_at=expires_at,
max_amount=500,
currency="USD",
)
created = client.create_intent(
title="Pay matched vendor invoices",
intent_type="payment",
risk_level="high",
max_risk_level="critical",
allowed_action_types=["send_payment"],
expires_at=expires_at,
)
intent = created["intent"]
preview = client.action.evaluate(
agent_id=agent_id,
action_type="send_payment",
payload={"amount": 50, "currency": "USD"},
intent=intent,
)
decision = client.action.execute(
agent_id=agent_id,
action_type="send_payment",
payload={"amount": 50, "currency": "USD", "target": "vendor:acme"},
intent=intent,
action={
"target": "vendor:acme",
"description": "Net-30 invoice payment",
"risk_level": "medium",
},
)
print(decision["decision"])
client.evidence.verify(payload=decision["evidence_payload"], evidence=decision["evidence"])
New-client gotcha
Sending only claimed_intent_id (without intent_anchor_token or the intent object) returns require_approval with a reason about the missing anchor. Pass intent= from create_intent, or set both claimed_intent_id and intent_anchor_token explicitly.
See docs/integrations/intent-anchors.md.
Public surface
client.create_intent | list_intents
client.list_agents | create_agent | get_agent
client.list_api_keys
client.approve_action_request | reject_action_request
client.list_incidents | open_incident | resolve_incident
client.list_compliance_packs | run_compliance_pack | list_compliance_runs
client.authority.issue | verify | delegate | revoke
client.action.evaluate | execute
client.get_action_request
client.evidence.verify
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 auctra-0.2.6.tar.gz.
File metadata
- Download URL: auctra-0.2.6.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
613d817267e3319b48b03fcb8d5120e7fa909532ff13aa02414eaa997973a14c
|
|
| MD5 |
5c5dce8d8aabf59cd0273aab49c41e69
|
|
| BLAKE2b-256 |
a75ff9c476457aae9d7ac372ce7c62db8ff143b68caf2bd4239015e2d9c8ae1e
|
File details
Details for the file auctra-0.2.6-py3-none-any.whl.
File metadata
- Download URL: auctra-0.2.6-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b5b4dffc8518595d0368a3b25abf7f1401cb18e02fe38fc42041df8e2b3572
|
|
| MD5 |
ce61b9fc9c54211ec88a5bc1af6a7718
|
|
| BLAKE2b-256 |
12706bff348f979948bf5e1d0da6b8d0aa0b68f88df9d9264ab86cdf7f19d4b7
|