Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.34 KB

File metadata and controls

38 lines (25 loc) · 1.34 KB

AgentWrit Python SDK

Coming soon to public. The Python SDK is complete and will be published at devonartis/agentwrit-python after final cleanup.

What it does

The Python SDK wraps the broker's Ed25519 challenge-response registration flow into simple function calls. You don't need to manage nonces, signatures, or token renewal manually.

from agentwrit import AgentWritApp

agent = AgentWritApp(broker_url="http://localhost:8080").register(
    launch_token=LAUNCH_TOKEN,
    task_id="read-customer-42",
    requested_scope=["read:data:customers:42"],
)

# Use the token at your resource server
response = httpx.get(url, headers=agent.bearer_header)

# Done — release the credential
agent.release()

Current status

  • v0.3.0 — 15 acceptance tests passing against a live broker
  • Full agent lifecycle: register, renew, delegate, release
  • Scope checking and validation helpers
  • pip install agentwrit

In the meantime

You can use the broker's HTTP API directly from any language. See the Getting Started walkthrough for the full curl-based registration flow, or the API Reference for all endpoints.

Get notified

Watch this repo or file an issue to be notified when the SDK goes public.