Skip to main content

Console chat.

Project description

Console Chat Dsima

This project is a test task for Digital Design. It's written without using any third-party library.

Installation

It works only on Linux operating systems.

To install it run pip install console-chat-dsima

Usage

To start a server

  1. run python -m chat-server;
  2. input server address (127.0.0.1, as an example).

To chat

  1. run python -m chat-client;
  2. input server address;
  3. input your name;
  4. to send a message input it's text and addressee;
  5. to exit the chat input exit.

To stop the server press Control+C.

Examples

Server

$ python3 -m chat-server
Input server address: 127.0.0.1
^CTraceback (most recent call last): <...>
KeyboardInterrupt

Client 1

$ python3 -m chat-client
Input server address: 127.0.0.1
Input your name: Ivan
To send a message input its text and addressee.
Input "exit" to exit.
Hey, how do you do?
Maria
Maria received your message.
Maria: I'm fine.
Save my soul!
God
God did not receive your message.
exit

Client 2

$ python3 -m chat-client
Input server address: 127.0.0.1
Input your name: Maria
To send a message input its text and addressee.
Input "exit" to exit.
Ivan: Hey, how do you do?
I'm fine.                     
Ivan
Ivan received your message.
exit

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

console-chat-dsima-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

console_chat_dsima-0.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file console-chat-dsima-0.0.1.tar.gz.

File metadata

  • Download URL: console-chat-dsima-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for console-chat-dsima-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e8c9ff54fa9e4db2d3074079f4bf0b14e91644f2eb4d8a26e44a4efe3cc978e8
MD5 4cb98905e94081e6c31eb544336330ed
BLAKE2b-256 8b6317c415261b8b19e1208f7b5fd4c4b1820b2056a08219dac0a7e6abb0111b

See more details on using hashes here.

File details

Details for the file console_chat_dsima-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: console_chat_dsima-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for console_chat_dsima-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e3c7ac394ee3c5dd3d4dbd33445a3f82207152b8fbae743d7534b1beb8e21c0
MD5 ec8239ab7dc44e6dab340ad7f05940d8
BLAKE2b-256 e1680b0cc27d26a252cfecebb59a18a2d330ca100f832876a6940eec8d260825

See more details on using hashes here.

Supported by

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