Human approvals for AI agents over Hibira realtime channels: an approval inbox for LangGraph interrupts, with a FastAPI router for the React and Vue components
pip install hibira-approvals Copy PIP instructions
It speaks the same protocol as the npm package @hibira-io/approvals, so its React and Vue inbox components work against a Python backend unchanged.
pip install "hibira-approvals[pusher,fastapi]" Use with LangGraph import pusher from langgraph.types import Command, interrupt from hibira_approvals import Approvals from hibira_approvals.langgraph import approval, approval_calls, resume_value client = pusher.Pusher(app_id=..., key=..., secret=..., host="ws.hibira.io", ssl=True) def refund_node(state): answer = interrupt(approval("refund_order", {"order": state["order"]})) if not answer["approved"]: return {"log": [f"skipped: {answer['reason']}"]} return {"log": [refund(answer["input"])]} # the edited input when the reviewer changed it async def resume(request): config = {"configurable": {"thread_id": request["metadata"]["thread_id"]}} await graph.ainvoke(Command(resume=resume_value(request)), config) approvals = Approvals(client, scope="support", resume=resume) paused = await graph.ainvoke({"order": 1042}, config) calls, title = approval_calls(paused) # parallel interrupts become one request if calls: await approvals.request(calls, agent="Support agent", title=title, metadata={"thread_id": "t1"}) approvals.wait(id) polls until a request is decided, for workers that keep the graph waiting in place.
from fastapi import FastAPI from hibira_approvals.fastapi import approvals_router app = FastAPI() app.include_router( approvals_router(approvals, get_user=current_user, can_review=lambda user, request: user["role"] == "admin"), prefix="/api/approvals", ) get_user(request) returns {"id", "name", "avatar"} or None. The router also serves POST /auth for the Pusher channel authorization.
Requests live in memory by default; pass store= with async create, get, list and an atomic update(id, fn) over your database.
All 2 files in this release have provenance metadata.
agents ai approval hibira hitl human-in-the-loop langgraph pusher realtime
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




