Skip to main content

simple cli-websocket-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 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.1.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file ws-cli-chat-0.1.0.tar.gz.

File metadata

  • Download URL: ws-cli-chat-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for ws-cli-chat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d8e438c1101fafe4ee1a56e216ea92e2abc44cc8c25e3ac8891602d54460929
MD5 5facca4807055d57aae61de377e71995
BLAKE2b-256 8d6bac86cd281900c3ae282b032db95c368ade6bf3bd9fd91ae054468f6cf703

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