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.1.0.tar.gz (6.1 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.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for taskpod-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1617df2a76cabc19bb14ce49dcc0e10df6321fbcf7873e1b2d6567f3d5bf3023
MD5 c291c11b19fbb09714fcefd4776ae4f2
BLAKE2b-256 ec85dd74fa9e872c3930aaf4e9709baf185a4fe0094734c8a4c4ccea15b0ba4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: taskpod-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0877f7070ade3c852b6bb1ffe00803f5597bbf5df01a008272c5b5c833a91423
MD5 21ab5dedcc652cce71f74acc69912784
BLAKE2b-256 87de0e995e3a500a3f3237659bf965d9c152df44757789d8e711f0a6d6b07981

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