stream-chat
Client for Stream Chat.
What it is and what it does
stream-chat is the official Python client library for Stream Chat, a backend service for building chat applications. It provides synchronous and asynchronous APIs to manage users, channels, messages, and other chat metadata server-side. The library wraps HTTP requests to Stream's API endpoints and returns typed response objects that inherit from dict, maintaining backward compatibility while exposing rate-limit information, headers, and status codes.
The package depends on requests, aiohttp, aiodns, aiofile, pyjwt, and typing_extensions to handle both sync and async operations. It is currently in maintenance mode—the maintainers recommend new projects use the newer `getstream` SDK instead, though stream-chat remains safe for continued use and will receive critical fixes.
Use it for:
- Build a chat backend that manages user accounts, channels, and permissions through Stream's API.
- Send and retrieve messages programmatically from a server-side application.
- Implement async chat operations in high-concurrency environments using StreamChatAsync.
- Monitor rate limits and API response metadata for production chat systems.
- Migrate existing chat integrations while maintaining backward-compatible dict-like response handling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for server-side integration with Stream Chat, providing APIs to manage users, channels, messages, and chat metadata.
Yes, if you are maintaining an existing stream-chat integration or building a new chat backend with Stream. The package is actively maintained and has no known vulnerabilities. However, if starting a new project, consider the newer `getstream` SDK instead, as stream-chat is in maintenance mode. License terms are unclear and should be verified before use.
Install
stream-chat on PyPI
pip
pip install stream-chatuv
uv add stream-chatpoetry
poetry add stream-chatInstalling stream-chat
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits; however, the package is in maintenance mode with the newer `getstream` SDK recommended for new projects.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or restricted contexts.
Quickstart
from stream_chat import StreamChat
chat = StreamChat(api_key="STREAM_KEY", api_secret="STREAM_SECRET")
chat.upsert_user({"id": "user1", "name": "User One"})
channel = chat.channel("messaging", "general")
channel.create("user1")
Requires valid Stream Chat API credentials (api_key and api_secret) to instantiate the client.
Verify before relying
- Whether the package's license is compatible with your project's licensing requirements.
- Whether migration to the newer `getstream` SDK is necessary for your use case or timeline.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — requests, aiodns, aiohttp, aiofile, pyjwt, typing_extensions |
| Maintenance | actively maintained — 91 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 490,779/month — #6,367 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: stream_chat-4.32.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
stream-pythonOfficial Python client library for Stream Feeds…
permissive · top 5,000 on PyPI
TikTokLiveConnect to TikTok livestreams and receive…
permissive · top 15,000 on PyPI
rocketchat-APIPython wrapper for the Rocket.Chat REST API,…
permissive · top 15,000 on PyPI
twitchAPIA Python client library for the Twitch Helix…
permissive · top 15,000 on PyPI
writer-sdkPython client library for the Writer REST API,…
permissive · top 15,000 on PyPI
azure-communication-chatPython SDK for Azure Communication Services…
permissive · top 15,000 on PyPI
dingtalk-streamPython SDK for building DingTalk chatbots and…
permissive · top 15,000 on PyPI
llama-index-llms-ollamaIntegrates local Ollama language models with…
permissive · top 15,000 on PyPI
pyfcmPyFCM is a Python client for Firebase Cloud…
permissive · top 15,000 on PyPI
slackclientProvides Python interfaces to Slack's Web API…
permissive · top 5,000 on PyPI