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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d7a40ef5c35d264dab0c6b711c464b89ecdc070fd778e9ac0b2558ffe9de3e
|
|
| MD5 |
5a6c1b351d8ffd72693833f1c224871f
|
|
| BLAKE2b-256 |
6317e962d0b4c82faed0c102dac0d68ba44fb48d1bb6c9cdd3bd3e00b2a44d61
|
File details
Details for the file clawtrak_gateway-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clawtrak_gateway-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6f939e24d98858807e694fb460f54943706879b8c6afdadd38f14fb60110af
|
|
| MD5 |
3295decf9c59e15b9aa7939ca59e45ff
|
|
| BLAKE2b-256 |
3494773aa5009ddde46329f6a89991a2ccd489179574ebba8ae32f369477555b
|