#Django REST #framework is a powerful and flexible toolkit for building #Web APIs.
Some reasons you might want to use REST framework:
The Web browsable #API is a huge usability win for your developers.
Authentication policies including packages for OAuth1a and OAuth2.
Serialization that supports both ORM and non-ORM data sources.
Customizable all the way down - just use regular function-based views if you don't need the more powerful features.
Extensive documentation, and great community support.
Used and trusted by internationally recognised companies including Mozilla, Red Hat, Heroku, and Eventbrite.
http://www.django-rest-framework.org/
http://cherrypy.org/
#CherryPy
A Minimalist #Python#Web#Framework.
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django
#Django is an extremely popular and fully featured server-side #web#framework, written in #Python. The module shows you why Django is one of the most popular web server frameworks, how to set up a development environment, and how to get started with using it to create your own web #applications.
Prerequisites
Before starting this module you don't need to have any knowledge of Django. You will need to understand what server-side web programming and web frameworks are, ideally by reading the topics in our Server-side website programming first steps module.
A general knowledge of programming concepts and Python is recommended, but not essential to understanding the core concepts.
https://docs.djangoproject.com/en/1.11/ref/contrib/gis/
#GeoDjango intends to be a world-class #geographic#Web#framework. Its goal is to make it as easy as possible to build #GIS Web applications and harness the power of spatially enabled data.
http://astrocodeschool.com/
Astro Code School is respected by tech firms and universities for a reason: we’re founded and staffed by a leading #web#development firm, Caktus Group. Our team interacts daily with the inner workings of Caktus so we see the trends and best practices that will make you job ready. If you’re prepared to launch a new career with the real-world technical depth employers seek, Astro is right for you.
https://www.python.org/dev/peps/pep-0492/
#Coroutines with #async and #await syntax
https://bit.ly/coroutines
At Open Source Bridge and #PyGotham in 2015, and at SCALE14x, I demonstrated that you can code a Python 3 #async framework in under an hour. I start the demo by writing a callback-based async framework, built on non-blocking sockets and a simple event loop. Then I adapt the framework to use generator-based #coroutines, which are cleaner than callbacks but still more efficient than threads for async I/O.
https://github.com/aio-libs/aiohttp-debugtoolbar
aiohttp_debugtoolbar provides a debug toolbar for your #aiohttp#web application. Library is port of pyramid_debugtoolbar and still in early development stages. Basic functionality has been ported:
basic panels
intercept redirects
intercept and pretty print exception
interactive python console
show source code
https://github.com/realpython/discover-flask/blob/master/readme.md
#Flask is a micro web #framework powered by Python. Its #API is fairly small, making it easy to learn and simple to use. But don't let this fool you, as it's powerful enough to support enterprise-level applications handling large amounts of traffic. You can start small with an app contained entirely in one file, then slowly scale up to multiple files and folders in a well-structured manner as your site becomes more and more complex.
https://github.com/aio-libs/aiohttp-jinja2
Before template rendering you have to setup #jinja2 environment first:
After that you may to use template engine in your #web-handlers. The most convenient way is to decorate a web-handler.
Using the function based web handlers: