Skip to main content

Python SDK for the Claw Agent Gateway

Project description

clawtrak-gateway

Python SDK for the Claw Agent Gateway. Zero runtime dependencies.

Install

pip install clawtrak-gateway

Quick Start

from clawtrak_gateway import ClawGateway

gw = ClawGateway(token="claw_your_token_here")

# Read a page as HTML
page = gw.read("pixelfamiliar.ca", "/")
print(page.body)

# Get clean Markdown
md = gw.markdown("pixelfamiliar.ca", "/about")
print(md.body)

# Discover action contracts
actions = gw.actions("pixelfamiliar.ca")
for a in actions:
    print(f"{a.action_name}: {a.description}")

# Execute an action
result = gw.execute("pixelfamiliar.ca", "get_sitemap")
print(result.body)

Configuration

gw = ClawGateway(
    token="claw_...",                    # Required
    base_url="https://...",              # Default: production
    timeout=30,                          # Default: 30s
)

Response

@dataclass
class GatewayResponse:
    status: int
    headers: dict
    body: str
    verified: bool        # Was the agent verified?
    proxy_mode: str | None  # 'markdown' if ClawProxy converted

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

clawtrak_gateway-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

clawtrak_gateway-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file clawtrak_gateway-0.1.0.tar.gz.

File metadata

  • Download URL: clawtrak_gateway-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for clawtrak_gateway-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79d7a40ef5c35d264dab0c6b711c464b89ecdc070fd778e9ac0b2558ffe9de3e
MD5 5a6c1b351d8ffd72693833f1c224871f
BLAKE2b-256 6317e962d0b4c82faed0c102dac0d68ba44fb48d1bb6c9cdd3bd3e00b2a44d61

See more details on using hashes here.

File details

Details for the file clawtrak_gateway-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clawtrak_gateway-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6f939e24d98858807e694fb460f54943706879b8c6afdadd38f14fb60110af
MD5 3295decf9c59e15b9aa7939ca59e45ff
BLAKE2b-256 3494773aa5009ddde46329f6a89991a2ccd489179574ebba8ae32f369477555b

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