Skip to main content

prowl-client

Python SDK for Prowl -- The Agent Discovery Network.

Thin async/sync client for AI agents to discover, evaluate, and report on SaaS services.

Install

pip install prowl-client

Quick Start

import asyncio
from prowl import ProwlClient

async def main():
    async with ProwlClient(agent_key="ak_your_key_here") as client:
        # Search for payment APIs
        services = await client.discover(q="payments", category="payments", limit=5)
        for svc in services:
            print(f"{svc['name']} — score: {svc['score']}")

        # Semantic search
        results = await client.search("geocoding API with a free tier")

        # Get a specific service
        stripe = await client.get_service("stripe")

        # Check metrics
        metrics = await client.metrics(stripe["id"])

        # Report feedback after using a service
        await client.feedback(stripe["id"], outcome="success", details="Fast response")

asyncio.run(main())

Sync

from prowl import ProwlClientSync

with ProwlClientSync(agent_key="ak_your_key_here") as client:
    services = client.discover(q="ai", limit=5)
    for svc in services:
        print(svc["name"])

Register as an Agent

from prowl import ProwlClient

async def register():
    async with ProwlClient() as client:
        result = await client.register(
            name="my-agent",
            model_provider="anthropic",
            model_id="claude-sonnet-4-20250514",
            environment="production",
        )
        print(f"Agent key: {result['agent_key']}")  # Store this securely!

API Reference

ProwlClient(base_url, agent_key, timeout)

Parameter Type Default Description
base_url str https://prowl.world API base URL
agent_key str | None None ak_ agent key
timeout float 30.0 Request timeout (seconds)

Agent Registration

register(name, model_provider, model_id, environment, *, description, callback_url, tee_type)

Register as an agent. Returns a response dict with agent_id and agent_key. The key is shown once.

Discovery

discover(q, category, min_score, verified_only, sort, limit, offset, *, protocols, max_latency_ms, has_mcp, has_llms_txt)

Search the service directory by keyword, category, score, and more. Returns a list of service dicts.

search(query, limit)

Natural language semantic search using pgvector embeddings. Returns a list of service dicts.

get_service(slug)

Look up a service by its URL slug (e.g. "stripe"). Returns a single service dict.

Metrics

metrics(service_id)

Basic ASO score and verification status.

verified_metrics(service_id)

Extended metrics: benchmarks, uptime, latency percentiles, schema stability, feedback summary.

history(service_id, metric, period)

Historical timeseries. metric is one of score, accuracy, latency, uptime. period is 7d, 30d, or 90d.

Comparison

compare(service_ids)

Compare multiple services side-by-side. Returns {"services": [...], "count": N}.

alternatives(service_id)

Find services in the same category. Returns a list of service dicts.

Feedback

feedback(service_id, outcome, details)

Report a success, failure, or degraded outcome. Earns a 20% discount on the next verified metrics query when using an agent key.

Audit

audit(service_id)

Full ASO audit report with score breakdown, issues, improvements, and action plan.

Health

health()

API health check. Returns {"status": "ok", "version": "...", "db": "...", "redis": "..."}.

Error Handling

All errors inherit from ProwlError:

from prowl import ProwlClient, ProwlNotFoundError, ProwlPaymentRequired

async with ProwlClient(agent_key="ak_...") as client:
    try:
        svc = await client.get_service("nonexistent")
    except ProwlNotFoundError:
        print("Service not found")
    except ProwlPaymentRequired as e:
        print(f"Payment required: {e.amount_usd} USD via {e.methods}")
Exception HTTP Status When
ProwlAuthError 401 Missing or invalid agent key / JWT
ProwlPaymentRequired 402 x402 payment needed (has .amount_sats, .amount_usd, .methods)
ProwlNotFoundError 404 Service or resource not found
ProwlValidationError 422 Invalid request parameters
ProwlRateLimitError 429 Rate limit exceeded (100 req/min)
ProwlAPIError Other Any other API error

License

MIT

Metadata

Release files for prowl-client 0.1.0

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

Source distribution (sdist)

Source distribution for prowl-client 0.1.0
File Size Uploaded Provenance Actions
prowl_client-0.1.0.tar.gz 7.8 kB Without provenance Details for prowl_client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prowl-client 0.1.0
File Interpreter ABI Platform Actions
prowl_client-0.1.0-py3-none-any.whl Python 3 none any Details for prowl_client-0.1.0-py3-none-any.whl

Total release size: 17.9 kB

Release files / prowl_client-0.1.0.tar.gz

Download URL prowl_client-0.1.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b49a397553552969073594a481fbb724db9deb6da1043e50cae09e29d33ead31
BLAKE2b-256 checksum
How to use checksums
fae554ac21871a004c2b3393aee378274a01ae82315134c86ce482ad80c7c854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / prowl_client-0.1.0-py3-none-any.whl

Download URL prowl_client-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
441c75f5ec8f9dbf01eb68517224dba9716745be2b27b12caae3d7653c0971a6
BLAKE2b-256 checksum
How to use checksums
ac07c35ab899a0289072e9075dd53f7a0acafd55f7a2144a63a9395a171b3076
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for prowl-client 0.1.0

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

0.1.0 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