The Modular Python Utilities Suite (Python-Project) demonstrates modular software architecture, namespace isolation, recursion, and algorithmic utility programming in Python.
Writing maintainable software requires decoupling algorithmic business logic into reusable packages. This repository establishes a modular Python package structure (modulefunctions), verifying clean imports and method dispatch across mathematical functions: recursive factorial calculation, Fibonacci sequence generation, prime and parity validation, and bidirectional palindrome verification.
- Executive Summary / Overview
- Key Features & Capabilities
- System Architecture & Module Workflow
- Tech Stack Breakdown
- Module Function Catalog & Mathematical Logic
- Reproducible Quickstart & Setup
- Project Directory Layout
- Author & Contributions
-
Modular Namespace Decoupling: Eliminates redundant script code by importing self-contained algorithmic routines via
import modulefunctions. -
Recursive Factorial Computation: Mathematical evaluation of
$n! = n \times (n-1)!$ with appropriate base-case boundaries. - Fibonacci Sequence Generator: Generates discrete Fibonacci series progression demonstrating memoization and loop states.
-
Primality & Parity Validator: Tests integer factor divisibility and modular arithmetic parity (
$n \pmod 2$ ). -
Bidirectional Palindrome Verifier: Symmetric two-pointer string verification evaluating mirror equivalence (
"amma"$\to$ True).
flowchart TD
A[Jupyter Notebook Client / Runner] --> B[import modulefunctions]
B --> C{Module Function Registry}
C -->|greet| D1[Personalized Console Formatter]
C -->|factorial| D2[Recursive Factorial Engine: n!]
C -->|fib| D3[Fibonacci Progression Generator]
C -->|num / number| D4[Prime & Parity Validation]
C -->|word| D5[Bidirectional Palindrome Checker]
D1 & D2 & D3 & D4 & D5 --> E[Validated Computational Return Stream]
| Category | Technologies & Tools |
|---|---|
| Language | Python 3.9+ |
| Architectural Pattern | Modular Programming, Reusable Helper Libraries |
| Algorithms | Recursion, Prime Sieve / Trial Division, String Reversal |
| Environment | Jupyter Notebook (Untitled5.ipynb), Interactive REPL |
| Function Name | Input Signature | Logic / Mathematical Formulation | Output Type |
|---|---|---|---|
greet(name) |
str |
String template interpolation | Console Print |
factorial(n) |
int |
|
int |
fib(n) |
int |
|
int / list
|
number(n) |
int |
Parity: |
Boolean / String |
word(text) |
str |
Symmetry verification: |
Boolean |
- Python 3.9+ installed
git clone https://github.com/Jeshwanthika07/Python-Project.git
cd Python-Project
pip install jupyterlab
jupyter lab "Untitled5.ipynb"
Python-Project/
│
├── Untitled5.ipynb # Interactive notebook testing module function imports
└── README.md # Comprehensive modular documentation
Authored by Jeshwanthika Pothamchetty
Alliance University | Department of Computer Applications