Python Frameworks
Thu July 09 2015
Django
TurboGears
Web2Py
Pylons
Grok
Zpe2
Full Stack
Non - Full Stack
Flask
Bottle
Pyramid
CherryPy
Python Frameworks
Django
TurboGears
Web2Py
Full Stack
Non - Full Stack
Flask
Bottle
Popular Python
Frameworks
Bottle
Bottle: Python Web Framework
WSGI micro web-framework for Python.
It is distributed as a single file module.
No dependencies other than the Python Standard Library.
Bottle: Python Web Framework
Routing: URL Requests to function-call mapping
Templates: Fast and pythonic built-in template engine
Utilities: Convenient access to form data, file uploads, cookies, headers and other HTTP-related metadata.
Server: Built-in HTTP development server.
Web2py
Web2py
free, open-source web framework for agile development of secure database-driven web applications
Web2py
Applications
Web2py: Applications
Models
Controllers
Views
Languages
Static files
Errors
Databases
Cache
Modules
Uploads
Tests
Web2py
Request/Response handling
Background tasks
Scheduler
Logging
Session
Cookies
Internacionalization
URL Rewrite
TurboGears
TurboGears 2
Built on top of the experience of several next generation web frameworks including TurboGears 1 (of course), Django, and Rails.
TurboGears
Starts as a microframework and scales up to a fullstack solution
Code that is as natural as writing a function
A powerful and flexible Object Relational Mapper (ORM) with real multi-database support
Support for Horizontal data partitioning (aka, sharding)
A new widget system to make building AJAX heavy apps easier
TurboGears
Support for multiple data-exchange formats Built in extensibility
Designer friendly template system great for programmers
Flask
Flask
microframework for Python
Flask
Request / response
Session
Testing
JSON Support
Template rendering
Configuration
URL Mapping
Who is using Flask?
Vine
Keen io
Runscope
Teleport
Trotter
Django
Django
The web framework for perfectionists with deadlines.
Django
Object Relational Mapper
URLs and views
Templates
Forms
Authentication
Admin
Internationalization
Security
Who is using Django?
Coursera
Udacity
Bitbucket
Keen io
There is more...
Tornado
Tornado
A Python web framework and asynchronous networking library
Tornado
By using non-blocking network I/
Can scale to tens of thousands of open connections
Ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
Who is using Tornado?
Keen io
Benckmark Time!!
Benckmark Time
JSON test: Serialize a object to JSON and return 'application/json' response.
Benckmark Time
JSON test
Benckmark Time
Remote test: Load and return http response from a remote server.
Benckmark Time
Remote test
Benckmark Time
Complete test. Load some data from DB using ORM, insert a new object, sort and render to template.
Benckmark Time
Complete test
References
https://wiki.python.org/moin/WebFrameworks
http://www.fullstackpython.com/web-frameworks.html
https://www.airpair.com/python/posts/django-flask-pyramid
http://bottlepy.org/docs/dev/index.html
https://www.djangoproject.com/
http://www.tornadoweb.org/en/stable/
Social
Thanks!
Popular Python Frameworks
By Jhon Jairo Roa
Popular Python Frameworks
- 2,467