limboy / chat

a live chat built with python(flask + gevent + apscheduler) + redis

Home Page:http://blog.leezhong.com/tech/2011/10/26/python-comet.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a live chat room built with python(flask / gevent / apscheduler) + redis

Basic Architecture

architecture

Screenshot

chat

Install

  • cd /path/to/source
  • python bootstrap.py
  • bin/buildout
  • make sure redis-server is started
  • bin/supervisord
  • [optional] bin/supervisorctl
  • goto localhost:9527

Tips

  • open multi browser to test live communication
  • execute bin/python scripts/clear_key.py to clear all data

Changes

0.2

  • adjust comet strategy
  • add admin role
  • fix duplicate name

0.1.1

  • adjust create room UI / UE
  • add rm room func
  • improve add chat message's response speed
  • bugfixes

0.1

  • add home page (all rooms in one page, and live content)
  • custom nickname
  • create room
  • coffee-script
  • bugfixes

home room

About

a live chat built with python(flask + gevent + apscheduler) + redis

http://blog.leezhong.com/tech/2011/10/26/python-comet.html


Languages

Language:Python 75.0%Language:JavaScript 13.5%Language:CoffeeScript 11.5%