Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

WebSockets Groups

Модуль реализующих менеджер групп WebSocket подключений

Функционал:

  • Регистрация / Удаление WS
  • Создание / Удаление групп WS
  • Подключение WS в группу
  • Поддержка реестров: memory, redis

Quick start

Установка:

pip install websockets-groups

Подключение:

from fastapi import WebSocket
from websockets_groups import WSGroupsManager, MemoryStorage, BaseDispatcher

ws_groups_manager = WSGroupsManager(MemoryStorage())

class ChatDispatcher(BaseDispatcher):
    pass

@app.websocket('/chats/')
async def ws_view(webdocket: WebSocket, chat_name: str):
    await ws_groups_manager.register_ws(websocket, ChatDispatcher())

Metadata

Release files for websockets-groups 0.0.2a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for websockets-groups 0.0.2a1
File Size Uploaded
websockets_groups-0.0.2a1.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for websockets-groups 0.0.2a1
File Interpreter ABI Platform
websockets_groups-0.0.2a1-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / websockets_groups-0.0.2a1.tar.gz

Download URL websockets_groups-0.0.2a1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
71b321cb4414efc6e61b07a485e45c4a24ce204562791a3950ba01fd294c89c9
BLAKE2b-256 checksum
How to use checksums
683df841c559ee48033f80cf2d6be575a97017a9d7edb10e207cbb1757e13ee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-72-generic

Release files / websockets_groups-0.0.2a1-py3-none-any.whl

Download URL websockets_groups-0.0.2a1-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ba8c613ddd4789978700d21cc2073cdb170fc5b54279373e1710e78bbe9f79
BLAKE2b-256 checksum
How to use checksums
f37ea4551a24e900d4e6b976199f0b80b01aab59f7d77a94e0d2e467527c207e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-72-generic

Release history Release notifications | RSS feed

This release

0.0.2a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page