Python SDK for the Manifest API — structured action manifests for AI agents
Project description
manifest-api
Python SDK for the Manifest API — extracts structured action manifests from web pages so AI agents know what they can do, not just what's on screen.
Install
pip install manifest-api
Quickstart
Sync
from manifest_api import ManifestClient
client = ManifestClient(api_key="your-key") # or set MANIFEST_API_KEY env var
manifest = client.get("https://example.com")
print(manifest.current_page_state)
print(manifest.actions)
# Convenience helpers
action = manifest.action("submit-form")
inputs = manifest.actions_of_type("input")
required = manifest.required_actions
Async
import asyncio
from manifest_api import AsyncManifestClient
async def main():
async with AsyncManifestClient(api_key="your-key") as client:
manifest = await client.get("https://example.com")
print(manifest.current_page_state)
asyncio.run(main())
All methods
# Both ManifestClient and AsyncManifestClient expose:
manifest = client.get("https://example.com") # POST /manifest → Manifest
health = client.health() # GET /health → dict
valid = client.session_valid() # GET /session-status → bool
Manifest helpers
manifest.action("id") # → Action | None
manifest.actions_of_type("input") # → list[Action]
manifest.required_actions # → list[Action]
Action types
button · input · textarea · select · checkbox · radio · other
Error handling
from manifest_api import AuthenticationError, RateLimitError, APIError
try:
manifest = client.get("https://example.com")
except AuthenticationError:
print("Check your API key")
except RateLimitError:
print("Slow down — rate limit hit")
except APIError as e:
print(f"Server error {e.status_code}")
Docs
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
manifest_api-0.1.0.tar.gz
(9.6 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 manifest_api-0.1.0.tar.gz.
File metadata
- Download URL: manifest_api-0.1.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b267ffa9e6c704a37c996f6f40fad60a7d7f3359e1b5f602a8caf3455ab93d73
|
|
| MD5 |
6a5190416d261d0d20a44f022cb3fd0c
|
|
| BLAKE2b-256 |
489ba34ef45ce758ffd8f43ff9938688b16dbae562a5283e974a948b74445fe0
|
File details
Details for the file manifest_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: manifest_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0f2d23ce9ec17b9f14c5261079f4d1f064c5fcb2fd4b1a2d48ea2fb94455e41
|
|
| MD5 |
53182affe4626d39dc2b3af03bac140e
|
|
| BLAKE2b-256 |
5b1ebe5cdb96c34325c05477a44bc489d1d3055bc6e10c4e7bbc68982bdda179
|