skillfed

stream-chat

Client for Stream Chat.

stream-chat v4.32.0 490.8K downloads/30d#6,367 on PyPI72
License unclear Active released

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-chat

uv

uv add stream-chat

poetry

poetry add stream-chat

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: Libraries :: Python Modules

Tags

stream chat python sdkchat api client pythonmessaging backend integrationstream chat server apipython chat service sdkreal-time messaging api clientchat application backend
chat-apiasync-supportmaintenance-mode

More Software Development packages