A terminal-based real-time chat application built using Python's socket
, threading
, and Textual. Think of it as your own IRC-style chat system (Not exactly an IRC client), running locally.
empChat.mp4
- Live chat between multiple clients
- User-specific color-coded messages
- Real-time join/leave detection
- TUI interface with Rich + Textual
- Command support:
/help
,/users
,/nick
,/close
Python 3.10 or higher
Install using pip:
pip install textual rich
- Start the server:
python server.py
- In another terminal, start the client:
python client.py
Open more client terminals to simulate multiple users.
Command | Description | Example |
---|---|---|
/help |
Show all available commands | /help |
/users |
Show number of connected users | /users |
/nick <newname> |
Change your username | /nick coolguy123 |
/close |
Disconnect from the server gracefully | /close |
-
Persistent chat history
-
Private messaging
-
Channel/room support
📜 License
MIT License. Feel free to use, modify, and share.