Skip to main content

Python client for the AgentWorth governance gate (REST over the HTTP ingress)

Project description

agentworth (Python client)

A thin REST client for the AgentWorth governance gate. Point it at a running agentworth serve; every payment it submits runs through the same gate (auto-execute inside a mandate, park for operator approval, or block). A blocked outcome is a normal result, not an error. Standard library only - no dependencies.

from agentworth import AgentWorthClient

os = AgentWorthClient("http://127.0.0.1:8787", token="...")
res = os.pay(payee="tesco", payee_class="groceries", amount=8000,  # minor-units
             rationale="the weekly grocery shop")
print(res["outcome"])   # settled | pending | blocked | failed
print(os.status(), os.ready())

Idempotency keys are generated per pay() (override with idempotency_key=). The full-feature surface is the TypeScript SDK (@general-liquidity/agentworth); this is for Python hosts that talk to a running ingress.

License: MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentworth-0.1.8.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentworth-0.1.8-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file agentworth-0.1.8.tar.gz.

File metadata

  • Download URL: agentworth-0.1.8.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentworth-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a7693988b6a714d76b3ca3651bf4447c6d1eb0bcc5d58aedb3cf350b25850088
MD5 281adf5cdf62fc7897a735619804e62a
BLAKE2b-256 23a641beb3b4dcd3b9ff10492cb117b5049c8a97c936c27a73dca2d2ca2ef058

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentworth-0.1.8.tar.gz:

Publisher: release.yml on general-liquidity/agentworth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentworth-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: agentworth-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentworth-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 427eca530da0c3ad26c1ffed2773f51da4391304052661c98c0da4d2a3348071
MD5 c318a3aaa100e035113c376b99755db7
BLAKE2b-256 3b2537c0dfdf91c34542d39bafae7cc11e079b4c5efd680c9034071a9b57fdd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentworth-0.1.8-py3-none-any.whl:

Publisher: release.yml on general-liquidity/agentworth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page