simple cli-websocket-ws-cli-chat
Project description
Chat Application
This is a command-line chat application built with Python that allows users to connect to a websocket server and chat with other users in real-time.
Requirements
- Python 3.7+
- websockets library
- asyncio library
Installation
To install the required libraries, run the following command in your terminal:
pip install websockets
Usage To start the application, run the following command in your terminal:
python ws_cli_chat
You will be prompted to choose a username. After entering your username, the application will connect to the websocket server and you will be able to chat with other users in real-time.
To send a message, simply type your message and hit enter. Your message will be sent to all other users currently connected to the chat room.
Features
- Real-time messaging: Messages are sent and received in real-time, allowing for seamless communication between users.
- Multiple users: The chat room can accommodate multiple users at the same time, allowing for group conversations.
- Usernames: Users can choose their own usernames, which are displayed alongside their messages in the chat room.
- Clearing console: The console is cleared after each new message is received, making the chat experience cleaner.
Contributing
Contributions are welcome! If you have any suggestions or feature requests, please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
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
File details
Details for the file ws_cli_chat-0.4.1.tar.gz
.
File metadata
- Download URL: ws_cli_chat-0.4.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fde7f0c9ac1b0caa80855880399661355c7aa5e93ecd8c6f545bc27098eac29 |
|
MD5 | 14d64ac51985106c149a409128dbade4 |
|
BLAKE2b-256 | e5dac649d115a41f5f2f7062c9ebd82e8bc5e02edbc00176adfe6cee24265751 |
File details
Details for the file ws_cli_chat-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: ws_cli_chat-0.4.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46ef246c37093e8378cf057e23af733abe320288331548a3e5d6d31e0916ac2 |
|
MD5 | 459c74710cb0e4fa90be7d5c6f29264a |
|
BLAKE2b-256 | 8b565d2feceec50c560642a7b223c9e68ad1e464e16386bfc3701094a66b4644 |