English
Assignment
CLASS 12
-By
C.Haryshwa
Python and
its part in
web
devolpment
PYTHON
Python is an interpreted, object-oriented, high-
level programming language with dynamic semantics. Its high-
level built in data structures, combined with dynamic typing and
dynamic binding, make it very attractive for Rapid Application
Development, as well as for use as a scripting or glue language
to connect existing components together.
Python's simple, easy to learn syntax emphasizes
readability and therefore reduces the cost of program
maintenance. Python supports modules and packages, which
encourages program modularity and code reuse. The Python
interpreter and the extensive standard library are available in
source or binary form without charge for all major platforms,
and can be freely distributed.
Often, programmers fall in love with Python
because of the increased productivity it provides. Since there is
no compilation step, the edit-test-debug cycle is incredibly fast.
Debugging Python programs is easy: a bug or bad input will
never cause a segmentation fault. Instead, when the interpreter
discovers an error, it raises an exception. When the program
doesn't catch the exception, the interpreter prints a stack trace.
The debugger is written in Python itself, testifying to
Python's introspective power. On the other hand, often the
quickest way to debug a program is to add a few print
statements to the source: the fast edit-test-debug cycle makes
this simple approach very effective.
What is web development?
Web development describes the activities involved
in designing, constructing, and maintaining web sites and
web apps. Moreover, it might also involve database
management, web development, and web design for the
same. Creating the features and functionality of apps and
web development is closely related (web design). Building
these things is generally referred to as development (that is
to say, the programming of sites).
Why choose python for web development?
Have you been surfing the web for “can Python
be used for web development”? If so, then you need to
know that by integrating Python into the web development
process, you can build a web application from scratch and
make the most out of the advantages you will get from it.
Now we will unleash the reasons why you should opt for
Python.
1.Multi-purpose programming language:
As a multi-purpose programming language, it
has multi functionalities capable of operating in several
possible ways. A developer that uses Python can do magic,
as they can quickly develop software by opting for simple
and easy methods. In addition, Python is a free and open-
source interpreted language. Platform independence is a
framework feature allowing its code to execute on any
platform without requiring additional modifications. Other
than just this, Python can be used for the following:
For Web Applications – Not to overlook that Python is
acing in the web development niche. Additionally, it
provides a variety of working frameworks. A few
popular web development tools like to name are
Django, Flask, etc.
Desktop Applications – As a business, you can use
Python to create captivating desktop applications. Some
of the globally used tools are, Kivy, Tkinter, etc.
Cybersecurity - Developers regularly use highly secure
tools for malware analysis to thwart cyberattacks; tools like
NumPy, Pandas, etc., are considered the best options.
2.Security:
One of the most important reasons why you should
opt for Python for your web development is the aspect of
security that it offers. The language is considered secure,
as it has protected the vulnerabilities from its core aspects.
Hence, using Python for programming ensures that your
web application or software will be bug-free.
3.Its easy to use learn:
Python is a straightforward language that is simple
to learn, write, and comprehend. Even a person with no
prior knowledge of programming languages can operate it,
and that too effectively. Python offers simplicity and
effectiveness to work with, which also saves time. Learning
Python will help you to grow as a developer.
4.Data analysis:
One of the essential aspects of Python is it can
be used for data analysis and complex data modelling, as it
offers several libraries to facilitate the process. It is one of
the ideal tools, especially for beginning programmers, as it
helps with data analysis with ease.
5.Portable applications :
Being an open-source platform, it allows you
to create applications that run on any platform and offer
cross-platform compatibility. Hence, you will save money
and time by opting for the programming language for your
business automation needs.
Popular python web frameworks:
The universal language fits all significant areas,
such as building a web app, DevOps methodology, and
data structure. Python is one of the top choices for data
scientists and researchers looking forward to new
technologies such as Machine Learning, Big Data, Artificial
Intelligence, and Data Mining.
Python is used by businesses like Netflix,
Instagram, and Dropbox because their high-traffic websites
handle millions of user requests daily, and Python enables
them to maintain their top-notch performance. Now we will
walk you through the top Python web frameworks, but
before that, here's an insight into Python frameworks .
Specifically, they are a collection of modules or
packages that help developers write a web application in
Python. Let's now examine the best Python frameworks you
should think about
1. Django:
Django is one of the most used frameworks to create
a website with Python. It follows the MVC architecture, the
MVC framework, for the same reason. The fact that Django
is a full-stack best Python framework for web development
that is open-source and free to use is one of the main
factors contributing to its success.
Features offered by the Django framework:
A versatile and attractive ORM.
Ability to automatically run and apply migrations.
Excellent support for geographical queries and
geographic data using GeoDjango principles.
2. Flask:
Developed in Python, Flask is a web framework. The
MVC architecture is supported. One can use Flask as a
micro framework supporting only one developer, or it can
expand to promote large-scale ambitious applications and
websites. Flask application development is easy and
minimal, and it comes with batteries that speed up
development time.
Features offered by the Flask framework:
Several lightweight and flexible APIs.
Good support for multi-threading, real-time streaming,
and caching.
Flexible web application section.
4. CherryPy:
The object-oriented approach and decorators used
by CherryPy, an object-oriented Python web dev
framework, help the development process. It has a
developer-friendly API, an architectural structure, and
sound testing facilities. The lightweight Python web
framework works well with WSGI servers like Apache and
Features offered by the CherryPy framework:
Developer-friendly syntax.
Application-oriented design.
Ready to use documentation and documentation
system.
5. Bottle:
The Bottle is an open-source, lightweight Python
web framework and an alternative to Django. Its main
advantage is that it is a fast framework, making it faster
than other Python frameworks while providing all the
necessary features to improve a web framework.
Features offered by Bottle framework:
Plugin support for different databases.
No external dependencies.
Fast and easy integration of external libraries and
frameworks.