sorokinvld / streamlit-stream

A template for creating streamlit apps that consume streaming data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamlit Streaming

A template to create applications that consume from a stream.

This template consumes from a websocket stream but it can be anything, a messaging queue ( mqtt, amqp etc.), or any async generatior.

How to run ?

Clone the repo and

docker-compose up

And you are done.

snippet

For non-docker people

pip install -r requirements.txt

In producer directory:

cd producer
uvicorn main:app --port 8000

In consumer/src directory:

cd consumer
cd src

streamlit run main.py

About

A template for creating streamlit apps that consume streaming data


Languages

Language:Python 84.7%Language:Dockerfile 15.3%