Official Python SDK for ABS Core — AI Agent Governance Infrastructure
Project description
ABS Core Python SDK
Official Python SDK for ABS Core — AI Agent Governance Infrastructure.
Installation
pip install abs-sdk
Quick Start
from abs_sdk import ABSClient
client = ABSClient(
dsn="abs://my-workspace.abscore.app",
token="abs_pat_xxx"
)
# Evaluate a tool call before executing
verdict = client.evaluate_tool("fs.write", {
"path": "/etc/passwd",
"content": "malicious"
})
if verdict.decision == "DENY":
raise PermissionError(f"Blocked by ABS: {verdict.policy_result.reason}")
# Send agent heartbeat
client.heartbeat("agent-123")
# Check bond status
bond = client.get_bond("agent-123")
print(f"Bond balance: ${bond.balance}")
Features
- MCP Bridge: Evaluate tool calls against the ABS Policy Engine (
evaluate_tool,evaluate_batch) - Agent Management: Register agents, send heartbeats, get status
- Bond/Slash: Create financial bonds, check slashing history
- Audit Export: Export governance audit trail
- Local Entropy: Calculate Shannon entropy offline (no API call)
- Zero Dependencies: Uses only Python stdlib (
urllib,json,math)
DSN Format
abs://<workspace-id>.abscore.app
License
MIT — See LICENSE for details.
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
abs_sdk-10.1.3.tar.gz
(12.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
abs_sdk-10.1.3-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file abs_sdk-10.1.3.tar.gz.
File metadata
- Download URL: abs_sdk-10.1.3.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95622fe0fe7592dfe1f943bd5cba82cf50ec7044e45c0df3da96a572c2520eed
|
|
| MD5 |
3fcd7c49461d82e26171ac063644f6fe
|
|
| BLAKE2b-256 |
7f5388e111a61b5ec21377dbc19d7a0d08f60e05d5ce74cdf34a3649dfa9b5a0
|
File details
Details for the file abs_sdk-10.1.3-py3-none-any.whl.
File metadata
- Download URL: abs_sdk-10.1.3-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df2fdb814a21ccd35df2bda9e0c4d897de781cd1f251fdd5428d019ccf84a921
|
|
| MD5 |
8e6d930fbbc639f146a67343f1949fc5
|
|
| BLAKE2b-256 |
1a905460200cd7127daed4463036807e748972f29ccec2d33c756c04c86f3864
|