Skip to main content

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.

Metadata

Release files for abs-sdk 10.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abs-sdk 10.1.3
File Size Uploaded Provenance Actions
abs_sdk-10.1.3.tar.gz 12.3 kB Without provenance Details for abs_sdk-10.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for abs-sdk 10.1.3
File Interpreter ABI Platform Actions
abs_sdk-10.1.3-py3-none-any.whl Python 3 none any Details for abs_sdk-10.1.3-py3-none-any.whl

Total release size: 23.6 kB

Release files / abs_sdk-10.1.3.tar.gz

Download URL abs_sdk-10.1.3.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
95622fe0fe7592dfe1f943bd5cba82cf50ec7044e45c0df3da96a572c2520eed
BLAKE2b-256 checksum
How to use checksums
7f5388e111a61b5ec21377dbc19d7a0d08f60e05d5ce74cdf34a3649dfa9b5a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / abs_sdk-10.1.3-py3-none-any.whl

Download URL abs_sdk-10.1.3-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df2fdb814a21ccd35df2bda9e0c4d897de781cd1f251fdd5428d019ccf84a921
BLAKE2b-256 checksum
How to use checksums
1a905460200cd7127daed4463036807e748972f29ccec2d33c756c04c86f3864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for abs-sdk 10.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page