Skip to content

A simple chat application implemented in Python using TCP Sockets and Urwid

License

Notifications You must be signed in to change notification settings

ravener/python-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Chat

A simple chat application written in Python using TCP Sockets and urwid

image

Usage

Clone or download this repository however you like.

$ git clone https://github.com/ravener/python-chat

Make sure Python3 is installed and install urwid:

$ pip install urwid

On a terminal session start the server:

$ python server.py

You can stop the server with CTRL + C

Now start the client

$ python client.py

You can type /quit or /q to exit the client.

TODO

The project is simple and could work well as a private chat server among some friends but there are a few more changes I'd like to have for it to be more practical:

  • Resuming/Reconnecting
  • Ability to type server address (currently it assumes localhost)
  • Message history (without database, just store like last X messages in memory)
  • Useful Slash Commands
  • Some more code clean up and various little things.
  • Demonstrate creating bots. (You can already do this by leveraging the client connection code from client.py but I mean demonstrate it and find some practical uses for it)

Who knows maybe I could eventually turn this into a named project?

License

Released under MIT License

Also credits to nigiri from which the client side UI is based off, more specifically from this gist

About

A simple chat application implemented in Python using TCP Sockets and Urwid

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages