This is a simple command-line based chat application implemented in Python. It allows users to either create a chat room or join an existing one. The application uses sockets for communication between the client and server.
- Create a chat room
- Join an existing chat room
- Password protection for chat rooms
- Python 3.x
- Standard libraries:
argparse
,socket
-
Clone the repository:
git clone https://github.com/Rajneeshkarya/PyTalk cd PyTalk
-
Install the requirements
pip3 install -r requirements.txt
-
Run the chat application:
python PyTalk.py -h
This will display the available options and usage instructions for the chat application.
-
Start a Chat Room:
python PyTalk.py -c -p <port> -pwd <password>
This command creates a chat room on the specified port with an optional password.
-
Join a Chat Room:
python PyTalk.py -j -i <ip_address> -p <port>
This command lets you join an existing chat room by specifying the IP address and port.
-
To create a chat room:
python PyTalk.py -c -p 12345 -pwd mypassword
-
To join a chat room:
python PyTalk.py -j -i 127.0.0.1 -p 12345
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
Note: This is a simple chat application for educational purposes. It may not be suitable for production environments and lacks advanced security features. Use it responsibly and at your own risk.