<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Module-1 on Ghafoor's Personal Blog</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/</link><description>Recent content in Module-1 on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>noreply@example.com (AG Sayyed)</managingEditor><webMaster>noreply@example.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><atom:link href="http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/index.xml" rel="self" type="application/rss+xml"/><item><title>Web Application</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/002-web-application/</link><pubDate>Fri, 25 Jul 2025 15:25:41 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/002-web-application/</guid><description>&lt;p class="lead text-primary"&gt;
This document details the seven phases of the application development lifecycle, including requirements gathering, analysis, design, coding, testing, production, and maintenance. It also explains the importance of organizing code into multiple files for efficient development and maintenance.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="application-development-lifecycle"&gt;Application Development Lifecycle&lt;/h2&gt;
&lt;p&gt;The application development lifecycle is a structured process that guides the creation of software from initial concept to ongoing maintenance. Each phase ensures the application meets user, business, and technical needs while remaining reliable and maintainable.&lt;/p&gt;</description></item><item><title>Introduction to using flask</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/001-introduction/</link><pubDate>Fri, 25 Jul 2025 14:49:59 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/001-introduction/</guid><description>&lt;p class="lead text-primary"&gt;
Python with Flask is a lightweight, flexible web application framework known for its simplicity and minimalism. This document explores Flask's core features, its extensibility, and how it can be leveraged for both small and large-scale web development projects.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-python-with-flask"&gt;Introduction to Python with Flask&lt;/h2&gt;
&lt;p&gt;Flask is a micro-framework for Python that enables rapid development of web applications. Its minimalistic design allows developers to build applications quickly without unnecessary complexity, while still providing the flexibility to scale up for more complex needs.&lt;/p&gt;</description></item><item><title>Packaging</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/006-packaging/</link><pubDate>Fri, 25 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/006-packaging/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores the differences between Python modules, packages, and libraries, and provides practical steps for creating, verifying, and using Python packages to organize and reuse code efficiently.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-modules-packages-and-libraries"&gt;Introduction to Modules, Packages, and Libraries&lt;/h2&gt;
&lt;p&gt;Modules, packages, and libraries are essential concepts in Python for organizing and reusing code. Understanding their differences helps in structuring projects effectively.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="python-modules"&gt;Python Modules&lt;/h2&gt;
&lt;p&gt;A Python module is a &lt;code&gt;.py&lt;/code&gt; file containing definitions, statements, functions, or classes. Modules can be imported into other scripts or notebooks to reuse code.&lt;/p&gt;</description></item><item><title>Style Guide</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/004-style-guide/</link><pubDate>Fri, 25 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/004-style-guide/</guid><description>&lt;p class="lead text-primary"&gt;
This document explains the importance of Python coding standards, focusing on PEP-8 guidelines, naming conventions, and static code analysis. Readers will learn how to write readable, consistent, and maintainable code for collaborative development.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-python-style-guide"&gt;Introduction to Python Style Guide&lt;/h2&gt;
&lt;p&gt;Readable code is essential for team collaboration and long-term maintainability. Python Enhancement Proposal 8 (PEP-8) provides conventions to ensure code is consistently formatted and easy to understand.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="key-pep-8-guidelines-for-readability"&gt;Key PEP-8 Guidelines for Readability&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Use spaces instead of tabs for indentation. Editors may interpret tabs differently, causing formatting errors. Always use four spaces per indentation level for uniformity.&lt;/li&gt;
&lt;li&gt;Separate functions and classes with blank lines to clearly mark code sections.&lt;/li&gt;
&lt;li&gt;Use spaces around operators and after commas to improve clarity.&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Guideline&lt;/th&gt;
 &lt;th&gt;Example (Incorrect)&lt;/th&gt;
 &lt;th&gt;Example (Correct)&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Indentation&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;\tif x==1:&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;if x == 1:&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Blank lines&lt;/td&gt;
 &lt;td&gt;No space between functions&lt;/td&gt;
 &lt;td&gt;Blank line between functions&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Spaces around operators&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;a=b+c&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;a = b + c&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h2 id="coding-conventions-for-consistency"&gt;Coding Conventions for Consistency&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Place larger code blocks inside functions for reusability and clarity.&lt;/li&gt;
&lt;li&gt;Name functions and files using lowercase with underscores (e.g., &lt;code&gt;calculate_sum&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Name classes using CamelCase (e.g., &lt;code&gt;UserProfile&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Name constants in all uppercase with underscores (e.g., &lt;code&gt;MAX_FILE_SIZE&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Element&lt;/th&gt;
 &lt;th&gt;Convention Example&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Function&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;def calculate_sum(a, b):&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;File&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;data_loader.py&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Class&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;class UserProfile:&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Constant&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;MAX_FILE_SIZE = 100&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;

&lt;blockquote class="alert alert-info" role="alert"&gt;
 &lt;p class="alert-heading fw-bold"&gt;
 &lt;svg aria-hidden="true" class="bi bi-info-circle hi-svg-inline me-1 me-lg-2" fill="currentColor" height="1em" viewBox="0 0 16 16" width="1em" xmlns="http://www.w3.org/2000/svg"&gt;
 &lt;path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/&gt;
 &lt;path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/&gt;
&lt;/svg&gt;Note
 &lt;/p&gt;</description></item><item><title>Unit Testing</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/005-unit-testing/</link><pubDate>Fri, 25 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/005-unit-testing/</guid><description>&lt;p class="lead text-primary"&gt;
This document explains the fundamentals of unit testing in Python, including the test process, naming conventions, test structure, and how to interpret results. Readers will learn to build, execute, and review unit tests for robust code quality.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-unit-testing"&gt;Introduction to Unit Testing&lt;/h2&gt;
&lt;p&gt;Unit testing validates that individual units of code operate as intended. A unit is a small, testable part of an application, such as a function or method.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="the-unit-test-process"&gt;The Unit Test Process&lt;/h2&gt;
&lt;p&gt;The unit test process involves two main phases:&lt;/p&gt;</description></item><item><title>Web Api</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/003-web-api/</link><pubDate>Fri, 25 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/08-ai-apps-python-flask/01-module/003-web-api/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores the structure and function of web applications and APIs, clarifying their differences, architectures, and how they enable seamless communication between software systems. Readers will learn about web app components, API roles, and real-world examples of their integration.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-web-applications-and-apis"&gt;Introduction to Web Applications and APIs&lt;/h2&gt;
&lt;p&gt;A web application (web app) is a program stored on a remote server and delivered over the internet. Users interact with web apps through browsers, accessing services like e-commerce, webmail, and more. Most web apps are compatible with all modern browsers, regardless of platform.&lt;/p&gt;</description></item></channel></rss>