Skip to main content

Python SDK for the AgentFlow API

Project description

agentflow-client

PyPI distribution name: agentflow-client. The package is published as agentflow-client 1.1.0 on PyPI. Python import remains agentflow.

Install from PyPI:

pip install agentflow-client

Inside the monorepo, the root runtime package is tracked separately as agentflow-runtime, while the SDK keeps the agentflow import path and CLI.

For a local editable install while developing from this repository:

python -m pip install -e "./sdk"
from agentflow import AgentFlowClient
client = AgentFlowClient("http://localhost:8000", api_key="dev-key")
order = client.get_order("ORD-20260404-1001")
print(order.status, client.get_metric("revenue", "24h").value)
from agentflow import AgentFlowClient
from agentflow.retry import RetryPolicy

client = AgentFlowClient("http://localhost:8000", api_key="dev-key")
client.configure_resilience(retry_policy=RetryPolicy(max_attempts=5))
from agentflow import AsyncAgentFlowClient

async def main() -> None:
    async with AsyncAgentFlowClient("http://localhost:8000", api_key="dev-key") as client:
        order = await client.get_order("ORD-20260404-1001")
        metric = await client.get_metric("revenue", "24h")
        print(order.status, metric.value)

The SDK exposes typed methods for v1 read, query, discovery, contract, lineage, changelog, and batch routes. Admin and operational surfaces are intentionally not wrapped as public typed methods: /v1/admin/*, /v1/webhooks, /v1/alerts, /v1/deadletter, /v1/slo, and /v1/stream/events.

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

agentflow_client-1.2.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

agentflow_client-1.2.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file agentflow_client-1.2.0.tar.gz.

File metadata

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

File hashes

Hashes for agentflow_client-1.2.0.tar.gz
Algorithm Hash digest
SHA256 72c34f6d834c80191da63e31f49d03da1672483fb759afb6a3f81b4d26e26c9f
MD5 96dcff426fee3b3b69e8f27565ab203f
BLAKE2b-256 01ce33c2e6c433290c846dcb612e5c3d655f7f386730f18b952c8c6f54bb8d33

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentflow_client-1.2.0.tar.gz:

Publisher: publish-pypi.yml on brownjuly2003-code/agentflow

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

File details

Details for the file agentflow_client-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentflow_client-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 904a91e3ec5afa44a9331364be2ca9cc35d0bec35a096ed25f4338f7d1f9c04f
MD5 b84c1ffa3e797aca00b0886752a5050e
BLAKE2b-256 d74da80e61b8125512241658b07b84abe3cae76a0eabede91c64cb7dfc90c6f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentflow_client-1.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on brownjuly2003-code/agentflow

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