Skip to content

simbadmorehod/pyMiniChat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyMiniChat

A small chat app made as a home task for a Python intensive course by Skillbox.

The app includes the following features:

  1. Allow multiple connections
  2. User authorization by login (should be unique), done by sending a message "login:YOUR_LOGIN"
  3. Retrieving last 10 messages for new successful authorizations
  4. Showing the list of already logged in users, so the user can see which names are already taken
  5. Disconnects in case of attempt to use a taken login (required by the task)
  6. And, of course, all the connected and logged in users can see the messages

This project actually won the competition of the course, but the winner just stole this repo... You can feel free to fork and modify, but please provide the link to this repo if you don't do any or only small changes. Otherwise modify it as you see fit.

Installation

Install dependencies

pip install -r requirements.txt

You might also need to install С++ build tools

To install Telnet

MacOS:

brew install telnet

Ubuntu:

sudo apt-get install telnet

Windows: instructions

Running the app

Go to server location

cd ./src

Run the server script

python server.py

Then you can connect with another (or many other) terminal

telnet 127.0.0.1 1234

About

A small chat app made as a home task for a Python intensive course by Skillbox.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%