1 00:00:00,780 --> 00:00:06,240 Now, Lawrence, in this video, we shall see what the flask extension's. 2 00:00:11,240 --> 00:00:20,090 In the beginning, we mentioned that flask is a micro framework in the sense that it only provides the 3 00:00:20,160 --> 00:00:27,040 minimal sort of state of the utilities to build a flask application. 4 00:00:27,590 --> 00:00:38,440 But many of the other players, like the data abstraction layer, are the form validation facilities. 5 00:00:38,450 --> 00:00:46,930 These kinds of activities or these facilities are not provided in built into the flask application framework. 6 00:00:47,360 --> 00:00:54,140 So in order to provide this this support, this kind of support, like, for example, the Aughrim support 7 00:00:54,410 --> 00:01:00,890 or the form, validation, support, etc., Flast depends upon the external extensions. 8 00:01:01,550 --> 00:01:01,940 So. 9 00:01:03,370 --> 00:01:12,340 The additional functionality that has to be provided with the help of the these extensions, in addition 10 00:01:12,340 --> 00:01:21,280 to the framework different, you know, utilities like providing the support, etc., that is already 11 00:01:22,000 --> 00:01:25,030 present in the in the form of a flask framework. 12 00:01:25,510 --> 00:01:32,050 This is not enough for the development of the full fledged or full stack, as I call it, full stack 13 00:01:32,350 --> 00:01:33,760 framework facilities. 14 00:01:34,000 --> 00:01:40,240 Our features are not available in the micro framework, so therefore the flask extensions must be incorporated 15 00:01:40,240 --> 00:01:42,970 into the flask environment. 16 00:01:43,600 --> 00:01:50,720 The Flask Extension Registry is there, which gives you the list of all the available flask extensions. 17 00:01:51,220 --> 00:01:53,830 This is a directory of extensions that are available. 18 00:01:54,370 --> 00:02:04,290 Required extensions can be downloaded from the depository with the help of the utility utility so on. 19 00:02:04,630 --> 00:02:09,940 On one hand, the flask is a micro framework, but on the other hand it is extensible. 20 00:02:10,570 --> 00:02:18,070 So you can plug and play the different extensions into your working environment and enhance or increase 21 00:02:18,070 --> 00:02:26,290 the capability of your flask installation or in a virtual environment that you have created with the 22 00:02:26,290 --> 00:02:35,350 help of the pluggable extension that can be downloaded from the repository of the extensions with the 23 00:02:35,350 --> 00:02:36,910 help of this BP utility. 24 00:02:42,150 --> 00:02:50,100 Here are a few of these extensions are listed under, you say, utilities being explained. 25 00:02:50,610 --> 00:02:53,840 For example, there is an extension cord that flies in. 26 00:02:55,930 --> 00:03:00,730 This extension allows you to have an S&P interface. 27 00:03:02,240 --> 00:03:10,660 Assembly B is a well-known protocol for handling or managing the e mail services so that Assembly B 28 00:03:10,700 --> 00:03:18,760 interface, if you want to provide to your application, all you have to do is to add the flask mail 29 00:03:18,800 --> 00:03:22,420 extension into your application flask. 30 00:03:22,520 --> 00:03:29,990 WITF, W-2 forms is a very useful form. 31 00:03:29,990 --> 00:03:32,000 Celebrity Web form celebrity. 32 00:03:33,300 --> 00:03:44,550 Flask WTT of either extension or is a module which, you know, incorporates this W.T. forms library 33 00:03:44,610 --> 00:03:46,070 into the flask invertebrate. 34 00:03:46,530 --> 00:03:55,800 So it adds the rendering and validation of their W-2 forms that is called the flask WPA of another very 35 00:03:55,800 --> 00:04:02,490 important extension that is very widely used is called Flask as Tuell Alchemy. 36 00:04:03,960 --> 00:04:11,730 Actually, Eskil Alchemy is a very popular or a Mappa object relationship mapper. 37 00:04:13,720 --> 00:04:21,420 Later on during the course, we will see what is the actual alchemy and what are its features. 38 00:04:22,360 --> 00:04:31,750 But for the time being, it is sufficient to know that Eskil Alchemy is a mappa between the object oriented 39 00:04:32,020 --> 00:04:41,200 Biton program and the database database products like CircuLite or Myersville or anything. 40 00:04:41,470 --> 00:04:46,480 So this is a mapping activity is done by this Ezekial Alchemy. 41 00:04:46,960 --> 00:04:54,550 It maps the database with the classes and objects that are defined in the Python program. 42 00:04:55,030 --> 00:04:59,020 Flask Eskil Alchemy is an extension which. 43 00:05:00,860 --> 00:05:05,720 Brings the Ezekial Alchemy support into the Flask of Lascher application. 44 00:05:07,060 --> 00:05:09,000 Then there is a flask, Digex. 45 00:05:10,480 --> 00:05:19,870 We know that the Ajax's are JQ Library, very lively, is a very popular Clydeside in a programming 46 00:05:19,870 --> 00:05:22,590 tool that is very popular to use nowadays. 47 00:05:23,320 --> 00:05:34,720 So this flask Digex provides you an interface with Jaquie so that the Ajax features can be easily incorporated 48 00:05:34,720 --> 00:05:36,220 into your flask applications. 49 00:05:36,240 --> 00:05:43,330 So such like mini flask extensions are available in the extension registry. 50 00:05:44,200 --> 00:05:47,380 I'm just trying to explain a few of them. 51 00:05:47,530 --> 00:05:51,900 And in fact, we are going to study in more depth the last minute. 52 00:05:51,910 --> 00:06:00,310 The beauty of Eskil Alchemy during the course of our further use since an extension is nothing but a 53 00:06:00,310 --> 00:06:01,130 Python module. 54 00:06:01,780 --> 00:06:02,590 What are you to do? 55 00:06:02,680 --> 00:06:10,780 You have to import that extension or that module into your flask application by scene from whatever 56 00:06:10,780 --> 00:06:14,080 the name of the extension, for example, ramrodding flask full. 57 00:06:15,640 --> 00:06:22,800 So flask from flask who import any module, as you know, is a collection of different classes and functions. 58 00:06:23,140 --> 00:06:29,500 So from this particular module, which class or function or classes or functions you want, you can 59 00:06:29,500 --> 00:06:29,980 import. 60 00:06:30,340 --> 00:06:38,410 So this is a general syntax of importing a desired resource from a python module that is applicable 61 00:06:38,410 --> 00:06:39,420 to the extension also. 62 00:06:40,810 --> 00:06:45,730 But then there are two different in Austin, Texas, that are used for importing. 63 00:06:47,110 --> 00:06:53,250 This particular syntax is currently prevailing in the flask development. 64 00:06:53,260 --> 00:06:55,120 No point one zero onwards. 65 00:06:55,900 --> 00:07:06,790 If you have an installation of Lask, which is between point seven to one ten point one, so you can 66 00:07:06,790 --> 00:07:16,840 have this particular syntax applicable or usable only if you run fluffs in the first place, you run 67 00:07:16,840 --> 00:07:19,600 this flask compared not be white. 68 00:07:20,560 --> 00:07:22,870 So you get hold of this python script. 69 00:07:23,290 --> 00:07:32,740 Execute this, then only you will be able to use this way of importing the module or extension. 70 00:07:32,980 --> 00:07:35,720 Otherwise you'll have to do what we just say. 71 00:07:35,770 --> 00:07:41,620 Import Flast underscore for specific resources of the module. 72 00:07:41,620 --> 00:07:48,910 If you want to incorporate or import using this syntax first, you will have to get hold of this, execute 73 00:07:48,910 --> 00:07:52,870 this and then the import flask compact. 74 00:07:54,930 --> 00:07:59,130 Plus, he actually compared that activity to activities. 75 00:08:00,150 --> 00:08:05,910 Feature first and then only you'll be able to do this if you do not have this, then you can only say 76 00:08:05,910 --> 00:08:07,400 import flasks. 77 00:08:08,520 --> 00:08:17,250 That is the difference in syntax for the last person prior to point one and after point one. 78 00:08:17,250 --> 00:08:18,430 Of course, you can use this. 79 00:08:18,750 --> 00:08:24,120 So this is a slight bit of difference in between these two, the two different ways of. 80 00:08:26,230 --> 00:08:28,960 Importing the flask extension into your program. 81 00:08:29,410 --> 00:08:35,890 So having seen this now, we will try to find out more about the different extensions, specifically 82 00:08:35,890 --> 00:08:38,240 the flask male extension. 83 00:08:38,260 --> 00:08:41,810 We will see first, then followed by this killer alchemy like that. 84 00:08:42,070 --> 00:08:46,990 So this was a sort of a brief overview of the flask extension's.