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
- run
python -m chat-server
; - input server address (127.0.0.1, as an example).
To chat
- run
python -m chat-client
; - input server address;
- input your name;
- to send a message input it's text and addressee;
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for console_chat_dsima-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3c7ac394ee3c5dd3d4dbd33445a3f82207152b8fbae743d7534b1beb8e21c0 |
|
MD5 | ec8239ab7dc44e6dab340ad7f05940d8 |
|
BLAKE2b-256 | e1680b0cc27d26a252cfecebb59a18a2d330ca100f832876a6940eec8d260825 |