Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmitrytokyo/minecraft-chat
simple chat connection using Python
https://github.com/dmitrytokyo/minecraft-chat
asyncio chat python3 socket
Last synced: 7 days ago
JSON representation
simple chat connection using Python
- Host: GitHub
- URL: https://github.com/dmitrytokyo/minecraft-chat
- Owner: DmitryTokyo
- License: mit
- Created: 2021-04-06T06:08:29.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T05:08:09.000Z (almost 2 years ago)
- Last Synced: 2024-11-29T04:15:01.018Z (2 months ago)
- Topics: asyncio, chat, python3, socket
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MINECRAFT CHAT
[![license](https://img.shields.io/github/license/DAVFoundation/captain-n3m0.svg?style=flat-square)](https://github.com/DmitryTokyo/minecraft-chat/blob/master/LICENSE)
As you know all network communications goes through a socket. In this project you can look how socket works. There are 2 parts of simple chat application. First part is chat server. It server opens up port 5000 to listen for incoming connections. Second part is chat client. The client are listening user input and server message at same time. And if user input a message client send it to server.
## Installation
For correct microservice work needs Python not less 3.8 version. I recommend to use virtual environment. All dependencies you should set from requirements.txt by command:
```bash
pip install -r requirements.txt
```## Usage
```bash
python server.py argumentspython client.py arguments
```The service support the next arguments:
Server
```shell
--host - an IP address or address of host.
--port_out - port for reading messages.
--path - path of file with chat records.
--save_config - save server configuration to file.
``````shell
--host - an IP address or address of host.
--user_hash - user account hash.
--nickname - your chat nickname.
--port_in - port for sending messages.
--save_info - save user configuration to file.
```Also, you can set argument by putting the environment variables in a config file, for example `config.ini`. The config file syntax - `key=value`.