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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(7.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taskpod-1.2.0.tar.gz.
File metadata
- Download URL: taskpod-1.2.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37cc0b5128bf6ed70cfa4680da45ffce9f47f7b40050de3a84c6316e7de55d2b
|
|
| MD5 |
1e0a7555a194769ba4bc0162806a59b9
|
|
| BLAKE2b-256 |
a40adb2c244e42caf5f97e95c92ccbad33018fd666e5cafa4729c7c00c900356
|
File details
Details for the file taskpod-1.2.0-py3-none-any.whl.
File metadata
- Download URL: taskpod-1.2.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fbf4135f37424a6f177599af09f4fbcec734c32e55dc4c9756e28d1582835ee
|
|
| MD5 |
31cdb386268af953b3fd639deed16828
|
|
| BLAKE2b-256 |
fd3acca80b0e3aefbcc32062d24261e1bd0fce5da633fc4f111d930089d2964c
|