Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Flask

658 views

Published on

Introduction to Flask Micro Web Framework

Published in: Software
  • Be the first to comment

  • Be the first to like this

Flask

  1. 1. What is Werzeug? Werzeug is a WSGI utility library for python. It is simple to use yet one of the most advanced and powerful WSGI utility modules. Web Server Gateway Interface (WSGI ) is a standard interface through which web server and web application written in Python communicates. A WSGI server receives request from client , passes it to the application and sends the response provided by the application back to the client.
  2. 2. Features of Werzeug • It includes a powerful and interactive javascript based in- browser debugger. • It has fully features request and response objects. • It has HTTP utilities to handle entity tags cache control headers, HTTP dates , cookie handling, file uploads and a powerful URL routing system. • Provides Unicode support. • It supports Python 2.6 and higher versions. • Werzeug is a base of frameworks like Flask and other frameworks developed for commercial websites and products.
  3. 3. What is Jinja2? Jinja2 is a fully featured simple to use template engine for python. Wide Range of features of Jinja2 includes: • Sandbox execution mode. • Powerful automatic HTML escaping system for cross site scripting prevention. • Template inheritance which makes it possible to use similar layout for all templates. • Easy to debug with debugging system that integrates compile and runtime errors into standard Python traceback system. • Optional Ahead of time template compilation. • Configurable syntax.
  4. 4. Interesting Flask Features: • It contains development server and debugger. • It has integrated support for unit testing. • It uses Jinja2 template engine. • RESTful request dispatching. • It includes support for cookies . (client side session) • 100 % WSGI compliant. • Unicode based. • Google App Engine compatible. • Extensions are available to add in ORM, form validation, file uploading and to enhance desired features.
  5. 5. Create a n isolated development environment -> $ virtualenv flaskapp

×