{"id":66742,"date":"2020-09-22T05:48:43","date_gmt":"2020-09-22T05:48:43","guid":{"rendered":"https:\/\/www.fita.in\/?p=66742"},"modified":"2023-10-09T12:45:24","modified_gmt":"2023-10-09T12:45:24","slug":"top-frameworks-in-python","status":"publish","type":"post","link":"https:\/\/www.fita.in\/top-frameworks-in-python\/","title":{"rendered":"Top 5 Frameworks In Python"},"content":{"rendered":"
\r\n

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.<\/p>\r\n

It gained its popularity due to its simple english statements like syntax , extensible and rich set of libraries and frameworks, readymade packages and modules.<\/p>\r\n

In this blog we’ll discuss..<\/p>\r\n

\r\n
<\/i> What is a Framework, and why would you need it.<\/div>\r\n
<\/i> Types Of Frameworks.<\/div>\r\n
<\/i> The Most Popular Frameworks In Python.<\/div>\r\n<\/div>\r\n

What Are Frameworks<\/h3>\r\n

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.<\/p>\r\n

Frameworks can reduce time required to develop a project.<\/p>\r\n

For example, Django and Flask are back-end frameworks built on top of Python and as so called Python Frameworks, whereas React and Angular are front-end frameworks known as Javascript Frameworks.<\/p>\r\n

Types Of Frameworks<\/h3>\r\n

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<\/p>\r\n

\r\n
<\/i> Web Application Frameworks<\/div>\r\n
<\/i> DataScience Frameworks<\/div>\r\n
<\/i> Mobile Development Frameworks<\/div>\r\n
<\/i> And so on..<\/div>\r\n<\/div>\r\n

Top 5 Frameworks In Python<\/h3>\r\n

1. Django<\/strong><\/h3>\r\n

The web framework for perfectionists with deadlines.<\/p>\r\n

Django is..<\/p>\r\n

\r\n
<\/i> Ridiculously fast<\/div>\r\n
<\/i> Reassuringly secure<\/div>\r\n
<\/i> Exceedingly scalable<\/div>\r\n<\/div>\r\n

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.<\/p>\r\n

Check out this Online Python Course<\/a> by FITA<\/a>. FITA provides a complete Django course where you will be building real-time projects like Bitly and Twitter bundled with Python training.<\/p>\r\n

Hello world App with Django<\/strong><\/p>\r\n\r\n\r\n\r\n
\r\n

from<\/strong>django.http<\/strong>import<\/strong> HttpResponse<\/p>\r\n

from<\/strong>django.views<\/strong>import<\/strong> View<\/p>\r\n
\r\n

class<\/strong>HomeView<\/strong>(View):<\/p>\r\n

         def<\/strong> get(self, request, *args, **kwargs):<\/p>\r\n

                return<\/strong> HttpResponse(‘Hello World!’)<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n

\r\n
<\/i> The setup and structure has not been manifested in the above code.<\/div>\r\n<\/div>\r\n

Top Companies using Django..<\/strong><\/p>\r\n

\r\n
<\/i> Instagram<\/div>\r\n
<\/i> Dropbox<\/div>\r\n
<\/i> Youtube<\/div>\r\n
<\/i> Spotify<\/div>\r\n
<\/i> Coursera<\/div>\r\n
<\/i> Udemy<\/div>\r\n
<\/i> Pinterest<\/div>\r\n<\/div>\r\n

2. Flask<\/strong><\/h3>\r\n

One drop at a time<\/p>\r\n

Flask is<\/p>\r\n

\r\n
<\/i> Lightweight<\/div>\r\n
<\/i> Pythonic<\/div>\r\n
<\/i> Dependant on Werkzeug and Jinja<\/div>\r\n<\/div>\r\n

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.<\/p>\r\n

Hello World App with Flask<\/strong><\/p>\r\n\r\n\r\n\r\n
\r\n

from<\/strong> flask import<\/strong> Flask<\/p>\r\n

app = Flask(<\/strong>__name__)<\/strong><\/p>\r\n
\r\n

@app.route(<\/strong>‘\/’)<\/strong><\/p>\r\n

def<\/strong> hello_world():<\/strong><\/p>\r\n

       return<\/strong> “Hello World!”<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n

\r\n
<\/i> The setup and structure has not been manifested in the above code.<\/div>\r\n<\/div>\r\n

Top Companies using Flask..<\/strong><\/p>\r\n

\r\n
<\/i> Reddit<\/div>\r\n
<\/i> MIT<\/div>\r\n
<\/i> Uber<\/div>\r\n
<\/i> Lyft<\/div>\r\n
<\/i> Mozilla<\/div>\r\n
<\/i> Netflix<\/div>\r\n<\/div>\r\n

3. Web2py<\/h3>\r\n

Simple And Easy To Learn<\/p>\r\n

Web2py has…<\/p>\r\n

\r\n
<\/i> No prerequisites for installation<\/div>\r\n
<\/i> Provides data security from malicious attacks.<\/div>\r\n
<\/i> Provides one click deployment.<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n
\r\n

class HelloRequestHandler(BaseHTTPRequestHandler):<\/p>\r\n

      def do_GET(self):<\/p>\r\n

          if self.path != ‘\/’:<\/p>\r\n

             self.send_error(404, “Not found”)<\/p>\r\n

             return<\/p>\r\n

          self.send_response(200)<\/p>\r\n

          self.send_header(‘Content-type’, ‘text\/html; charset=utf-8’)<\/p>\r\n

          self.end_headers()<\/p>\r\n

          response_text = textwrap.dedent(”’\\<\/p>\r\n

         <html><\/p>\r\n

             <body><\/p>\r\n

                 <h1>Hello World!<\/h1><\/p>\r\n

             <\/body><\/p>\r\n

         <\/html><\/p>\r\n

          ”’)<\/p>\r\n

          self.wfile.write(response_text.encode(‘utf-8’))<\/p>\r\n

server_address = (”, 8000)<\/p>\r\n

httpd = HTTPServer(server_address, HelloRequestHandler)<\/p>\r\n

httpd.serve_forever()<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n

Companies Using Web2py..<\/strong><\/p>\r\n

\r\n
<\/i> Rune Interactive<\/div>\r\n
<\/i> Sarapis<\/div>\r\n
<\/i> Vidjil<\/div>\r\n
<\/i> StopStalk<\/div>\r\n
<\/i> Food2Fork<\/div>\r\n
<\/i> Groupthink<\/div>\r\n<\/div>\r\n

4. CherryPy<\/h3>\r\n

A minimalist python framework<\/p>\r\n

CherryPy is…<\/p>\r\n

\r\n
<\/i> Simple<\/div>\r\n
<\/i> cost effective deployment<\/div>\r\n
<\/i> Devoted community<\/div>\r\n<\/div>\r\n

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.<\/p>\r\n

Hello World App with CherryPy.<\/strong><\/p>\r\n\r\n\r\n\r\n
\r\n

import cherrypy<\/p>\r\n

class HelloWorld(object):<\/p>\r\n

        @cherrypy.expose<\/p>\r\n

        def index(self):<\/p>\r\n

              return “Hello World!”<\/p>\r\n

cherrypy.quickstart(HelloWorld())<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n

Companies using CherryPy.<\/strong><\/p>\r\n

\r\n
<\/i> YouGov Global<\/div>\r\n
<\/i> CherryMusic<\/div>\r\n
<\/i> Linstic<\/div>\r\n
<\/i> Fight.Watch<\/div>\r\n
<\/i> Aculab Cloud<\/div>\r\n<\/div>\r\n

5. TurboGears<\/h3>\r\n

The Web Framework That Scales With You<\/p>\r\n

Turbo Gears provides..<\/p>\r\n

\r\n
<\/i> Multi database support<\/div>\r\n
<\/i> Designer Friendly template system<\/div>\r\n
<\/i> Makes AJAX heavy apps easier<\/div>\r\n<\/div>\r\n

TurboGears ,a mega python web framework uses WSGI components and is designed around MVC (Model-View-Controller) module. It is easier and more maintainable.<\/p>\r\n

Hello world app with Turo Gears<\/strong><\/p>\r\n\r\n\r\n\r\n
\r\n

from wsgiref.simple_server import make_server<\/strong><\/p>\r\n

from<\/strong>tg<\/strong>import<\/strong> expose, TGController<\/p>\r\n

from<\/strong>tg<\/strong>import<\/strong> MinimalApplicationConfigurator<\/p>\r\n
\r\n

class<\/strong>RootController<\/strong>(TGController):<\/p>\r\n

    @expose<\/strong>(content_type=”text\/plain”)<\/p>\r\n

    def<\/strong> index(self):<\/p>\r\n

          return<\/strong> ‘Hello World’<\/p>\r\n

 config = MinimalApplicationConfigurator()<\/p>\r\n

 config.update_blueprint({<\/p>\r\n

    ‘root_controller’: RootController()<\/p>\r\n

 })<\/p>\r\n
\r\n

 httpd = make_server(‘ ‘, 8080, config.make_wsgi_app())<\/p>\r\n

 httpd.serve_forever()<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n

Top companies using TurboGear..<\/strong><\/p>\r\n

\r\n
<\/i> Ableton AG<\/div>\r\n
<\/i> Noble Energy, Inc.<\/div>\r\n
<\/i> Annex Consulting Group Inc.<\/div>\r\n
<\/i> enGenius Consulting Group Inc.<\/div>\r\n
<\/i> Stevens Institute of Technology<\/div>\r\n<\/div>\r\n

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 <\/a>or Python Course in Bangalore<\/a> by FITA<\/a> at an affordable price, which includes certification, support with career guidance assistance.<\/p>","protected":false},"excerpt":{"rendered":"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 […]","protected":false},"author":1,"featured_media":89150,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-66742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"acf":[],"yoast_head":"\nTop 5 Frameworks In Python | python web framework | Python Web Framework<\/title>\n<meta name=\"description\" content=\"Top 5 Frameworks In Python : Django, Flask, CherryPy, Web2py, TurboGears. It can handle much of the hassle of web development so that you can just focus on writing the application without reinventing the wheel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fita.in\/top-frameworks-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top 5 Frameworks In Python | python web framework | Python Web Framework\" \/>\n<meta property=\"og:description\" content=\"Top 5 Frameworks In Python : Django, Flask, CherryPy, Web2py, TurboGears. It can handle much of the hassle of web development so that you can just focus on writing the application without reinventing the wheel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fita.in\/top-frameworks-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"FITA Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/fitaAcademy\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-22T05:48:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-09T12:45:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/09\/The-Top-5-Frameworks-In-Python.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fitaacademy\" \/>\n<meta name=\"twitter:site\" content=\"@fitaacademy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Top 5 Frameworks In Python | python web framework | Python Web Framework","description":"Top 5 Frameworks In Python : Django, Flask, CherryPy, Web2py, TurboGears. It can handle much of the hassle of web development so that you can just focus on writing the application without reinventing the wheel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fita.in\/top-frameworks-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Top 5 Frameworks In Python | python web framework | Python Web Framework","og_description":"Top 5 Frameworks In Python : Django, Flask, CherryPy, Web2py, TurboGears. It can handle much of the hassle of web development so that you can just focus on writing the application without reinventing the wheel.","og_url":"https:\/\/www.fita.in\/top-frameworks-in-python\/","og_site_name":"FITA Academy","article_publisher":"https:\/\/www.facebook.com\/fitaAcademy","article_published_time":"2020-09-22T05:48:43+00:00","article_modified_time":"2023-10-09T12:45:24+00:00","og_image":[{"width":800,"height":400,"url":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/09\/The-Top-5-Frameworks-In-Python.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@fitaacademy","twitter_site":"@fitaacademy","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#article","isPartOf":{"@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/"},"author":{"name":"admin","@id":"https:\/\/www.fita.in\/#\/schema\/person\/bb54ebe12aae8299727b8582c44347fb"},"headline":"Top 5 Frameworks In Python","datePublished":"2020-09-22T05:48:43+00:00","dateModified":"2023-10-09T12:45:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/"},"wordCount":986,"publisher":{"@id":"https:\/\/www.fita.in\/#organization"},"image":{"@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/09\/The-Top-5-Frameworks-In-Python.jpg","articleSection":["Python"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/","url":"https:\/\/www.fita.in\/top-frameworks-in-python\/","name":"Top 5 Frameworks In Python | python web framework | Python Web Framework","isPartOf":{"@id":"https:\/\/www.fita.in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#primaryimage"},"image":{"@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/09\/The-Top-5-Frameworks-In-Python.jpg","datePublished":"2020-09-22T05:48:43+00:00","dateModified":"2023-10-09T12:45:24+00:00","description":"Top 5 Frameworks In Python : Django, Flask, CherryPy, Web2py, TurboGears. It can handle much of the hassle of web development so that you can just focus on writing the application without reinventing the wheel.","breadcrumb":{"@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fita.in\/top-frameworks-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#primaryimage","url":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/09\/The-Top-5-Frameworks-In-Python.jpg","contentUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/09\/The-Top-5-Frameworks-In-Python.jpg","width":800,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.fita.in\/top-frameworks-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fita.in\/"},{"@type":"ListItem","position":2,"name":"Top 5 Frameworks In Python"}]},{"@type":"WebSite","@id":"https:\/\/www.fita.in\/#website","url":"https:\/\/www.fita.in\/","name":"FITA Academy","description":"","publisher":{"@id":"https:\/\/www.fita.in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fita.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fita.in\/#organization","name":"FITA Academy","url":"https:\/\/www.fita.in\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fita.in\/#\/schema\/logo\/image\/","url":"https:\/\/www.fita.in\/wp-content\/uploads\/2019\/07\/site-logo-2.png","contentUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2019\/07\/site-logo-2.png","width":206,"height":100,"caption":"FITA Academy"},"image":{"@id":"https:\/\/www.fita.in\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/fitaAcademy","https:\/\/x.com\/fitaacademy","https:\/\/www.instagram.com\/fita_Academy\/","https:\/\/www.linkedin.com\/company\/9223636\/admin\/","https:\/\/www.youtube.com\/channel\/UCIbVc86kI5Jnq4Ez_8_hhIg?view_as=subscriber"]},{"@type":"Person","@id":"https:\/\/www.fita.in\/#\/schema\/person\/bb54ebe12aae8299727b8582c44347fb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1eb033f2b18b94065fabbcf6c8d8766b4ce3e554fea0cd7e183a04d46a52a42c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1eb033f2b18b94065fabbcf6c8d8766b4ce3e554fea0cd7e183a04d46a52a42c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1eb033f2b18b94065fabbcf6c8d8766b4ce3e554fea0cd7e183a04d46a52a42c?s=96&d=mm&r=g","caption":"admin"}}]}},"_links":{"self":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts\/66742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/comments?post=66742"}],"version-history":[{"count":6,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts\/66742\/revisions"}],"predecessor-version":[{"id":89151,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts\/66742\/revisions\/89151"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/media\/89150"}],"wp:attachment":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/media?parent=66742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/categories?post=66742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/tags?post=66742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}