Python Projects

Python projects showcasing machine learning, web APIs, and simple games.

FastAPI Ecommerce REST API
source code

FastAPI Ecommerce REST API

REST API for ecommerce built with FastAPI. User registration and JWT-based authentication, full CRUD for products and categories, role-based access (superadmin, admin, company, user). PostgreSQL with SQLAlchemy, security middleware: input sanitization (XSS), rate limiting (100 req/min per IP), request size limits (5MB), security headers. OpenAPI docs at /docs and /redoc.

#FastAPI

#PostgreSQL

#SQLAlchemy

#JWT

Customer purchase prediction - LLM written on Python
source code

Customer purchase prediction - LLM written on Python

Builds, trains, and evaluates a neural network using TensorFlow for binary classification. Data preprocessing with Pandas, model with ReLU and sigmoid, Adam optimizer. Trained over 50 epochs.

#TensorFlow

#Pandas

#Scikit-learn

Weather App
source code

Weather App

Web application that fetches and displays current weather for a city. Flask framework, OpenWeatherMap API, deployed with Waitress WSGI server.

#Flask

#OpenWeatherMap

#Waitress

Madlibs Simple Game
source code

Madlibs Simple Game

Text-based game where users enter words (nouns, adjectives, verbs) inserted into story templates. Random story selection each run.

#Python

#Random

Guess The Number Simple Game
source code

Guess The Number Simple Game

Two number guessing games: user guesses computer's number or computer guesses user's number. Python random module, standard I/O.

#Python

#Random

Rock Paper Scissors Simple Game
source code

Rock Paper Scissors Simple Game

Classic game against the computer. Enter your name, track games played, wins. Run with python script.py --name YourName.

#Python

Hangman Simple Game
source code

Hangman Simple Game

Word-guessing game. Player guesses letters, 7 lives, dictionary of hangman images for visual feedback. Valid word selection from list.

#Python

Tic Tac Toe Simple Game
source code

Tic Tac Toe Simple Game

Human vs computer player with random moves. TicTacToe class, play function. Board with numbers, square selection.

#Python