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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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