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
  • PySimpleGUI

Installation

To install run the following command in your terminal:

pip install ws-cli-chat

Usage To start the application, run the following command in your terminal:

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.4.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

ws_cli_chat-0.4.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ws_cli_chat-0.4.3.tar.gz
  • Upload date:
  • Size: 6.9 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.4.3.tar.gz
Algorithm Hash digest
SHA256 9616d6ef9ecca840d51428a0a862e378d08381b2fc3efafc3d42d0151af559b6
MD5 5e421d570d43ac3f4538249ee7399b0a
BLAKE2b-256 39077a22862f7e03d4b2d2c0f561ae127c3c824a9af9d6efeb8b5a1ff6290909

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ws_cli_chat-0.4.3-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

Hashes for ws_cli_chat-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb134a41cd94013cbec1edc2577ed53aaa4e3f137ee0dfbc53f0cc270716ebf0
MD5 c4ebc25ea18e5d2e28ee1b0ba276b869
BLAKE2b-256 e47577a2264ef4c67e1395ca94c8057c26d39ac5ab8ad494fe22007c8e7f13f2

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