Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

broccoli_tool_creator-0.1.2.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

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

broccoli_tool_creator-0.1.2-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

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

Hashes for broccoli_tool_creator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 64c121e60f0c8a93ccc52fca82d7fa31f27959caad695da1e03a9eb7e45aacbb
MD5 a5402a7a03627516380e8f657fc66931
BLAKE2b-256 8d7ed9f90d940895346815cd37d935e2d926de4951638b62318af17a58a2689b

See more details on using hashes here.

File details

Details for the file broccoli_tool_creator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for broccoli_tool_creator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8e4c82395db82cf5572ba25541858eb3b21d35d7afae091495e4c1d8c0aaae
MD5 9135571cf71c55a5952b9e65f0952991
BLAKE2b-256 61b51bfdd1fdbd3c9e734c8bb496c9f0344d07d3d198edf43a45893867d5d1fa

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