https://blog.miguelgrinberg.com/index
https://www.reddit.com/r/flask/comments/7fq6es/is_flask_web_development_developing_web/
https://www.youtube.com/watch?v=1ByQhAM5c1I
https://medium.freecodecamp.org/how-to-use-python-and-flask-to-build-a-web-app-an-in-depth-tutorial-437dbfe9f1c6?source=linkShare-757902f29b22-1513695875
https://medium.com/python-pandemonium/flask-workaround-for-js-cross-scripting-rules-7fe525282f55
pip install flask_jsondash
https://github.com/anfederico/Flaskex
https://github.com/christabor/flask_jsondash Dashboard with Plots
https://www.cuttlesoft.com/the-how-and-why-of-flask-bitmapist/
https://github.com/Leo-G/Flask-Scaffold
https://github.com/jam-py/jam-py
http://stackoverflow.com/questions/30024948/flask-download-a-csv-file-on-clicking-a-button
https://gist.github.com/AJRenold/4171988
Export to CSV file
https://www.reddit.com/r/flask/comments/7cz8eb/af_generating_and_exporting_a_csv_for_client_side/
mongod --dbpath ~/Downloads/FLASK_JSONDASH/
mlubinsky$ brew info mongo mongodb: stable 3.2.9 (bottled) High-performance, schema-free, document-oriented database https://www.mongodb.org/ /usr/local/Cellar/mongodb/3.2.9 (17 files, 241.2M) * Poured from bottle on 2016-09-26 at 12:30:16 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mongodb.rb ==> Dependencies Build: go ✘, scons ✘ Recommended: openssl ✔ Optional: boost ✘ ==> Options --with-boost Compile using installed boost, not the version shipped with mongodb --with-sasl Compile with SASL support --without-openssl Build without openssl support ==> Caveats To have launchd start mongodb now and restart at login: brew services start mongodb Or, if you don't want/need a background service you can just run: mongod --config /usr/local/etc/mongod.conf
https://habrahabr.ru/post/312110/
How to pass data from Flask to JavaScript?
in app.py:
data_in_dict={"foo":1, "bar":2}
my_list = "GEO CODE 1", "Geo CODE 2"
return render_template('index.html', text='Hello', entries=rows,data_in_dict=data_in_dict,my_list=my_list)
in /template/index.html
<script>
var myList = {{ my_list|tojson }};
var myDict = {{ data_in_dict|tojson }};
var myText = {{ text|tojson }}; </script>
</script
<body>
<button onclick="alert('List: ' + myList[0] + ' ' + myList[1])" />my list </button>
<button onclick="alert('Dictionary: ' + myDict.foo + ' ' + myDict.bar)" /> my Dictionary </button>
<button onclick="alert('Text: ' + myText)" /> my Text </button>
</body>
How to pass data from JavaScript to Flask ?
http://stackoverflow.com/questions/29091070/how-to-get-data-from-immutablemultidict-in-flask
How to convert SQL result to JSON ?
http://codeandlife.com/2014/12/07/sqlalchemy-results-to-json-the-easy-way/
http://www.anthonydebarros.com/2012/03/11/generate-json-from-sql-using-python/
http://stackoverflow.com/questions/3286525/return-sql-table-as-json-in-python
https://pythonprogramming.net/jquery-flask-tutorial/ - list of good tutorials
https://github.com/hack4impact/flask-base
https://github.com/christabor/flask_jsondash
http://stackoverflow.com/questions/29833507/flask-crud-programming-without-sqlalchemy-or-other-orm
http://sarahleejane.github.io/learning/python/2015/08/09/simple-tables-in-webapps-using-flask-and-pandas-with-python.html
http://www.datasciencebytes.com/bytes/2015/03/07/a-d3js-plot-powered-by-a-sql-database/
http://multithreaded.stitchfix.com/blog/2016/03/10/pyxley-update/
http://flask.pocoo.org/docs/0.11/patterns/streaming/
https://www.codementor.io/python/tutorial/asynchronous-tasks-using-celery-with-django
https://github.com/dockerfiles/django-uwsgi-nginx
https://speakerdeck.com/mitsuhiko/flask-for-fun-and-profit
Websocket D3 python
https://medium.com/@tryexceptpass/a-python-ate-my-gui-part-3-implementation-39fc105b6d81#.dm7dl958r
https://habrahabr.ru/post/307140/ Flask+Redis+RQ+Supervisor
https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps
http://docs.python-guide.org/en/latest/scenarios/web/
https://github.com/zalando/connexion Flask + Rest
https://www.youtube.com/watch?v=tdIIJuPh3SI Flask at scale
https://github.com/dpraul/flask-continuous-env Deployment
http://flask.pocoo.org/docs/0.11/deploying/
Long running task management
If you need to run tasks in background, you can look at Celery, which is a distributed task queue.
A simple workflow would be :
Flask receives the job request by the client
It transmits the job request to Celery
Celery queues this job and generate a unique Job ID
Flask sends back to the client a HTTP 202 (aka. ACCEPTED, meaning "OK but can take some processing time") with the job ID
The client (or the frontend using your REST API) makes periodic requests to know whether the Job ID is completed
When OK (or error), you (Flask) send him a 200 with the result
https://impythonist.wordpress.com
https://www.youtube.com/playlist?list=PLzWaSuz38oGvFklb9kUCjT2FGS95chHcz
https://news.ycombinator.com/item?id=11121355
https://www.palletsproject.com/projects/flask/
http://techarena51.com/index.php/category/python-flask-bash-web-developer-tutorials/python/
https://github.com/realpython/discover-flask
https://github.com/apolloclark/discover-flask-vagrant
http://brunorocha.org/python/flask/flasgger-api-playground-with-flask-and-swagger-ui.html
http://www.docfoc.com/a-trip-to-the-spa-flaskangularjs-pyohio-2015
http://frankjwu.com/posts/flask-and-angularjs-workshop-yhack-2015/
http://www.codegithub.com/watch?v=7JziBJWXXUQg
https://disqus.com/home/discussion/realpython/flask_by_example_integrating_flask_and_angularjs/
https://slidr.io/andygoldschmidt/building-data-products-with-flask-and-angularjs#1
https://www.youtube.com/watch?v=YUJ11Dzjx6w
https://github.com/jasalt/kuittiskanneri
from flask import Flask, request
app = Flask(__name__) @@app.route("/") def index(): file_name = request.args.get("file_name") if file_name: return open(file_name).read() return 'No file selected.'if __name__ == "__main__": app.debug = True app.run()
app.run(host=os.getenv(‘IP’, ‘0.0.0.0’),port=int(os.getenv(‘PORT’, 8080)))
http://pythonhow.com/building-a-website-with-python-flask/
http://blog.miguelgrinberg.com/index
https://github.com/mjhea0/flaskr-tdd
http://code.runnable.com/UiIdhKohv5JQAAB6/how-to-download-a-file-generated-on-the-fly-in-flask-for-python
http://dataviztalk.blogspot.com/2016/01/serving-matplotlib-plot-that-follows.html
https://github.com/danvk/webdiff WebDiff
https://github.com/neo1218/mana CRUD template
https://github.com/MaxHalford/Flask-Boilerplate
https://github.com/Leo-G/Flask-Scaffold Angular+Python3+CRUD
http://bravenewgeek.com/real-time-client-notifications-using-redis-and-socket-io/
https://github.com/damyanbogoev/flask-bookshelf
http://stackoverflow.com/questions/13081532/how-to-return-json-using-flask-web-framework/
https://buildasaaswithflask.com/
http://www.amazon.com/Mastering-Flask-Jack-Stouffer-ebook/dp/B00YSILB26
https://github.com/JackStouffer/Flask-Foundation
http://habrahabr.ru/post/269163/
https://gist.github.com/oxpa/1afb40770cafc0af0c38
FLASK + d3
https://github.com/kdheepak89/c3.py
https://github.com/nipunreddevil/mpld3-flask
http://www.svenkreiss.com/blog/databench-initial/ d3 + Flask
https://realpython.com/blog/python/flask-by-example-custom-angular-directive-with-D3/
https://github.com/ianozsvald/featherweight_web_api
http://damyanon.net/flask-series-views/
https://github.com/muatik/flask-profiler
https://github.com/jmcarp/flask-apispec
https://github.com/lucianopuccio/pyMonitor
http://habrahabr.ru/post/269163/
https://www.youtube.com/watch?v=PsorlkAF83s Real Time Web Apps with (just) Python and Postgres
https://www.reddit.com/r/flask/comments/3nnuo9/af_best_way_to_display_a_file_which_is_updated/
Deployment
https://github.com/squadran2003/flask-bootstrap-apache-template Deploying Apache
http://damyanon.net/flask-series-deployment/
https://www.reddit.com/r/flask/comments/3ybs2j/deploying_flask_with_uwsgi_and_nginx_the_right_way/
http://habrahabr.ru/post/267097/http://prakhar.me/articles/flask-on-nginx-and-gunicorn/
http://habrahabr.ru/post/222069/ FLASK+Apache configuration
https://pythonspot.com/python-flask-tutorials/
https://messybytes.wordpress.com/2015/10/06/resources-for-flask-framework/
http://charlesleifer.com/blog/saturday-morning-hacks-building-an-analytics-app-with-flask/
REACT + Flask
https://realpython.com/blog/python/the-ultimate-flask-front-end/
https://github.com/gabrielfalcao/flask-react-bootstrap
AJAX with Flask
https://gist.github.com/MalphasWats/3031823
http://www.giantflyingsaucer.com/blog/?p=4310
http://habrahabr.ru/post/237065/
https://www.youtube.com/watch?t=45&v=ZiF6huihomQ
https://github.com/humiaozuzu/awesome-flask
http://explore-flask.readthedocs.org/en/latest/index.html
http://www.jeffknupp.com/blog/2014/01/29/productionizing-a-flask-application/
http://stackoverflow.com/questions/20646822/how-to-serve-static-files-in-flask
ANGULAR
http://tutsbucket.com/tutorials/building-a-blog-using-flask-and-angularjs-part-3/
https://www.codementor.io/tips/7712834638/tips-in-integrating-flask-and-angular-routing
https://github.com/vollov/angular-flask-login
http://stackoverflow.com/questions/27825661/flask-and-angular-web-application-routing
http://tutsbucket.com/tutorials/building-a-blog-using-flask-and-angularjs-part-3/
https://flask.zeef.com/stefane.fermigier
https://github.com/JackStouffer/Flask-Foundation
http://www.reddit.com/r/Python/comments/3bwckp/open_source_projects_in_flask/
http://ains.co/blog/things-which-arent-magic-flask-part-2.html
http://www.syncano.com/intro-flask-pt-2-creating-writing-databases/
https://realpython.com/blog/python/flask-by-example-part-1-project-setup/
https://realpython.com/blog/python/the-ultimate-flask-front-end/
http://impythonist.in/create-hacker-dashboards-with-python-and-pygal-with-lesser-effort/
http://www.vertabelo.com/blog/flask
http://damyanon.net/category/flask/
http://www.blog.pythonlibrary.org/2015/04/16/using-pygal-graphs-in-flask/
http://www.reddit.com/r/flask/comments/36muyi/intermediate_to_advance_flask_tutorials/
https://news.ycombinator.com/item?id=9428017
http://mrjoes.github.io/2015/06/17/flask-admin-120.html
authentication
https://realpython.com/blog/python/handling-user-authentication-with-angular-and-flask/
http://python.talkera.org/login-authentication-with-flask/
https://github.com/no13bus/redispapa
http://habrahabr.ru/post/240787/
http://charlesleifer.com/blog/how-to-make-a-flask-blog-in-one-hour-or-less/
http://www.matthieuamiguet.ch/blog/synchronize-clients-flask-application-websockets
https://github.com/mfitzp/wooey UI for python scripts
http://habrahabr.ru/post/251415/
http://www.reddit.com/r/flask/comments/2tlidk/example_of_complete_flask_and_angular_integration/
https://gist.github.com/jstacoder/863a5df5d7bb76c88323
http://www.reddit.com/r/flask/comments/2t0ion/asynchronous_tasks_with_flask/
http://www.syncano.com/advanced-concepts-flask/
http://ains.co/blog/things-which-arent-magic-flask-part-1.html
http://ains.co/blog/things-which-arent-magic-flask-part-2.html
https://github.com/rpicard/explore-flask BOOK
https://www.packtpub.com/web-development/flask-framework-cookbook
https://www.packtpub.com/packt5dollar
https://github.com/realpython/discover-flask
http://www.reddit.com/r/flask/comments/26osn3/are_there_any_good_open_source_flask_web_projects/
http://habrahabr.ru/post/235505/
http://www.svenkreiss.com/databench/v0.3/
http://tavendo.com/blog/post/going-asynchronous-from-flask-to-twisted-klein/ twisted +Flask
https://www.youtube.com/watch?v=FGrIyBDQLPg
https://github.com/kadnan/Rabtabook example of code
mapping URL to view function
app.add_url_rule() == app.route decorator
/static/filename is a special flask route
print app.url_map
Map([<Rule '/emptyStations/' (HEAD, OPTIONS, GET) -> empty_stations_view>,
<Rule '/chambers/' (HEAD, OPTIONS, GET) -> chambers_view>,
<Rule '/summary/' (HEAD, OPTIONS, GET) -> summary_view>,
<Rule '/map/' (HEAD, OPTIONS, GET) -> map_view>,
<Rule '/' (HEAD, OPTIONS, GET) -> main_view>,
<Rule '/download/<maccor_name>/<channel_name>/<file_name>' (HEAD, OPTIONS, GET) -> download_view>,
<Rule '/chamber/add/<chamber>/<temperature>' (POST, OPTIONS) -> chamber_add_view>,
<Rule '/chamber/disconnect/<chamber>' (PUT, OPTIONS) -> chamber_disconnect_view>,
<Rule '/chamber/connect/<chamber>' (PUT, OPTIONS) -> chamber_connect_view>,
<Rule '/chamber/delele/<chamber>' (OPTIONS, DELETE) -> chamber_delete_view>,
<Rule '/login/<user>/<password>' (HEAD, OPTIONS, GET) -> login_view>,
<Rule '/chamberConnections/<chamber>' (HEAD, OPTIONS, GET) -> chamber_connection_view>,
<Rule '/channelStatus/<station>' (HEAD, OPTIONS, GET) -> channel_view>,
<Rule '/emptyChannels/<station>' (HEAD, OPTIONS, GET) -> empty_channels_view>,
<Rule '/search/<project>' (HEAD, OPTIONS, GET) -> search_view>,
<Rule '/static/<filename>' (HEAD, OPTIONS, GET) -> static>])
=================
Download file, generate CSV or zip
http://stackoverflow.com/questions/30024948/flask-download-a-csv-file-on-clicking-a-button
http://cwestblog.com/2014/10/21/javascript-creating-a-downloadable-file-in-the-browser/
http://stackoverflow.com/questions/24577349/flask-download-a-file
http://stackoverflow.com/questions/27337013/how-to-send-zip-files-in-the-python-flask-framework
https://github.com/libwilliam/flask-compress
http://www.programcreek.com/python/example/65747/flask.send_from_directory
http://mindref.blogspot.com/2014/10/wheezy-web-restful-api-design.html
Jinja2
http://pythonwise.blogspot.com/2013/07/command-line-front-end-to-jinja2.html
https://github.com/NamPNQ/SimpleJinjaServer
https://blog.codecentric.de/en/2014/08/jinja2-better-ansible-playbooks-templates/
http://www.realpython.com/blog/python/primer-on-jinja-templating/
Async WSGI: http://mrjoes.github.io/2013/06/21/python-realtime.html
from app import app
from flask import jsonify
@app.route('/')
@app.route('/index')
def index():
# return "Hello, World!"
# attempt to represent floor plan
my_json2 = {
"row1": {'m01' : {
"left":[{'t1':10},{'t2':20}],
"right":['t2','t3']
}
},
"row2": {'m02' : 't2'}
}
return jsonify(my_json)
Another approach: load JSON FILE into Angular Model
http://stackoverflow.com/questions/13020821/how-to-load-json-into-my-angular-js-ng-model
# FLASK Lesson learned:
# the add_url_rule() args names should exactly match the names in get() method in View.py:
23 # def get(self, maccor_name, channel_name, file_name):
24 #app.add_url_rule('/download/<maccor_name>/<int:channel_name>/<file_name>', view_func=Download.as_view('download_view'), methods=['GET'])
https://github.com/Knio/dominate generate HTML from Python
How to combine angular and jinja2 templates
http://flask-triangle.readthedocs.org/en/develop/tutorial/part1.html
http://chuan7i.com/post/flask-jinja-templates-escaping-to-integrate-with-angular-js
ng-bind instead {{}}
http://mortoray.com/2014/03/04/http-streaming-of-command-output-in-python-flask/
https://www.pythonanywhere.com/wiki/ManagingDatabaseConnections
REST
http://flask-restful.readthedocs.org/en/latest/
https://flask-restless.readthedocs.org/en/latest/
http://www.twilio.com/engineering/2012/10/18/open-sourcing-flask-restful
http://publish.luisrei.com/articles/flaskrest.html
http://blog.miguelgrinberg.com/category/REST
http://pyvideo.org/video/2668/writing-restful-web-services-with-flask
http://www.reddit.com/r/flask/comments/2ggv04/looking_for_flask_restful_api_design_examples/
https://blog.restsecured.xyz/writing-an-api-with-flask-restful-part-1-61b0e26e0e5b#.mv6ahvpyt
http://pycoder.net/bospy/presentation.html REST API with FLASK
http://scastillo.github.com/siesta/ SIESTA - Python Rest Client
http://codehandbook.org/creating-an-angularjs-app-powered-by-python-flask-restful-api/
http://habrahabr.ru/post/246699/ RestFul + FLASK
Flask REST API for Mongo
https://news.ycombinator.com/item?id=7311922
https://github.com/jkklapp/monapi
FLASK REST
http://flask-restful.readthedocs.org/en/latest/quickstart.html
http://flask.pocoo.org/docs/quickstart/#routing
http://tech.pro/tutorial/1213/how-to-build-an-api-with-python-and-flask
http://www.reddit.com/r/Python/comments/1c7kj1/how_to_build_an_api_with_python_and_flask/
http://www.slideshare.net/nicolaiarocci/developing-restful-web-apis-with-python-flask-and-mongodb'
Test flask api from command-line:
curl localhost:5000/api/version
@app.route('/sightings/', methods=['GET'])def sightings(): if request.method == 'GET': results = Sighting.query.limit(10).offset(0).all() json_results = [] for result in results: d = {'sighted_at': result.sighted_at, 'reported_at': result.reported_at, 'location': result.location, 'shape': result.shape, 'duration': result.duration, 'description': result.description, 'lat': result.lat, 'lng': result.lng} json_results.append(d) return jsonify(items=json_results)if __name__ == '__main__':
File: run.py
from app import app app.run(debug = True)
File /app/__init__.py
from flask import Flask app = Flask(__name__) from app import views
File /app/views.py
from app import app from flask import jsonify @app.route('/') @app.route('/index') def index(): # return "Hello, World!" my_json = { 'm01' : 't1', 'm02' : 't2'} return jsonify(my_json)
@app.route('/user/', methods=['GET']) def user(): user1={'name':'peter'} return jsonify(user1)
URL: http://127.0.0.1:5000/
curl localhost:5000/
curl localhost:5000/user/
SQLALCHEMY
driver://username:password@host:port/database
http://pythonhosted.org/Flask-AlchemyView/
http://stackoverflow.com/questions/9766940/how-to-create-an-sql-view-with-sqlalchemy
Automatic page refresh
http://librelist.com/browser//flask/2013/2/10/autorefresh-in-flask/
use the following code inside the head tag to refresh every 5 sec
<meta http-equiv="refresh" content="5" >
Flask-based projects:
https:/github.com/urbanairship/tessera GUI for Graphite
http://charlesleifer.com/blog/saturday-morning-hacks-building-an-analytics-app-with-flask/
https://github.com/BouncyNudibranch/bean-counter
https://github.com/shuhaowu/projecto Angular
https://github.com/martinp/jarvis2 Awesome dashboard built with Flask and AngularJS
https://github.com/basco-johnkevin/building-a-blog-using-flask-and-angularjs
http://maxmautner.com/post/92930043315/making-database-backed-dashboards-in-3-minutes Matplotlib
Monitoring with FLASK
https://github.com/Jahaja/psdash
All data is updated automatically, no need to refresh
def start_background_worker(args, sleep_time=3):
def work():
update_logs_interval = 60
i = update_logs_interval
while True:
net_io_counters.update()
# update the list of available logs every minute
if update_logs_interval <= 0:
logs.add_patterns(args.logs)
i = update_logs_interval
i -= sleep_time
time.sleep(sleep_time)
t = threading.Thread(target=work)
t.daemon = True
t.start()
def main():
start_background_worker(args)
app.run(
host=args.bind_host,
port=args.port,
debug=args.debug,
threaded=True
)
if __name__ == '__main__':
main()
How to run:
pip install psdash
psdash --log /var/log/myapp.log --log /var/log/mydb.log -p 5001 -b "127.0.0.1"
Browser URL is: http://127.0.0.1:5001/
To make it work on Mac I fixed following 2 issues:
File "/usr/local/lib/python2.7/site-packages/psdash/web.py", line 41, in get_users
"host": u.host.decode("utf-8") # "hosts: : "127.0.0.1"
File "/usr/local/lib/python2.7/site-packages/psdash/net.py", line 88, in get_interface_addresses
ifconf_res = fcntl.ioctl(sock.fileno(), SIOCGIFCONF, ifconf_val)
I commented line above and assigned:
91 #MMM buflen, _ = ifconf.unpack(ifconf_res)
92 #MMM resbuf = buf.tostring()
93 buflen = 0
https://github.com/redbrain/watchy
http://datacommunitydc.org/blog/2014/02/flask-mega-meta-tutorial-data-scientists/
https://github.com/sloria/cookiecutter-flask
https://github.com/JackStouffer/Flask-Foundation
https://github.com/cburmeister/flask-bones
https://github.com/codelucas/flask_reddit
https://github.com/Jwpe/Flask-Nicely
Web development and Python
http://docs.python.org/howto/webservers.html
http://fragments.turtlemeat.com/pythonwebserver.php
http://net.tutsplus.com/tutorials/python-tutorials/an-introduction-to-pythons-flask-framework/
FLASK BOOKS
http://www.packtpub.com/flask-web-development/book
VIDEO
http://vimeo.com/81818999 FLASK VIDEO
http://pyvideo.org/video/2608/flask-by-example
http://www.youtube.com/watch?v=muMRNYPmQxE&list=WL2B81563539FF597D
http://www.youtube.com/watch?v=0L8TsmrZPLg
http://www.youtube.com/watch?v=Vl6NZK3B0AQ& Video
http://www.youtube.com/watch?v=5twaatBqmjE
http://www.youtube.com/watch?v=Wb-K40mkhEU
http://www.youtube.com/watch?v=AnNHVupZi5c
http://www.youtube.com/playlist?list=PLLjmbh6XPGK5pM1QJ8I1ccdGiCTHa1IC8
Articles
http://www.pixelmonkey.org/2013/03/13/rapid-web-prototyping-with-lightweight-tools
http://www.realpython.com/ buy via PayPal
http://kracekumar.com/post/71120049966/deploying-full-fledged-flask-app-in-production
Python HTTP lib
http://docs.python.org/howto/webservers.html
http://zeko.me/blog/fellowship/2013/06/calling-a-web-service-from-python/
http://www.pythonforbeginners.com/python-on-the-web/how-to-access-various-web-services-in-python/
http://me.veekun.com/blog/2012/05/05/python-faq-webdev/
http://gun.io/blog/python-for-the-web/
http://docs.python-requests.org/en/latest/index.html
http://habrahabr.ru/blogs/python/127584/ site parsing
http://www.reddit.com/r/Python/comments/hkm8f/python_http_requests_for_humans/
Python runs in browser http://www.brython.info/index_en.html
WSGI
http://lucumr.pocoo.org/2012/8/5/stateless-and-proud/
http://www.python.org/dev/peps/pep-0333/
http://wsgi.org/wsgi/Learn_WSGI
http://pythonpaste.org/webob/do-it-yourself.html
http://www.reddit.com/r/Python/comments/hubv0/how_to_integrate_html_with_python/
WSGI is a common standard for python applications to speak HTTP with something else that provides HTTP. It's just an interface just like HTTP ie you need 2 applications that implement the 2 sides of this interface for it to work (with HTTP, you have the browser and the web server; with WSGI you have the python framework/application and the application server/web server).
Some web server applications offer mods (like Apache and mod_wsgi) to offer the bridge between their web serving capabilities and interfacing with a WSGI application. Other web server applications do not have such mod (like Nginx) but they can connect to independant WSGI application server (like uWSGI) to offer the bridge between their web serving capabilities and interfacing with a WSGI application.
WSGI has been traditionally synchronous even though nothing in the standard mentioned it. People willing to do asynchronous stuff went away from that standard to start their own web server/application server which resulted in Tornado, Twisted (twisted.web, divmod nevow and all the related stuff) and others. WSGI is now so popular that even Tornado and Twisted have an implementation for it. On the async side of thing, a few guys worked on projects called Orbited and Orbited2 which were some kind of async web server for python applications but these projects seem dead now.
It is still possible to do async stuff with WSGI but it might require some work. Gevent is often used to provide such capability. The guys over at gevent-socketiohave a nice structure to do WSGI async stuff if that's what you are into.
Celery is another popular project to add async stuff to your web application. You cannot do direct async web stuff with it, but you can queue up tasks to be executed in an async way which can be useful for long or blocking processes (dumping a big report, doing a big database query, starting a long subprocess, etc). Sometimes, all you might need is a distributed message queue which RabbitMQ or ActiveMQ provides. Sometimes, even a simple key-value store like Reddis or memcached might help you do what you want.
The common production deployment backbone stack these days involve the use of Nginx as the frontend web server and uWSGI for the WSGI bridge to your application. For development needs, most web frameworks come with a built-in web server that is easy to start with a simple command line so you do not need to install and configure Nginx/uWSGI or another web server while you are developing. You still might want to use your production setup in your development environment for various reasons like having a similar stack to minimize environment differences and potential problem based on those differences. I'm personally using the built-in servers.
FLASK
http://www.giantflyingsaucer.com/blog/?p=4310 Flask + AJAX
https://github.com/mjhea0/flaskr-tdd
http://www.realpython.com/intro-to-flask-static-site/
http://www.realpython.com/blog/python/python-web-applications-with-flask-part-ii-app-creation/
http://www.realpython.com/blog/python/python-web-applications-with-flask-part-ii/
http://www.realpython.com/blog/python/python-web-applications-with-flask-part-ii/
http://www.realpython.com/blog/python/python-web-applications-with-flask-part-iii/
http://pypix.com/python/building-flask-blog/
http://pypix.com/python/building-flask-blog-part-1/
http://pypix.com/python/building-flask-blog-part2/
http://pypix.com/python/building-flask-blog-part3/
http://maximebf.com/blog/2012/10/building-websites-in-python-with-flask/
https://github.com/bev-a-tron/MyFlaskTutorial
http://www.stevenloria.com/hosting-static-flask-sites-for-free-on-github-pages/
http://www.reddit.com/r/Python/comments/215d5k/looking_for_some_ajaxpowered_flask_select_widget/
Flask Mega Tutorial
http://habrahabr.ru/post/193260/
http://habrahabr.ru/post/194062/
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
http://www.reddit.com/r/Python/comments/1mq8ic/show_rpython_a_boilerplate_for_your_flask/
http://www.kickstarter.com/projects/1223051718/practical-flask-book-project
http://robert.io/blog/2013/06/22/call-with-flask-creator-armin-ronacher/
http://net.tutsplus.com/tutorials/python-tutorials/intro-to-flask-adding-a-contact-page/
http://tech.pro/tutorial/1213/how-to-build-an-api-with-python-and-flask
https://news.ycombinator.com/item?id=5431433
http://me.veekun.com/blog/2012/05/05/python-faq-webdev/
http://maximebf.com/blog/2012/10/building-websites-in-python-with-flask/
http://habrahabr.ru/post/164823/#habracut
http://code.tutsplus.com/tutorials/an-introduction-to-pythons-flask-framework--net-28822
http://news.ycombinator.com/item?id=4642886
http://blog.selfassembled.org/posts/api_base.html
https://speakerdeck.com/singingwolfboy/flask-vs-django
http://me.veekun.com/blog/2012/07/28/quick-doesnt-mean-dirty/
http://habrahabr.ru/post/148765/ Flask -Admin
https://github.com/mitsuhiko/flask/tree/master/examples/flaskr
http://css.dzone.com/articles/building-web-server-python-and
https://github.com/search?langOverride=&language=Python&q=flask
https://demiazz.wordpress.com/category/python-2/flask-python/
http://jjinux.blogspot.com/2011/04/pycon-opening-flask.html
http://flask.pocoo.org/extensions/
http://leafstorm.us/projects/ Flask extensions
https://github.com/esbullington/flask-bootstrap
http://twitter.github.com/bootstrap/
https://speakerdeck.com/u/kennethreitz/p/flasky-goodness
http://tech.pro/tutorial/1160/flask-an-introduction-to-python-s-lightweight-web-framework
http://dev.hasenj.org/post/38188152502 Adding web sockets to Flask apps
http://vertstudios.com/blog/new-flask-site/
http://lucumr.pocoo.org/talks/
http://dev.pocoo.org/~mitsuhiko/FlaskPatterns_notes.pdf
http://news.ycombinator.com/item?id=4207164
https://speakerdeck.com/u/mitsuhiko/p/advanced-flask-patterns
http://librelist.com/browser/flask/
Flask Skeleton
https://github.com/jibs/flask-skeleton
https://github.com/jhorneman/flask-skeleton
https://github.com/sean-/flask-skeleton
https://github.com/Leo-g/Flask-Skeleton/wiki/Scaffolding
http://blog.r.empel.co/how-i-organized-my-first-flask-project
http://mattupstate.com/python/2013/06/26/how-i-structure-my-flask-applications.html
http://www.cols-code-snippets.co.uk/2011/02/my-take-on-flask-application-skeleton.html
https://github.com/sloria/cookiecutter-flask/tree/simple
https://github.com/iwebhosting/collectd-flask
https://github.com/Greplin/scales#readme
FALCON
https://falcon.readthedocs.org/en/latest/
BOTTLE
http://www.blog.pythonlibrary.org/2013/07/22/bottle-creating-a-python-todo-list-web-app/
https://bottle.readthedocs.org/en/latest/tutorial.html
http://css.dzone.com/articles/bottle-lightweight-python
http://bottlepy.org/docs/dev/tutorial_app.html
http://www.slideshare.net/juokaz/restful-web-services-with-python-dynamic-languages-conference
http://www.opikanoba.org/python/repr-bottle
http://www.hveiga.com/2012/06/how-to-create-a-rest-webservice-with-python-and-bottle/
http://blog.webspecies.co.uk/2011-06-15/restful-web-services-with-python-the-easy-way.html
http://gotofritz.net/blog/weekly-challenge/restful-python-api-bottle/
https://github.com/SmithSamuelM/upugdemo
http://isbullsh.it/2011/11/Python-micro-frameworks/
http://www.realpython.com/blog/python/developing-with-bottle-part-2-plot-ly-api/
https://speakerdeck.com/excusemejoe/tapei-dot-py-bottle-introduction-at-2013-dot-03-dot-28
http://www.marginhound.com/bottle-py-resources/
http://zachwill.posterous.com/the-new-toolkit
http://golubenco.org/?p=16 TORNADO
http://www.vurt.ru/2011/04/Tipfy
http://webapp-improved.appspot.com/
Django
https://books.agiliq.com/projects/django-api-polls-tutorial/en/latest/
https://www.reddit.com/r/Python/comments/84ffem/difference_between_django_rest_and_django/
https://news.ycombinator.com/item?id=13611220
http://www.youtube.com/watch?v=zTNA0MtZwso
http://www.djangocurrent.com/2016/07/uwsgi-basic-django-setup_74.html
http://www.tangowithdjango.com/
http://gettingstartedwithdjango.com/
https://medium.com/cs-math/f29f6080c131
https://news.ycombinator.com/item?id=5567239
http://www.youtube.com/watch?v=NfsJDPm0X54
http://www.reddit.com/r/Python/comments/1cl17o/11_things_i_wish_i_knew_about_django_development/
http://tech.yipit.com/2012/08/21/how-i-taught-myself-to-code-in-8-weeks/
http://showmedo.com/videotutorials/video?name=1100000&fromSeriesID=110
http://www.robgolding.com/blog/2011/11/12/django-in-production-part-1---the-stack/
http://www.franciscosouza.net/2010/08/flying-with-django-in-google-app-engine.html
http://www.franciscosouza.net/2010/08/flying-with-web2py-in-google-app-engine.html
http://docs.djangoproject.com/
http://news.ycombinator.com/item?id=2777883
http://equallytrue.blogspot.com/2012/05/170-django-conference-videos.html
http://elweb.co/programacion/33-projects-that-make-developing-django-apps-awesome/
http://djangosnippets.org
http://lincolnloop.com/django-best-practices/index.html
http://stevelosh.com/blog/2011/06/django-advice/
http://habrahabr.ru/blogs/python/105627/
Eli Bendersky
http://eli.thegreenplace.net/2011/06/24/how-django-sessions-work-introduction/
http://lightbird.net/dbe/intro.html
http://djangopony.com/
http://qooxdoo.org/