Pychat is a simple Python-based command-line interface (CLI) chat application that allows users to communicate with each other in a text-based environment. This project is ideal for learning about socket programming, multithreading, and building basic networking applications.
- Real-time Messaging: Exchange messages in real-time with other users in the same chatroom.
- Chatroom Identification: Users can join or create chatrooms with unique names.
- Password Protection: Each chatroom is protected by a password to ensure privacy.
- Multi-user Support: Supports multiple users in each chatroom, though usernames are not unique.
- Python 3.6 or later
- Clone the Repository:
git clone https://github.com/Harshil-08/Pychat.git cd Pychat
- Install Dependencies:
This project uses standard Python libraries (socket and threading), which come with Python and require no additional installation.
- Start the Server:
Open a terminal and navigate to the project directory. Run:This command starts the chat server.python server.py
- Connect as a Client:
Open a new terminal window and navigate to the project directory. Run:Follow the prompts to enter your name and either create a new chatroom or join an existing one by providing the chatroom name and password.python client.py