live chatroom one liner! (1 line series)[no5]
rafrafraf (1369)

You can literally make anything in one line ;)

Here is my one line flask py live chatroom!

Live chat here

Let me know if you have any ideas for what I should make in one line next :)


I only had to get over two problems that I hadn't yet encountered when working on this:

  • firstly, decorators:
    as you (probably) already know, with py flask you use decorators when routing - for example:


def index():
    return whatever

can be re-written as

index = app.route('/')(lambda : whatever)
  • the second issue was making the client, so I used flask render template string and passed in my html/css/js code I made for the client.
You are viewing a single comment. View All