Local chat for Reflex applications
Project description
Reflex Chat (rxchat)
Reflex Chat (rxchat) is a versatile and efficient chat interface designed to seamlessly integrate into Reflex projects. Built with the Reflex framework for the frontend and FastAPI for the backend, rxchat offers developers a ready-to-use chat solution that combines simplicity, flexibility, and performance.
Features
- Frontend Integration: Easily integrates with Reflex-based projects for a smooth UI experience.
- Backend Support: Powered by FastAPI for fast, reliable, and scalable backend operations.
- Customizable: Modify and extend the chat interface to suit your specific needs.
- Real-Time Communication: Support for real-time messaging using WebSockets.
Installation
pip install reflex_rxchat
Register ChatServer with FastAPI
import reflex as rx
from reflex_rxchat.server.api import router
app = rx.App()
# Add your other configurations here
app.api.include_router(router)
Add the conversation component into a page
def index() -> rx.Component:
from reflex_rxchat import conversation
return rx.container(
rx.color_mode.button(position="top-right"),
conversation(),
rx.logo(),
)
Demo projects
# File: rxchat_demo/rxchat_demo.py
from rxconfig import config
import reflex as rx
from reflex_rxchat.server.api import router
filename = f"{config.app_name}/{config.app_name}.py"
def index() -> rx.Component:
from reflex_rxchat import conversation
return rx.container(
rx.color_mode.button(position="top-right"),
conversation(),
rx.logo(),
)
app = rx.App()
app.add_page(index)
app.api.include_router(router)
Contributing
Issues: Issues Contributing: CONTRIBUTING.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reflex_rxchat-0.2.4.tar.gz.
File metadata
- Download URL: reflex_rxchat-0.2.4.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60966c0292380b713c3a75a3269e0bdf82d8977fb57b920886bd61440e1e530d
|
|
| MD5 |
4d117821b526afd04439085f45d9c94c
|
|
| BLAKE2b-256 |
9e19428e312be04598a75e06d616c997feb7bfe3a1e4d1cdc5835e3a86578308
|
File details
Details for the file reflex_rxchat-0.2.4-py3-none-any.whl.
File metadata
- Download URL: reflex_rxchat-0.2.4-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43e32e110b583ee72b8c054970b85882ad8554ff8ea73d62b67ee207563cb11
|
|
| MD5 |
75b6d7b48bb3df292d0665f020041afd
|
|
| BLAKE2b-256 |
ac39dcef4c63e6a1800979333e54c00ba135dc3e88644d858690f93b9f8fcbfc
|