Python Framework
Python is a
high-level programming language and now it is a hot topic in the market because
of the booming technology called Artificial Intelligence and machine learning,
python is not became limited here it has expanded its area in creating desktop
GUI applications , web applications and also in the field of web development.
So, Now in this topic we
are going to discuss about some of the great techniques which make python
popular in the field of web development. That is called as Framework.
Ok so let's dive into
the topic FRAMEWORK.
Contents: -
What is Framework?
Use/Operations of Frameworks: -
Advantages of Framework: -
Top 5 Framework in python: -
What
is Framework ?
A Framework is a collection of modules or packages
which helps developers to write web applications. While working with framework
we don't need to worry about Sockets, protocols, and threads. it became so easy
because using some package and some codes it will give you complete package /
sort of codes and folders which is required for web development.
It make
our development and deployment so easy with some predefined and existing
modules and packages.
Frameworks automate the common folder structure and codes to make
development easier and developer should give more focus on logic and hard
coding.
Use/Operations
of Frameworks : -
If i am going to tell about the operations its not limited
on the area of web development it has lot of functionalities which helps us to
build a good and secure web application. so here are the list of some important
operations that we should know.
- Url Routing:
- Routing is a mechanism that maps the url and redirect to the web page
from framework. Ok so let's Describe into layman term that for example a
user tries to visit google.com. User have no idea in the backend how it
working but as we are developer we should know that when a user visiting a
site it will hit to a particular code/program which is running in the
backend. and how it will happen. It will happen through routing. That
particular url will be redirected to a backend program using URL routing.
and these frameworks will give simple routing mechanism to work on.
- Input form handling and validation.: - Suppose you have a form in your application
and that takes input and then save it somewhere like in any database or in
file. and then also the task to validate that. so basically it is the
method of get and post. and because of framework it will automatically
handle all those things by itself.
- Output formats with template engine: - As we know web templates has different formats like
HTML, CSS, JS and also other template engine formats like xml,json these
all formats automatically be handled by these python framework.
- Database
Connection: - Frameworks also handle database
connections using some syntax.
- Web
Security: - Frameworks also give secure
forms like get post and data access from server it gives secure from like
CSRF, Sql Injection, cross-site scripting.
- Seesion Storage and retrival: - also it not store any user data in its cache or anywhere else so on that basis also it is secure.
- Open-source: - its free and open source that it can available easily
- Good documentation: - as python community is so big so documentations easily can be available.
- Efficient: - its own state it works really well and efficient.
- Secure: - As we have seen it has those functionalities that make application secure.
- Integration: - Integration also so easy that we can include packages and integrate with multiple applications.
- Re-usability: - we can reuse the codes in different platforms. And also other developers can easily maintain and build the application.
- Using framework instead of library it has flexibility. That it works like a tool so easy to perform operations.
- Django
- Flask
- Web2py
- Bottle
- CherryPy
So
lets discuss about it in my next blog. Till then take care and be safe.
Comments
Post a Comment