Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonh/redis-streams-fastapi-chat
A simple Redis Streams backed Chat app using Websockets, Asyncio and FastAPI/Starlette.
https://github.com/leonh/redis-streams-fastapi-chat
asyncio fastapi redis redis-streams starlette websockets
Last synced: about 2 months ago
JSON representation
A simple Redis Streams backed Chat app using Websockets, Asyncio and FastAPI/Starlette.
- Host: GitHub
- URL: https://github.com/leonh/redis-streams-fastapi-chat
- Owner: leonh
- License: mit
- Created: 2019-11-01T17:47:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T17:53:49.000Z (11 months ago)
- Last Synced: 2024-08-01T00:43:09.391Z (5 months ago)
- Topics: asyncio, fastapi, redis, redis-streams, starlette, websockets
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 205
- Watchers: 3
- Forks: 37
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-fastapi - redis-streams-fastapi-chat - A simple Redis Streams backed chat app using Websockets, Asyncio and FastAPI/Starlette. (Projects / Open Source Projects)
- awesome-fastapi - redis-streams-fastapi-chat - A simple Redis Streams backed chat app using Websockets, Asyncio and FastAPI/Starlette. (Projects / Open Source Projects)
README
# redis-streams-fastapi-chat
A simple demo of Redis Streams backed Chat app using Websockets, Python Asyncio and FastAPI/Starlette.Requires Python version >= 3.6 and Redis
# Overview
This project has been created to help understand some related concepts. Python standard library asyncio, websockets (which are often cited as a classic use case for async python code), also Redis Streams. It is very much inteded to be an intentionally simple starting point rather than a usable product as is.# Installation
```shell
$ pip install -r requirements.txt
```# Usage
```shell
$ python chat.py
```# Docker compose
If you don't have redis installed you can use the docker-compose.yml file to set up a
working environment.