Skip to main content

Python SDK

pip install qefro-backend
export QEFRO_SIGNING_SECRET="your-signing-secret"
from qefro_backend import Qefro

app = Qefro(signing_secret="...") # or env

@app.tool({
"name": "order_status_check",
"description": "Look up order by ID",
"auth": "none",
"input_schema": {
"type": "object",
"properties": {"order_id": {"type": "string"}},
"required": ["order_id"],
},
})
def order_status(ctx):
return {"found": True, "status": "shipped", "order_id": ctx.parameters["order_id"]}

app.run(8088) # POST /qefro

Learn more