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

Related tags

Flask chat
Overview

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

You might also like...
flask-reactize is a boostrap to serve any React JS application via a Python back-end, using Flask as web framework.

flask-reactize Purpose Developing a ReactJS application requires to use nodejs as back end server. What if you want to consume external APIs: how are

Flask-Discord-Bot-Dashboard - A simple discord Bot dashboard created in Flask Python
Flask-Discord-Bot-Dashboard - A simple discord Bot dashboard created in Flask Python

Flask-Discord-Bot-Dashboard A simple discord Bot dashboard created in Flask Pyth

Flask Sitemapper is a small Python 3 package that generates XML sitemaps for Flask applications.

Flask Sitemapper Flask Sitemapper is a small Python 3 package that generates XML sitemaps for Flask applications. This allows you to create a nice and

Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Flask-Bcrypt Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. Due to the recent increased prevelance of

Flask-Rebar combines flask, marshmallow, and swagger for robust REST services.

Flask-Rebar Flask-Rebar combines flask, marshmallow, and swagger for robust REST services. Features Request and Response Validation - Flask-Rebar reli

Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Flask-Bcrypt Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. Due to the recent increased prevelance of

Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development.
Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development.

Flask-Starter Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development. It has all the r

Brandnew-flask is a CLI tool used to generate a powerful and mordern flask-app that supports the production environment.

Brandnew-flask is still in the initial stage and needs to be updated and improved continuously. Everyone is welcome to maintain and improve this CLI.

Flask Project Template A full feature Flask project template.

Flask Project Template A full feature Flask project template. See also Python-Project-Template for a lean, low dependency Python app. HOW TO USE THIS

Comments
  • docs: fix simple typo, idnetification -> identification

    docs: fix simple typo, idnetification -> identification

    There is a small typo in src/utils/text.py.

    Should read identification rather than idnetification.

    Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

    opened by timgates42 0
  • 发言时跳转到post_content

    发言时跳转到post_content

    其它用户登录发言时,admin能看到它的发言,但它的界面跳转到post_content 背景:ie浏览器

    { "content": "3", "created": "07-14 11:01:49", "id": 7, "room_id": "1", "user": "3" }

    opened by ilaer 0
  • No local packages or download links found for zc.buildout==14.3.1

    No local packages or download links found for zc.buildout==14.3.1

    我的setuptools 是14.3.1

    Scofier:chat sk$ python bootstrap.py -v 14.3.1 Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg No local packages or download links found for zc.buildout==14.3.1 Traceback (most recent call last): File "", line 1, in File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main

    File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage

    File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in

    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run

    File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 434, in easy_install

    File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", line 475, in fetch_distribution AttributeError: 'NoneType' object has no attribute 'clone' An error occurred when trying to install zc.buildout. Look above this message for any errors that were output by easy_install.

    opened by scofier 0
  • install issue

    install issue

    [root@chwch chat]# python bootstrap.py Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg Traceback (most recent call last): File "bootstrap.py", line 258, in ws.require(requirement) File "/tmp/tmpu13QMC/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require File "/tmp/tmpu13QMC/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 569, in resolve pkg_resources.VersionConflict: (setuptools 0.6c11 (/tmp/tmpu13QMC/setuptools-0.6c11-py2.7.egg), Requirement.parse('setuptools>=3.3'))

    why? please help me!

    opened by KunkkaCoco 1
flask-apispec MIT flask-apispec (🥉24 · ⭐ 520) - Build and document REST APIs with Flask and apispec. MIT

flask-apispec flask-apispec is a lightweight tool for building REST APIs in Flask. flask-apispec uses webargs for request parsing, marshmallow for res

Joshua Carp 617 Dec 30, 2022
Live Corona statistics and information site with flask.

Flask Live Corona Info Live Corona statistics and information site with flask. Tools Flask Scrapy Matplotlib How to Run Project Download Codes git clo

Mohammad Dori 5 Jul 15, 2022
A Microsub server built with Python Flask and SQLite.

Microsub Server This repository contains the code that powers my personal Microsub server. Microsub is an IndieWeb specification currently in developm

jamesg 8 Oct 26, 2022
Library books management program, built with Flask, Python

Library books management program, With many features and good User Interface. built with Flask, Python. (Include Screenshots) and documentation on how to run it! Thank you :)

Thierry Mugisha 1 May 3, 2022
A simple barcode and QR code generator built in Python with Flask.

✨ Komi - Barcode & QR Generator ✨ A simple barcode and QR code generator built in Python with Flask. ?? Table of Contents Usage Installation Contribut

Bonnie Fave 2 Nov 4, 2021
A web application for a fake pizza store, built in Python with Flask and PostgreSQL.

✨ Pizza Pizza - Pizza Store ✨ A web application for a fake Pizza Store, the app let you create an account and order pizza, complements or drinks. Buil

Bonnie Fave 6 Dec 18, 2022
A simple web application built using python flask. It can be used to scan SMEVai accounts for broken pages.

smescan A simple web application built using python flask. It can be used to scan SMEVai accounts for broken pages. Development Process Step 0: Clone

Abu Hurayra 1 Jan 30, 2022
A basic CRUD application built in flask using postgres as database

flask-postgres-CRUD A basic CRUD application built in flask using postgres as database Taks list Dockerfile Initial docker-compose - It is working Dat

Pablo Emídio S.S 9 Sep 25, 2022
A simple Task todo application built with Flask

Task TODO Table An application built with Flask a Python framework and hosted on Heroku. Important notes GuniCorn (Green Unicorn): is a Python WSGI HT

DCN (Dubem Celestine Nwabuisi) 1 Dec 15, 2021
REST API built using flask framework that used for managing bookmarks by individual users.

Bookmarks REST API REST API built using flask framework that used for managing bookmarks by individual users. API Consumers Note This app is built usi

Venkatesh Tantravahi 1 Dec 27, 2021