Coder Social home page Coder Social logo

aiohttp-terminal-chat's Introduction

aiohttp-terminal-chat

A simple chatting app built based on aiohttp framework that has only one common chatting group.

The app is build with minimal functionality. It won't save any messages to the database. It was built to be used in a setting in which secret messages are meant to be exchanged between one group of people. Because of that I only used the websockets for purpose of excahnging multiple messages between the clients, and other libraries including databases were not used.

Demo

Demo

Functionality

  • Each client can provide there names to the server at the start of the chat
  • To prevent confusion, I used a color codded printing formatting
  • Client can leave the chat anytime by typing 'exit'

Installation

  • Clone the repository.
$ git clone https://github.com/Emegua/aiohttp-simple-chat.git
$ cd chat
  • Install the dependencies.
$ pip install -r requirements.txt
  • Run the server app:
$ python app.py
  • Run the client app [ For now, for simplicity, It is assumed that the server and the clients are running on the same machine, and you don't need to specify the server's Ip and host. A default value http://0.0.0.0/8080 is provided already ]
$ python client.py

To simulate multiple clients, please open as many terminals as possible and join the chat

References

aiohttp-terminal-chat's People

Contributors

emegua avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.