1 00:00:00,790 --> 00:00:08,080 Hello, friends, in this video, we shall have an overview of flask web application framework. 2 00:00:12,660 --> 00:00:15,370 So what is a Web application framework? 3 00:00:15,960 --> 00:00:25,210 It is a collection of utilities and modules that are required for the development of Web enabled application. 4 00:00:25,590 --> 00:00:34,890 So for the Web application, the all the utilities and modules that are required are provided in a Web 5 00:00:34,890 --> 00:00:36,030 application framework. 6 00:00:38,920 --> 00:00:42,700 For example, if you want to develop a Web application. 7 00:00:44,030 --> 00:00:53,030 Normally, the Web server has the Web pages that are posted on it, and when your browser browser is 8 00:00:53,030 --> 00:01:01,150 a client of your Web server, then it requests in particular you are in from the premier's address bar. 9 00:01:01,520 --> 00:01:04,490 Then the Web server accepts the request. 10 00:01:06,090 --> 00:01:11,440 Maps the request to a particular Web page and renders the data back to the browser. 11 00:01:12,120 --> 00:01:20,670 So in all these activities, different lower level activities like the server binding to a particular 12 00:01:20,670 --> 00:01:26,670 hostname, the server listening to the external requests. 13 00:01:27,660 --> 00:01:33,690 The client sends the request to the server and then server sends back to. 14 00:01:34,820 --> 00:01:39,880 The clients bought no and lost their data that is requested by. 15 00:01:40,220 --> 00:01:45,230 So all these low level activities are involved in a Web application. 16 00:01:46,220 --> 00:01:53,270 What does the Web application framework do, it frees the user or the developer from all the lower-level 17 00:01:53,270 --> 00:01:59,690 activities, such as what are the protocols, what are what is how the management is done that is all 18 00:01:59,690 --> 00:02:02,540 taken care of by the Web application framework. 19 00:02:03,680 --> 00:02:11,090 All these different Web application frameworks are essentially a server side technology, what it is 20 00:02:11,090 --> 00:02:13,910 called the server side technology. 21 00:02:14,480 --> 00:02:24,410 But of late, modern frameworks are also taking care of certain AJAX based activities in order to help 22 00:02:24,410 --> 00:02:29,380 the developer perform certain blindsight, you know, development or coding. 23 00:02:31,310 --> 00:02:32,450 As part of the. 24 00:02:33,630 --> 00:02:36,600 By Tom's Web application frameworks are concerned. 25 00:02:38,460 --> 00:02:45,880 There are many popular Web application frameworks like Django is one of the very popular ones, flask, 26 00:02:46,080 --> 00:02:48,840 pyramid, turbochargers, etc.. 27 00:02:49,810 --> 00:02:54,190 All these Tom Bassler Web application frameworks are. 28 00:02:58,480 --> 00:03:00,940 W w g, I complained. 29 00:03:02,590 --> 00:03:12,780 What is this guy stands for Web server Gateway Interface, WRGA is not a software, it is not a module, 30 00:03:12,790 --> 00:03:17,860 it is not a package, but rather it is a standard prescribed for. 31 00:03:19,140 --> 00:03:27,240 The development of PyCon based Web applications, so all these frameworks that I have listed, these 32 00:03:27,240 --> 00:03:31,560 frameworks are all WGI compliant frameworks. 33 00:03:32,710 --> 00:03:33,250 So. 34 00:03:34,280 --> 00:03:37,310 The flock is also WGI Complan. 35 00:03:38,500 --> 00:03:39,940 Web application framework. 36 00:03:44,210 --> 00:03:50,030 What is the flask flask is a Web application for the mug, as we have seen written in by Tom. 37 00:03:51,830 --> 00:03:55,100 It is developed by Armin Renascent. 38 00:03:56,300 --> 00:04:04,400 Now, he is the person who is heading a group of Python enthusiasts, and the name of the group is called 39 00:04:04,850 --> 00:04:16,250 Poco Poker is a group of Python developers which have developed different Python based modules or projects, 40 00:04:16,550 --> 00:04:18,000 for example, flosses one. 41 00:04:18,980 --> 00:04:22,370 Then there is a work 42 00:04:24,860 --> 00:04:25,910 group that. 43 00:04:27,470 --> 00:04:30,350 He's also a part of the Pokot group. 44 00:04:30,530 --> 00:04:31,960 Then there is Ginger, too. 45 00:04:37,130 --> 00:04:38,180 This is a complete. 46 00:04:40,010 --> 00:04:49,010 Then this group has also developed a document document processor framework Sphynx, so all these activities 47 00:04:49,010 --> 00:04:50,380 are done by the Spokeo group. 48 00:04:52,480 --> 00:04:53,050 Is. 49 00:04:53,980 --> 00:04:57,790 This framework is based upon these two. 50 00:05:00,710 --> 00:05:01,980 Activities are utilities. 51 00:05:02,330 --> 00:05:03,920 This one is a. 52 00:05:05,700 --> 00:05:13,620 Toolkit for all WGI processes that you would want to do and Ginge to is a template processor. 53 00:05:14,070 --> 00:05:18,410 So these two are the basis of their application framework. 54 00:05:20,560 --> 00:05:21,190 Different. 55 00:05:22,140 --> 00:05:23,730 Framework that I have mentioned. 56 00:05:25,180 --> 00:05:29,300 The different frameworks are classified to be of two types. 57 00:05:29,590 --> 00:05:34,480 One is called as the full spectrum framework. 58 00:05:37,430 --> 00:05:41,420 For example, the general is a full stack framework, different frameworks. 59 00:05:42,420 --> 00:05:49,140 Are called the full stack, but if those frameworks contain all the utilities that are required, the 60 00:05:49,320 --> 00:05:55,500 required for the complete Web application development, on the other hand, something like Flossie's 61 00:05:55,500 --> 00:05:57,630 called it micro framework. 62 00:05:58,510 --> 00:06:00,280 It's called the micro framework. 63 00:06:00,990 --> 00:06:04,860 What is the difference between a full stack of a framework and a micro framework? 64 00:06:05,490 --> 00:06:09,300 Micro framework is supposed to be a minimalistic approach. 65 00:06:10,900 --> 00:06:18,290 He doesn't he doesn't have all the requirements that are required for the application development, 66 00:06:18,300 --> 00:06:20,920 that all of them are not present in a micro framework. 67 00:06:21,250 --> 00:06:26,170 So it is a minimal application, minimal framework that is provided and. 68 00:06:27,480 --> 00:06:32,160 It depends upon the external extensions for. 69 00:06:33,250 --> 00:06:38,470 Performing different kinds of activities, for example, the flash doesn't have an abstraction layer 70 00:06:38,470 --> 00:06:42,370 for database connectivity, doesn't have the autism processor. 71 00:06:43,920 --> 00:06:47,040 It also doesn't have a form, validation, support. 72 00:06:47,980 --> 00:06:51,190 So in order to perform these activities flask. 73 00:06:52,690 --> 00:06:59,620 Framework can be extended by adding or by importing the different extensions that are developed specifically 74 00:06:59,620 --> 00:07:06,550 for a flask like, for example, for obstruction liver, for further obstruction, then. 75 00:07:08,220 --> 00:07:12,740 Frame flat framework can take use of a flask, 76 00:07:15,870 --> 00:07:17,730 yes, dual alchemy 77 00:07:20,760 --> 00:07:26,760 and for the form validation it get take use of WP forms. 78 00:07:29,040 --> 00:07:36,460 So such Suchart Extensible Network for the framework is called a micro framework on the other end. 79 00:07:36,480 --> 00:07:43,020 There are some others which are full fledged, having everything, the templates, the abstractions, 80 00:07:43,020 --> 00:07:46,620 etc. are in built into the frameworks like Django. 81 00:07:47,040 --> 00:07:49,710 But the flask is called the micro framework. 82 00:07:53,710 --> 00:08:01,320 Coming to the one of the basis of the Flast framework, the work Zielke, now this is a German term, 83 00:08:01,840 --> 00:08:05,700 so I hope that I am getting the pronunciation right. 84 00:08:06,400 --> 00:08:07,260 This one. 85 00:08:07,590 --> 00:08:10,150 What Keyzer WGI toolkit. 86 00:08:10,720 --> 00:08:19,690 We saw that the WGI is a set of standards for the python. 87 00:08:20,740 --> 00:08:28,230 You know, we observe all the activities that are needed to be performed for WGI compliance framework, 88 00:08:28,360 --> 00:08:31,630 all these tools are provided in the what? 89 00:08:31,630 --> 00:08:33,110 The toolkit. 90 00:08:34,480 --> 00:08:40,780 Now, this enables the building of a framework on the top of it, on the top of the world to keep the 91 00:08:40,780 --> 00:08:42,190 web framework is built. 92 00:08:42,670 --> 00:08:43,890 Flask is built upon it. 93 00:08:45,680 --> 00:08:49,110 One of the pieces is what do what does it contain? 94 00:08:50,150 --> 00:08:52,430 What does the work toolkit contain? 95 00:08:52,430 --> 00:08:53,450 It contains the. 96 00:08:55,240 --> 00:08:57,520 There's DTP header passing and dumping. 97 00:08:59,060 --> 00:09:07,520 There are response and request objects that are embedded into it, as I didn't expect any to the hundred 98 00:09:07,520 --> 00:09:10,180 percent WGI compatible tool kit. 99 00:09:11,160 --> 00:09:18,960 This is available on Wighton two one six two point seven and three point three versions of Python on 100 00:09:18,960 --> 00:09:21,480 these versus the this toolkit is available. 101 00:09:21,960 --> 00:09:30,610 It also has a inbuilt Unicode support and more importantly, it also supports the session and cookies. 102 00:09:31,350 --> 00:09:37,020 So this is all the characteristic features of this work group toolkit. 103 00:09:38,310 --> 00:09:44,670 And second base of our Flast framework is called the Ginge to Templating Engin. 104 00:09:46,250 --> 00:09:54,290 Now, at Ginge two is the templating system, what is a victim democratic system, it compact, it combines 105 00:09:54,290 --> 00:10:00,290 the framework or the skeleton, which is the template with the different data sources. 106 00:10:01,550 --> 00:10:08,750 DataSource, there is one datasource, one, there is one template, and taking different debtors' items 107 00:10:08,900 --> 00:10:13,520 and integrating with the template creates a different dynamic webpages. 108 00:10:13,520 --> 00:10:17,050 That is the activity done by a web templating system. 109 00:10:17,780 --> 00:10:18,230 So. 110 00:10:19,540 --> 00:10:27,550 This is also a second base for the flask framework on the top of the frame, what is built. 111 00:10:28,060 --> 00:10:32,780 So these are these are the two main basis of the framework. 112 00:10:33,280 --> 00:10:39,700 This is just an overview of how the framework is arranged, what is what is the framework and what are 113 00:10:39,700 --> 00:10:44,590 the different requirements that are required to build a micro framework like flask. 114 00:10:44,890 --> 00:10:50,740 So in the next video, we shall see what are the environment of the flask is set on.