assistant-stream
Decision gist · record as of 2026-08-14
Yes, if you are building a Python backend for an AI chat application using Starlette and need server-side streaming. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It is a focused tool for a specific use case (streaming responses to assistant-ui frontends) rather than a general-purpose library, so install it only if you are actually building that stack.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later (package specifies >=3.10,<4.0).
- Low friction install with a single runtime dependency (starlette).
- Active maintenance with recent releases; last commit 2026-08-14 and 11656 GitHub stars indicate ongoing development.
License · maintenance · safety
permissive license (permissive) — MIT license permits commercial and private use with minimal restrictions; permissive treatment means you can integrate this into proprietary applications without licensing obligations.
last release 2026-08-04 (10 days) · last repo commit 2026-08-14 · 11,656 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 91,292 downloads/mo, #13,527 on PyPI
Alternatives
Verify before relying
pip install assistant-stream
from assistant_stream import StreamingResponse
from starlette.applications import Starlette
app = Starlette()
@app.route('/chat', methods=['POST'])
async def chat(request):
return StreamingResponse(generate_stream())- Whether this package provides the complete streaming infrastructure or is a thin wrapper around Starlette's native streaming capabilities.
- What specific streaming protocol or format (SSE, chunked transfer, etc.) is used for message delivery.
- Whether integration with the React assistant-ui library requires additional setup beyond this package.
What it is and what it does
assistant-stream is a Python package that adds server-side streaming capabilities to Starlette-based backends, designed to work with the assistant-ui React library for building AI chat applications. It handles the server-side mechanics of streaming responses from language models or AI backends to connected clients in real time, complementing the React frontend's ability to display streaming messages as they arrive.
The package sits in the backend layer of an AI chat stack: you use it to stream responses from your LLM or AI service through a Starlette web server to the browser. It abstracts away the complexity of managing persistent connections and chunked response delivery, letting you focus on the business logic of generating chat responses. With only Starlette as a runtime dependency, it has minimal install friction and integrates into existing Python web applications.
Use it for
- Stream LLM responses in real time from a Python backend to a React chat interface without waiting for the full response to generate.
- Build a production chat service where users see tokens or message chunks arrive progressively, improving perceived responsiveness.
- Integrate with Vercel AI SDK or LangGraph backends to stream tool calls and structured outputs to the frontend as they execute.
- Add streaming to an existing Starlette application without replacing the entire web framework or rewriting request handling.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a Python backend for an AI chat application using Starlette and need server-side streaming.
The package has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It is a focused tool for a specific use case (streaming responses to assistant-ui frontends) rather than a general-purpose library, so install it only if you are actually building that stack.
Install
assistant-stream on PyPI
Before you install
Low friction install with a single runtime dependency (starlette). Active maintenance with recent releases; last commit 2026-08-14 and 11656 GitHub stars indicate ongoing development.
Requires Python 3.10 or later (package specifies >=3.10,<4.0).
License in practice
MIT license permits commercial and private use with minimal restrictions; permissive treatment means you can integrate this into proprietary applications without licensing obligations.
Quickstart
pip install assistant-stream
from assistant_stream import StreamingResponse
from starlette.applications import Starlette
app = Starlette()
@app.route('/chat', methods=['POST'])
async def chat(request):
return StreamingResponse(generate_stream())
Verify before relying
- Whether this package provides the complete streaming infrastructure or is a thin wrapper around Starlette's native streaming capabilities.
- What specific streaming protocol or format (SSE, chunked transfer, etc.) is used for message delivery.
- Whether integration with the React assistant-ui library requires additional setup beyond this package.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagestarlette |
| Maintenance | Actively maintained 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 91,292 / month, #13,527 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: assistant_stream-0.0.36-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ai chat backend streaming”
- assistant-streamProvides server-side streaming support for AI chat applications built…
- writer-sdkPython client library for the Writer REST API, supporting synchronous…
- llama-index-llms-google-genaiIntegrates Google's Gemini models into LlamaIndex applications,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also sse-starlette · omnigent-ui-sdk · vanna · livekit-plugins-openai · livekit-plugins-google · shinychat · agent-framework-chatkit · ag-ui-langgraph · pipecat-ai-prebuilt · uipath-langchain-client