Python has been the trending language and becoming more and more popular since a few years. Although it gained its popularity in 2003 , it was introduced in the 1980s by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC language.
It gained its popularity due to its simple english statements like syntax , extensible and rich set of libraries and frameworks, readymade packages and modules.
In this blog we’ll discuss..
What Are Frameworks
A framework is a software, with which you don’t need to create or implement things from scratch and instead use the given basic structure and just start making your own project. And that’s why frameworks usually have boilerplates.
Frameworks can reduce time required to develop a project.
Types Of Frameworks
Frameworks are in almost every domain and mostly open-source,you can just install it in your IDE and get started or contribute a new feature or request an edit. Most famous categories where frameworks are used for development are
Top 5 Frameworks In Python
The web framework for perfectionists with deadlines.
It is a high-level Python Framework.It can handle much of the hassle of web development so that you can just focus on writing the application without reinventing the wheel. Django uses Object Relational Mapping(ORM) to connect to a database using object oriented paradigm.
Hello world App with Django
def get(self, request, *args, **kwargs):
return HttpResponse(‘Hello World!’)
Top Companies using Django..
One drop at a time
Flask is another micro web framework for web application development. Flask is easy to get started as a beginner because there are less boilerplates than django and the developer can have more control over structure and flow of the application.
Hello World App with Flask
from flask import Flask
app = Flask(__name__)
return “Hello World!”
Top Companies using Flask..
Simple And Easy To Learn
if self.path != ‘/’:
self.send_error(404, “Not found”)
self.send_header(‘Content-type’, ‘text/html; charset=utf-8’)
response_text = textwrap.dedent(”’\
server_address = (”, 8000)
httpd = HTTPServer(server_address, HelloRequestHandler)
Companies Using Web2py..
A minimalist python framework
Cherrypie does not provide utilities for frontend framework and instead lets the developer make those decisions. Contrast to other python frameworks like django, flask or bottle CherryPy does its best to give full control over application structure and design with almost no boilerplates.
Hello World App with CherryPy.
return “Hello World!”
Companies using CherryPy.
The Web Framework That Scales With You
Turbo Gears provides..
TurboGears ,a mega python web framework uses WSGI components and is designed around MVC (Model-View-Controller) module. It is easier and more maintainable.
Hello world app with Turo Gears
from wsgiref.simple_server import make_server
fromtgimport expose, TGController
return ‘Hello World’
config = MinimalApplicationConfigurator()
httpd = make_server(‘ ‘, 8080, config.make_wsgi_app())
Top companies using TurboGear..
This was all about the famous frameworks in python with their applications. To get in-depth knowledge of Python along with its various applications and real-time projects, you can enroll in Python Course in Chennai or Python Course in Bangalore by FITA at an affordable price, which includes certification, support with career guidance assistance.