flask-praisonai
Flask integration for PraisonAI multi-agent framework.
Installation
pip install flask-praisonai
Quick Start
from flask import Flask
from flask_praisonai import create_blueprint
app = Flask(__name__)
app.register_blueprint(create_blueprint())
# Now you have:
# POST /praisonai/query - Send queries to PraisonAI
# GET /praisonai/agents - List available agents
if __name__ == "__main__":
app.run()
API Endpoints
POST /praisonai/query
Send a query to PraisonAI agents:
{
"query": "Research AI trends",
"agent": "researcher" // optional
}
GET /praisonai/agents
List available PraisonAI agents.
Using the Client Directly
from flask_praisonai import PraisonAIClient
client = PraisonAIClient(api_url="http://localhost:8080")
result = client.run_workflow("Research AI trends")
result = client.run_agent("Write an article", "writer")
agents = client.list_agents()
Configuration
from flask_praisonai import create_blueprint
bp = create_blueprint(
api_url="http://localhost:8080",
url_prefix="/ai", # Custom prefix
)
Prerequisites
Start PraisonAI server:
pip install praisonai
praisonai serve agents.yaml --port 8080
Links
License
MIT
Metadata
Release files for flask-praisonai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_praisonai-0.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_praisonai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / flask_praisonai-0.1.0.tar.gz
| Download URL | flask_praisonai-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0140c2015c6644282de9a4f73e33ba133dc0fbefb420fb6b0af50161dead77ff
|
|
BLAKE2b-256 checksum How to use checksums |
90867e568adb067818f43bb50b26fd8c04d2019ecd76858556b91a5374541191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / flask_praisonai-0.1.0-py3-none-any.whl
| Download URL | flask_praisonai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbc4cf1479df8ab045c3cdc424e49811cdf4c5f95cff286d280d77963d104b18
|
|
BLAKE2b-256 checksum How to use checksums |
84a66e4f4004616cd1f9bb9b43f0b521778481f36340b05bfcde655b5f0dc2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|