forked from pallets/flask
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME
More file actions
39 lines (22 loc) · 939 Bytes
/
README
File metadata and controls
39 lines (22 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Flask Async//
web development, one drop at _any_ time
~ What is Flask?
Flask is a microframework for Python based on Werkzeug
and Jinja2. It's intended for getting started very quickly
and was developed with best intentions in mind.
~ What is Flask Async?
It's a fork of Flask to run on Python 3.3+ using asyncio. It supports
both sync and async web applications.
~ What do I need?
Just Jinja 2.4. A fork of Werkzeug is included.
~ What does it look like?
Pretty much what a Flask app looks like:
from asyncio import coroutine, sleep
from flask import Flask, request
app = Flask(__name__)
@app.route("/hello/<string:name>")
@coroutine
def say_hi(name):
yield from sleep(2)
return "it worked %s" % request.args.get("name", name)
app.run()