Automated tool creation for Broccoli Backend from FastAPI endpoints
Project description
Broccoli Tool Creator
Automated tool creation for Broccoli Backend from FastAPI endpoints.
Installation
pip install broccoli-tool-creator
Features
- AST-based Extraction: Automatically extracts metadata from FastAPI endpoints including docstrings, parameters, and response models.
- Cognito Integration: Handles authentication with AWS Cognito SRP.
- Broccoli Integration: Automatically creates and updates tools on the Broccoli platform.
- Interactive UI: Injects "Create Tool" buttons directly into your FastAPI Swagger UI.
Quick Start
from fastapi import FastAPI
from broccoli_tool_creator import setup_tool_creator, ToolCreatorConfig
app = FastAPI()
config = ToolCreatorConfig(
broccoli_api_url="https://api.broccoli.com",
cognito_client_id="...",
cognito_pool_id="...",
cognito_username="...",
cognito_password="...",
owner_id="..."
)
setup_tool_creator(app, config)
License
MIT
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 broccoli_tool_creator-0.1.2.tar.gz.
File metadata
- Download URL: broccoli_tool_creator-0.1.2.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64c121e60f0c8a93ccc52fca82d7fa31f27959caad695da1e03a9eb7e45aacbb
|
|
| MD5 |
a5402a7a03627516380e8f657fc66931
|
|
| BLAKE2b-256 |
8d7ed9f90d940895346815cd37d935e2d926de4951638b62318af17a58a2689b
|
File details
Details for the file broccoli_tool_creator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: broccoli_tool_creator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f8e4c82395db82cf5572ba25541858eb3b21d35d7afae091495e4c1d8c0aaae
|
|
| MD5 |
9135571cf71c55a5952b9e65f0952991
|
|
| BLAKE2b-256 |
61b51bfdd1fdbd3c9e734c8bb496c9f0344d07d3d198edf43a45893867d5d1fa
|