PYTHON
LIBRARIES AND
FRAMEWORKS
Instructor: DEXTER G. DANDAN,
MSIT
PYTHON LIBRARIES AND
FRAMEWORKS
Python's versatility and simplicity make it one of the most
popular programming languages, and its power is greatly
enhanced by its extensive collection of libraries and
frameworks. Libraries are reusable pieces of code that
provide pre-written functionality for specific tasks, such as
data manipulation, file handling, or machine learning.
Frameworks, on the other hand, are larger collections of
tools and conventions that offer a structured foundation for
developing applications, such as web development or
automation.
https://www.deepseadev.com/en/blog/uses-of-python/
WEB
DEVELOPMENT
01 PYTHON LIBRARIES AND
FRAMEWORKS
WEB DEVELOPMENT
Python is a go-to language for web development
due to its simplicity and versatility. Its libraries
and frameworks, such as Django and Flask,
provide developers with tools to build strong,
scalable, and efficient web applications. These
resources streamline tasks like handling HTTP
requests, managing databases, and creating
dynamic content, making Python a powerful
choice for modern web development.
https://www.hostinger.ph/tutorials/what-can-you-do-with-python
DJANGO
Django is a high-level Python web
framework that encourages rapid
development and clean, pragmatic design.
Built by experienced developers, it takes
care of much of the hassle of web
development, so you can focus on writing
your app without needing to reinvent the
wheel. It’s free and open source.
https://www.hostinger.ph/tutorials/what-can-you-do-with-python
DJANGO
https://www.djangop
roject.com
DJANGO
INSTALLATION
Install Python
Ensure Python
Install Django
(version 3.6 or later) is Create a Virtual Verify Installation
Install Django using
installed on your Environment python -m django --
pip
system. You can python -m venv env version
pip install django
download it from
python.org.
DJANGO
INSTALLATION
Step 2: Set Up Django Project
2.1.Open a terminal and create a directory for your project
2.3.Create a Django project
2.4.Create a Django app
Set Up a URL for the App:
In myproject/urls.py, include the hello app’s URLs:
DJANGO
INSTALLATION
Step 3: Configure the App
3.1.Register the App:Open myproject/settings.py and add 'hello', to
the INSTALLED_APPS list:
3.2.Set Up a URL for the App:In myproject/urls.py,
include the hello app’s URLs:
Inside the ahello
Set Up app directory, create a file called urls.py:
URL for the App:
Create the App's URL File:
In myproject/urls.py, include the hello app’s URLs:
Inside the hello app directory, create a file called urls.py:
DJANGO
INSTALLATION
Step 3: Configure the App
3.3. Inside the hello app directory, create a file called urls.py:
Step 4: Create the View
4.1.Open hello/views.py and add the following
DJANGO
INSTALLATION
Step 5: Run the Development Server
Open your browser and go to http://127.0.0.1:8000.
-To improve the design, create an HTML template
-In hello directory, create a folder templates/hello.
-look for a design HTML template
-Update the view in hello/views.py
DJANGO
INSTALLATION
Step 1: Ensures your environment is set up to use Django.
Step 2: Sets up the project and app structure.
Step 3: Connects the app to the main project and defines URL
routing.
Step 4: Adds logic for handling requests and sending
responses.
Step 5: Runs the app locally to preview it in a browser.
Step 6: Adds templates and CSS for better design.
FLASK
Flask is a micro web framework
written in Python. It is classified as a
microframework because it does not
require particular tools or libraries. It
has no database abstraction layer,
form validation, or any other
components where pre-existing
third-party libraries provide common
functions.
https://www.geeksforgeeks.org/flask-variable-rule/
FLASK
https://flask.palletsp
rojects.com
https://www.geeksforgeeks.org/flask-variable-rule/
FLASK
INSTALLATION
Install Python
Ensure Python Create a Virtual
Install Flask
(version 3.6 or later) is Environment
Install flask using Verify Installation
installed on your python -m venv env
pip pip show flask
system. You can source
pip install flask
download it from env/bin/activate
python.org.
FLASK
INSTALLATION
Create a Simple Flask App
-In your project folder, create a new Python file, e.g.,
app.py
This initializes a Flask application instance.
Routes define the URLs your app responds
to. Here, / is the root URL (homepage).
This starts the Flask development server.
PYRAMID
Pyramid makes it easy to write web
applications. You can start small with
this "hello world" minimal
request/response web app. This may
take you far, especially while
learning. As your application grows,
Pyramid offers many features that
make writing complex software take
less effort.
https://trypyramid.com/
PYRAMID
https://www.trypyra
mid.com
https://trypyramid.com/
PYRAMID
INSTALLATION
Install Python
Install Pyramid
Ensure Python Create a Virtual
Install pyramid
(version 3.6 or later) is Environment
using pip Verify Installation
installed on your python -m venv env
pip install pip show pyramid
system. You can source
"pyramid==2.0"
download it from env/bin/activate
cookiecutter
python.org.
https://trypyramid.com/
BOTTLE
Bottle is a fast, simple and
lightweight WSGI micro web-
framework for Python. It is
distributed as a single file
module and has no
dependencies other than the
Python Standard Library.
https://bottlepy.org/docs/dev/
BOTTLE
https://
www.bottlepy.org
https://bottlepy.org/docs/dev/
BOTTLE
INSTALLATION
Install Python
Ensure Python Create a Virtual
Install Bottle
(version 3.6 or later) is Environment
Install Bottle using Verify Installation
installed on your python -m venv env
pip install pip show bottle
system. You can source
pip install bottle
download it from env/bin/activate
python.org.
https://bottlepy.org/docs/dev/
WEB2PY
Web2py is an open-source
web application framework
written in the Python
programming language.
Web2py allows web
developers to program
dynamic web content using
Python.
https://nestria.org/en-de/pages/framework-web2py?
srsltid=AfmBOoqDmqba7X2ELFVmGPSym11CIgGCqXchqjg_0X28jw1ID9_ujXmS
WEB2PY
https://web2py.com
TORNADO
Tornado is a scalable, non-blocking
web server and web application
framework written in Python. It was
developed for use by FriendFeed; the
company was acquired by Facebook
in 2009 and Tornado was open-
sourced soon after.
https://developers.facebook.com/blog/post/301/
TORNADO
https://tornadoweb.
org
https://developers.facebook.com/blog/post/301/
CHERRYPY
CherryPy is an object-oriented web
application framework using the
Python programming language. It is
designed for rapid development of
web applications by wrapping the
HTTP protocol but stays at a low
level and does not offer much more
than what is defined in RFC 7231.
https://www.geeksforgeeks.org/introduction-to-cherrypy/
CHERRYPY
https://cherrypie.dev
https://www.geeksforgeeks.org/introduction-to-cherrypy/
MACHINE
LEARNING
02 PYTHON LIBRARIES AND
FRAMEWORKS
MACHINE LEARNING
Python has become the backbone of machine
learning (ML) development due to its simplicity
and a vast ecosystem of libraries and
frameworks. These tools empower developers
to build, train, and deploy ML models
efficiently. Libraries like NumPy, pandas, and
Matplotlib handle data manipulation and
visualization, while specialized tools like scikit-
learn simplify building traditional ML models.
Frameworks such as TensorFlow and PyTorch
offer powerful capabilities for deep learning,
making Python an essential choice for
researchers and practitioners in the field of
artificial intelligence.
https://skillfloor.medium.com/pythons-role-in-machine-learning-and-ai-development-
MACHINE LEARNING
Here some projects can be develop
in frameworks
● Predictive Analytics
● Natural Language Processing
(NLP) Applications
● Image Recognition and Computer
Vision
● Fraud Detection Systems
● Generative AI
https://www.geeksforgeeks.org/introduction-to-cherrypy/
NUMPY
NumPy is a library for the Python
programming language, adding
support for large, multi-dimensional
arrays and matrices, along with a
large collection of high-level
mathematical functions to operate on
these arrays.
https://saturncloud.io/blog/applying-a-function-along-a-numpy-array-a-
comprehensive-guide-for-data-scientists/
NUMPY
https://numpy.org
https://saturncloud.io/blog/applying-a-function-along-a-numpy-array-a-
comprehensive-guide-for-data-scientists/
KERAS
Keras is an open-source library
that provides a Python
interface for artificial neural
networks. Keras was first
independent software, then
integrated into the TensorFlow
library, and later supporting
more.
https://www.geeksforgeeks.org/what-is-keras/
KERAS
https://keras.io
https://www.geeksforgeeks.org/what-is-keras/
THEANO
Theano is a Python library that
allows us to evaluate mathematical
operations including multi-
dimensional arrays efficiently. It is
mostly used in building Deep
Learning Projects. Theano works way
faster on the Graphics Processing
Unit (GPU) rather than on the CPU.
https://www.geeksforgeeks.org/theano-in-python/
THEANO
https://pypi.org/proje
ct/Theano/
https://www.geeksforgeeks.org/theano-in-python/
PANDAS
Pandas is a software library written
for the Python programming
language for data manipulation and
analysis. In particular, it offers data
structures and operations for
manipulating numerical tables and
time series. It is free software
released under the three-clause BSD
license.
https://pandas.pydata.org/
PANDAS
https://pandas.pydat
a.org/
https://pandas.pydata.org/
PYTORCH
PyTorch is a machine learning
library based on the Torch
library, used for applications
such as computer vision and
natural language processing,
originally developed by Meta
AI and now part of the Linux
Foundation umbrella.
https://www.techtarget.com/searchenterpriseai/resources/Careers-in-artificial-
intelligence
PYTORCH
https://pytorch.org/
https://www.techtarget.com/searchenterpriseai/resources/Careers-in-artificial-
intelligence
TENSORFLOW
TensorFlow is a software
library for machine learning and
artificial intelligence. It can be
used across a range of tasks,
but is used mainly for training
and inference of neural
networks. It is one of the most
popular deep learning
frameworks, alongside others
such as PyTorch.
https://www.tensorflow.org/
TENSORFLOW
https://
www.tensorflow.org/
https://www.tensorflow.org/
SCI-KIT LEARN
Scikit-learn is a powerful and user-
friendly Python library for machine
learning. Built on top of NumPy,
pandas, and Matplotlib, it provides
tools for a wide range of machine
learning tasks, including: Supervised
learning (e.g., classification,
regression).Unsupervised learning
(e.g., clustering, dimensionality
reduction).Model evaluation and
selection (e.g., cross-validation,
metrics).
SCI-KIT LEARN
https://scikit-
learn.org/stable/
MATPLOTLIB
Matplotlib is a comprehensive library for creating
static, animated, and interactive visualizations in
Python. Matplotlib makes easy things easy and hard
things possible.
● Create publication quality plots.
● Make interactive figures that can zoom, pan,
update.
● Customize visual style and layout.
● Export to many file formats.
● Embed in JupyterLab and Graphical User
Interfaces.
● Use a rich array of third-party packages built on
Matplotlib.
https://matplotlib.org/
MATPLOTLIB
https://
matplotlib.org/
stable/
https://matplotlib.org/
SCIPY
SciPy is a free and open-source
Python library used for scientific
computing and technical computing.
SciPy contains modules for
optimization, linear algebra,
integration, interpolation, special
functions, FFT, signal and image
processing, ODE solvers and other
tasks common in science and
engineering.
https://scipy.org/
SCIPY
https://scipy.org/
https://scipy.org/
SEABORN
Seaborn is a library for making statistical graphics
in Python. It builds on top of matplotlib and
integrates closely with pandas data structures.
Seaborn helps you explore and understand your
data. Its plotting functions operate on dataframes
and arrays containing whole datasets and
internally perform the necessary semantic
mapping and statistical aggregation to produce
informative plots. Its dataset-oriented, declarative
API lets you focus on what the different elements
of your plots mean, rather than on the details of
how to draw them.
SEABORN
https://
seaborn.pydata.org/
installing.html
AUTOMATION
TESTING
03 PYTHON LIBRARIES AND
FRAMEWORKS
AUTOMATION
TESTING
Python is a popular choice for automation testing
due to its simplicity and powerful libraries.
Automation testing tools that allows developers to
simulate user interactions with web applications,
while frameworks like pytest streamline test
creation and execution. For behavior-driven testing,
Behave offers an intuitive approach. These tools
help automate repetitive tasks, ensure software
quality, and reduce testing time, making Python a
go-to language for reliable and efficient automation
testing.
https://bhavikjikadara.medium.com/python-test-automation-frameworks-and-tools-
46c6353335d9
SPLINTER
splinter is an open source tool
for testing web applications
using Python. It automates
browser actions, such as
visiting URLs and interacting
with their items.
https://bhavikjikadara.medium.com/python-test-automation-frameworks-and-tools-
46c6353335d9
SPLINTER
https://
splinter.readthedocs.
io/en/stable/
https://bhavikjikadara.medium.com/python-test-automation-frameworks-and-tools-
46c6353335d9
ROBOT
Robot Framework is a generic
software test automation
framework for acceptance
testing and acceptance test-
driven development. It is a
keyword-driven testing
framework that uses tabular
test data syntax.
https://bhavikjikadara.medium.com/python-test-automation-frameworks-and-tools-
46c6353335d9
ROBOT
https://
robotframework.org/
BEHAVE
behave is behavior-driven
development, Python style.
Behavior-driven development
(or BDD) is an agile software
development technique that
encourages collaboration
between developers, QA and
non-technical or business
participants in a software
project.
BEHAVE
https://
behave.readthedocs.
io/en/latest/install/
https://bhavikjikadara.medium.com/python-test-automation-frameworks-and-tools-
46c6353335d9
GAME
DEVELOPMENT
04 PYTHON LIBRARIES AND
FRAMEWORKS
GAME DEVELOPMENT
Game development in Python involves
creating interactive applications, primarily
using libraries such as Pygame, which provide
tools for handling graphics, sound, and input.
Python’s simplicity and ease of use make it a
great language for prototyping and developing
2D games, while frameworks like Pyglet or Kivy
can support more complex or cross-platform
development. It’s often used for educational
games, indie projects, and game simulations.
https://www.geeksforgeeks.org/python-game-development-libraries/
Pygame
Pygame is a popular open-
source library for creating
video games and multimedia
applications in Python. It
provides modules for handling
graphics, sound, and input
devices, making it an
accessible tool for developers
to build 2D games and
interactive applications.
PYGAME
https://www.pygame
.org/docs/
https://www.geeksforgeeks.org/python-game-development-libraries/
PyGlet
Pyglet is an open-source Python
library for developing games and
multimedia applications, offering
powerful tools for 2D and 3D
graphics, sound, and user input. It
provides a simple and flexible API for
creating interactive applications
without the need for external
dependencies, making it a
lightweight alternative to other
libraries.
https://www.geeksforgeeks.org/python-game-development-libraries/
PYGLET
https://pyglet.org/
https://www.geeksforgeeks.org/python-game-development-libraries/
PyopenGL
PyOpenGL is a Python binding for
the OpenGL graphics library, which
allows developers to create 3D
games and applications with
advanced graphics capabilities.
Unlike other game libraries like
Pygame or Pyglet, PyOpenGL
focuses on providing access to the
full power of OpenGL, enabling fine-
grained control over rendering and
3D graphics.
https://www.geeksforgeeks.org/python-game-development-libraries/
PYOPENGL
https://pypi.org/proje
ct/PyOpenGL/
https://www.geeksforgeeks.org/python-game-development-libraries/
Arcade
Arcade is a Python library designed
for creating 2D games with ease,
offering simple functions for
handling graphics, sound, physics,
and input. Arcade is built with
modern Python practices and makes
use of more efficient hardware-
accelerated graphics through
OpenGL.
https://www.geeksforgeeks.org/python-game-development-libraries/
ARCADE
https://api.arcade.ac
ademy/en/latest/
https://www.geeksforgeeks.org/python-game-development-libraries/
PANDA3D
Panda3D is a powerful game engine
and framework for creating 3D
games and interactive applications
in Python and C++. It provides a
comprehensive set of tools for 3D
rendering, physics, audio, and
animation, making it suitable for
developing complex 3D games.
https://www.geeksforgeeks.org/python-game-development-libraries/
PANDA3D
https://docs.panda3d
.org/1.10/python/ind
ex
IMAGE
PROCCESSING
05 PYTHON LIBRARIES AND
FRAMEWORKS
IMAGE PROCCESSING
Image processing in Python involves
manipulating and analyzing images to
extract useful information or transform
them into a desired format. It is
commonly used in fields such as
computer vision, machine learning, and
digital media. Python provides powerful
libraries like OpenCV, Pillow, and
scikit-image, which enable tasks such
as image enhancement, filtering, edge
detection, and feature extraction.
https://www.geeksforgeeks.org/image-processing-in-python/
OpenCV
OpenCV (Open Source Computer
Vision Library) is a popular open-
source library used for real-time
computer vision and image
processing. It provides tools and
functions for manipulating images
and videos, as well as implementing
complex algorithms for object
detection, facial recognition, motion
tracking, and more.
https://www.geeksforgeeks.org/image-processing-in-python/
OPENCV
https://opencv.org/
https://www.geeksforgeeks.org/image-processing-in-python/
Mahotas
Mahotas is a Python library used for
image processing and computer vision
tasks. It is designed to be fast and
efficient, providing many functions for
tasks such as image filtering, feature
extraction, morphology operations, and
image segmentation. Mahotas is built
on top of NumPy and optimized for
performance, making it suitable for
real-time image processing in Python.
https://www.geeksforgeeks.org/image-processing-in-python/
MAHOTAS
https://luispedro.org/
software/mahotas/
https://www.geeksforgeeks.org/image-processing-in-python/
Pgmagick
PgMagick is a Python wrapper for the
ImageMagick library, which is a
powerful suite of tools for creating,
editing, and converting bitmap images.
ImageMagick itself is written in C, and
PgMagick allows Python users to
access its capabilities for image
manipulation.
https://www.geeksforgeeks.org/image-processing-in-python/
THANK YOU