Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ws_cli_chat-0.3.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

ws_cli_chat-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file ws_cli_chat-0.3.0.tar.gz.

File metadata

  • Download URL: ws_cli_chat-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for ws_cli_chat-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c495381aa316b75f55fd23033122b5ee22b7e76307362d0dc37e52228acafa8
MD5 88de7ff18bd8e64e7fe70a847009fd71
BLAKE2b-256 98d97b8c760bce97f51ae3fc8938f0920ccf58ab2d4a893fa1c8c34ac0d8e61b

See more details on using hashes here.

File details

Details for the file ws_cli_chat-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ws_cli_chat-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for ws_cli_chat-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc0e8a0c4f56e73310c8fa8284e5ac50c51dc6595c44b87111cb02f8907864e5
MD5 51de3d80c6f4f8eb49671f081c6e6354
BLAKE2b-256 a6f697990dd8ba7bd70045a2a3d779375916d6e2de28415e0d2702ceadbec79f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page