Overview
ATP can be integrated with popular Python web frameworks to expose your tools as HTTP endpoints. This allows you to:- Serve tools via HTTP instead of WebSocket
- Integrate with existing web applications
- Use framework-specific features (middleware, authentication, etc.)
Supported Frameworks
Django
Full-featured web framework with ORM and admin interface
FastAPI
Modern, fast framework with automatic API documentation
Flask
Lightweight and flexible micro-framework
How It Works
When you integrate ATP with a web framework:- Register tools using the
ToolKitClientas usual - Register the client with the framework-specific registry
- Expose endpoints for toolkit and tool access
- No need to call
start()- the framework handles requests
Endpoint Structure
- GET
/atp/<toolkit_name>/- Get toolkit details and list of tools - GET
/atp/<toolkit_name>/<tool_name>/- Get tool context/schema - POST
/atp/<toolkit_name>/<tool_name>/- Execute a tool with parameters
Quick Comparison
| Feature | Django | FastAPI | Flask |
|---|---|---|---|
| Setup Complexity | Medium | Low | Low |
| Performance | Good | Excellent | Good |
| Auto Documentation | No | Yes | No |
| Async Support | Yes | Yes | No (by default) |
| Best For | Full applications | APIs & microservices | Simple apps |