QT6-based Chat UI DevKit with command decorators
Project description
QChat
QChat is a Python framework for building chat interfaces with QT6, featuring command decorators and automatic type conversion.
Features
- 🎨 QT6-based UI: Modern, customizable chat interface
- ✨ Command Decorators: Easily turn functions into chat commands
- 🔄 Auto Type Conversion: Automatic argument type conversion
- 📚 Built-in Help: Auto-generated help system
- 🚀 Lightweight: Minimal dependencies
A Simple Example
import qchat
@qchat.command("greet")
def greet(name: str):
"""Greet a user"""
return f"Hello, {name}!"
if __name__ == "__main__":
qchat.run()
Installation
Prerequisites
- Python 3.8+
- pip
Setup
pip install qchat
Advanced Features
Type Conversion:
@qchat.command("add")
def add_numbers(a: int, b: int):
"""Add two numbers"""
return f"Result: {a + b}"
Variable Arguments:
@qchat.command("echo")
def echo_message(*args):
"""Echo back the input"""
return " ".join(args)
Hacking on QChat
install pyside6 with the following command:
pip install pyside6
update the ui file and convert it to python code with the following command:
pyside6-uic.exe .\main_window.ui -o .\main_window.py
License
MIT License. See LICENSE for details.
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 qchat-0.1.0.tar.gz.
File metadata
- Download URL: qchat-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f628be52d22603959fb6b649d541a9b17b6d96207fdf33141389f70effb820db
|
|
| MD5 |
e44b34634d1557d534e46596052d93d8
|
|
| BLAKE2b-256 |
80f6a667fcc457d2d1f4f474727ad78fd79d4c19c80e08ef372ee3d82b43ee14
|
File details
Details for the file qchat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qchat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2de753994c2f1fa283c7c9646b390fe33cb421693d1aa23a6a9bec01972f5c4e
|
|
| MD5 |
33e2fd1e8f48a35423c85745a5d1455d
|
|
| BLAKE2b-256 |
db8437204e433db877b04ecbf4c56a758a88469059e5e4872d427b381a04b129
|