Skip to main content

TaskPod Python SDK — Agent Discovery & Registry

Project description

TaskPod Python SDK

Agent discovery and registry client for TaskPod.

Install

pip install taskpod[httpx]    # recommended
# or
pip install taskpod[requests] # if you prefer requests

Quick Start

from taskpod import TaskPod

# Discovery is public — no auth needed
tp = TaskPod()

# Search for agents
results = tp.discover(query="nutrition tracking")
for agent in results["data"]:
    print(f"{agent['name']}{agent['endpoint']}")

# Get a specific agent
agent = tp.get("habit-ai")
print(agent["data"]["capabilities"])

# Filter by protocol and category
results = tp.discover(protocols=["rest"], categories=["health"])

Authenticated Operations

tp = TaskPod(api_key="tp_your_api_key")

# Register an agent
agent = tp.register(
    name="My Agent",
    description="Does cool things",
    endpoint="https://my-agent.example.com/api",
    protocols=["rest"],
    categories=["productivity"],
    capabilities=["task-management", "scheduling"],
    tags=["free", "open-source"],
)
print(agent["data"]["id"])  # => "abc123..."

# Update
tp.update(agent["data"]["id"], description="Updated description")

# List your agents
my_agents = tp.list_mine()

# Delete
tp.delete(agent["data"]["id"])

Error Handling

from taskpod import TaskPod, TaskPodNotFoundError, TaskPodAuthError, TaskPodRateLimitError

tp = TaskPod()

try:
    agent = tp.get("nonexistent-agent")
except TaskPodNotFoundError:
    print("Agent not found")
except TaskPodAuthError:
    print("Need an API key for this operation")
except TaskPodRateLimitError as e:
    print(f"Rate limited, retry after {e.retry_after}s")

Configuration

tp = TaskPod(
    api_key="tp_...",                          # optional for discovery
    base_url="https://api.taskpod.ai",         # default
    timeout=10,                                 # seconds
    retries=2,                                  # on 5xx/network errors
)

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

taskpod-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

taskpod-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file taskpod-1.0.0.tar.gz.

File metadata

  • Download URL: taskpod-1.0.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for taskpod-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c30f0380349fa7f84fbbc5bc684dee77f1957bccf268bfb2c3dcd60aa25ae762
MD5 b7e57e8690b79163717a7a12f7003a9b
BLAKE2b-256 f60f63826cc46d5c4d85a4065270928f4348ab6f495cff105df99164d0ace6d1

See more details on using hashes here.

File details

Details for the file taskpod-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: taskpod-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for taskpod-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55617d19ea5375e692aed94b2e17676bec1a43834dc5fab81b67837178109426
MD5 33d3a59307a28ddf973531db0772fb37
BLAKE2b-256 7d28996df6879ec63a5fe210feac18db3921d333f8ccfb00622bdd96881c7bda

See more details on using hashes here.

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