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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8c9ff54fa9e4db2d3074079f4bf0b14e91644f2eb4d8a26e44a4efe3cc978e8
|
|
| MD5 |
4cb98905e94081e6c31eb544336330ed
|
|
| BLAKE2b-256 |
8b6317c415261b8b19e1208f7b5fd4c4b1820b2056a08219dac0a7e6abb0111b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e3c7ac394ee3c5dd3d4dbd33445a3f82207152b8fbae743d7534b1beb8e21c0
|
|
| MD5 |
ec8239ab7dc44e6dab340ad7f05940d8
|
|
| BLAKE2b-256 |
e1680b0cc27d26a252cfecebb59a18a2d330ca100f832876a6940eec8d260825
|