From 896ff39945ff54e0269a0d39a94b448e58af16a9 Mon Sep 17 00:00:00 2001 From: Rayyan Asim Date: Thu, 13 Aug 2026 05:54:58 +0500 Subject: [PATCH 01/16] fix: remove deprecated builds key from vercel.json, use auto-detection --- vercel.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vercel.json b/vercel.json index 269b6e9..e29c5ef 100644 --- a/vercel.json +++ b/vercel.json @@ -1,19 +1,13 @@ { "version": 2, - "builds": [ - { - "src": "api/index.py", - "use": "@vercel/python" - } - ], "routes": [ { "src": "/api/(.*)", - "dest": "api/index.py" + "dest": "/api/index.py" }, { "src": "/(.*)", - "dest": "main.html" + "dest": "/main.html" } ] } From fa4273e251c0293ab7a5b021e8193d0dd2e50b83 Mon Sep 17 00:00:00 2001 From: Rayyan Asim Date: Thu, 13 Aug 2026 06:02:55 +0500 Subject: [PATCH 02/16] fix: overwrite api/app.py, add public/index.html, switch vercel.json to rewrites --- api/app.py | 29 ++- public/index.html | 437 ++++++++++++++++++++++++++++++++++++++++++++++ vercel.json | 11 +- 3 files changed, 461 insertions(+), 16 deletions(-) create mode 100644 public/index.html diff --git a/api/app.py b/api/app.py index 689c7ca..8815221 100644 --- a/api/app.py +++ b/api/app.py @@ -1,24 +1,39 @@ from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware +from mangum import Mangum import os -app = FastAPI() +app = FastAPI(title="Python Projects API") +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_methods=["*"], + allow_headers=["*"], +) -@app.get("/") + +@app.get("/api") async def root(): - return {"message": "Python Projects — minimal API", "routes": ["/projects"]} + return {"message": "Python Projects — API", "routes": ["/api/projects"]} -@app.get("/projects") +@app.get("/api/projects") async def projects(): base = os.path.dirname(os.path.dirname(__file__)) items = [] for name in sorted(os.listdir(base)): - if name.startswith('.') or name in ('__pycache__', '.git'): + if name.startswith('.') or name in ( + '__pycache__', '.git', 'api', '.venv', '.venv3', 'public', 'assets' + ): continue path = os.path.join(base, name) if os.path.isdir(path): - items.append(name) + items.append({"name": name, "type": "directory"}) elif os.path.isfile(path) and name.endswith('.py'): - items.append(name) + items.append({"name": name, "type": "file"}) return {"projects": items} + + +# Required for Vercel serverless — wraps ASGI app as Lambda handler +handler = Mangum(app) diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..0e83ec8 --- /dev/null +++ b/public/index.html @@ -0,0 +1,437 @@ + + + + + +80+ Python Projects by M.Rayan Asim + + + + + + +
+
+

Project Categories

+

Structured domains to focus your learning.

+
+
+ +
+
+ +
+

GUI

+

Graphical User Interfaces.

+
Tkinter, PyQt5
+
+ +
+
+ +
+

Calculator

+

Math & Logic tools.

+
Math, Logic
+
+ +
+
+ +
+

Games

+

Interactive entertainment.

+
Pygame, Turtle
+
+ +
+
+ +
+

Machine Learning

+

AI & Data Models.

+
Scikit, Pandas
+
+ +
+
+ +
+

Utilities

+

Handy CLI scripts.

+
OS, Sys, Requests
+
+
+
+ +
+
+
+
+

Featured Projects

+

A handpicked selection of top scripts and applications.

+
+ + View All 80+ + +
+
+ +
+
+
+Games + Beginner +
+

Tic Tac Toe

+

A classic command-line implementation of the beloved game.

+
+ + View code + +
+ +
+
+
+Games + Intermediate +
+

Snake Game

+

Retro snake game built using the Turtle graphics library.

+
+ + View code + +
+ +
+
+
+Calculator + Advanced +
+

Sudoku Solver

+

Backtracking algorithm to automatically solve any valid Sudoku puzzle.

+
+ + View code + +
+ +
+
+
+Utilities + Beginner +
+

QR Code Generator

+

Simple script to generate scannable QR codes from text or URLs.

+
+ + View code + +
+ +
+
+
+Machine Learning + Advanced +
+

Spam Message Detection

+

NLP model using Naive Bayes to classify SMS messages as spam or ham.

+
+ + View code + +
+ +
+
+
+Machine Learning + Advanced +
+

Crypto Price Prediction

+

Time-series forecasting script to predict short-term cryptocurrency trends.

+
+ + View code + +
+
+
+
+ +
+
+

Progressive Learning

+

Projects categorized by complexity to match your current skill level.

+
+
+
+

Beginner

+

Focus on core syntax, loops, functions, and basic I/O. Ideal for those just starting out.

+
+
+

Intermediate

+

Involves APIs, basic GUIs, simple data scraping, and object-oriented concepts.

+
+
+

Advanced

+

Tackles machine learning models, complex algorithms, databases, and full applications.

+
+
+
+ +
+
+

Ready to start building?

+

Join the community, fork the projects, and enhance your Python skills today.

+ +
+

Support the Creator

+ +

ETH: 0x0000000000000000000000000000000000000000

+
+
+
+ + + + + \ No newline at end of file diff --git a/vercel.json b/vercel.json index e29c5ef..2eff5e9 100644 --- a/vercel.json +++ b/vercel.json @@ -1,13 +1,6 @@ { "version": 2, - "routes": [ - { - "src": "/api/(.*)", - "dest": "/api/index.py" - }, - { - "src": "/(.*)", - "dest": "/main.html" - } + "rewrites": [ + { "source": "/api/:path*", "destination": "/api/index.py" } ] } From 5eeec3be64edb53dc8f6a25328167494f3ac4214 Mon Sep 17 00:00:00 2001 From: Rayyan Asim Date: Thu, 13 Aug 2026 06:18:47 +0500 Subject: [PATCH 03/16] redesign: clean rebuild with search/filter, scroll progress, GitHub stats, Inter font --- public/index.html | 1519 ++++++++++++++++++++++++++++++++------------- 1 file changed, 1094 insertions(+), 425 deletions(-) diff --git a/public/index.html b/public/index.html index 0e83ec8..5f29fe7 100644 --- a/public/index.html +++ b/public/index.html @@ -1,437 +1,1106 @@ + + + + + 80+ Python Projects by M.Rayan Asim + + + + + + - - - -80+ Python Projects by M.Rayan Asim - - - - - - -
-
-

Project Categories

-

Structured domains to focus your learning.

-
-
- -
-
- -
-

GUI

-

Graphical User Interfaces.

-
Tkinter, PyQt5
-
- -
-
- -
-

Calculator

-

Math & Logic tools.

-
Math, Logic
-
- -
-
- -
-

Games

-

Interactive entertainment.

-
Pygame, Turtle
-
- -
-
- -
-

Machine Learning

-

AI & Data Models.

-
Scikit, Pandas
-
- -
-
- -
-

Utilities

-

Handy CLI scripts.

-
OS, Sys, Requests
-
-
+ + + + + + + + + + + + + +
+ + + + + +
+
+
+ + Open source · MIT License +
+

+ 80+ Python Projects
+ Built to Learn From +

+

+ A curated collection of practical Python projects by M.Rayan Asim — from beginner CLI scripts to advanced ML models. +

+ + + +
+
+
80+
+
Projects
+
+
+
5
+
Categories
+
+
+
+
GitHub Stars
+
+
+
+
Forks
+
+
+
+
+ +
+ + +
+
+
+ +

Project Categories

+

Five structured domains — click any to filter the projects below.

+
+
+
+
+
GUI
+
Tkinter · PyQt5
+
+
+
+
Calculator
+
Math · Logic
+
+
+
+
Games
+
Pygame · Turtle
+
+
+
+
Machine Learning
+
Scikit · Pandas
+
+
+
+
Utilities
+
OS · Sys · Requests
+
+
+
- -
-
-
-
-

Featured Projects

-

A handpicked selection of top scripts and applications.

-
- - View All 80+ - -
-
- -
-
-
-Games - Beginner -
-

Tic Tac Toe

-

A classic command-line implementation of the beloved game.

-
- - View code - -
- -
-
-
-Games - Intermediate -
-

Snake Game

-

Retro snake game built using the Turtle graphics library.

-
- - View code - -
- -
-
-
-Calculator - Advanced -
-

Sudoku Solver

-

Backtracking algorithm to automatically solve any valid Sudoku puzzle.

-
- - View code - -
- -
-
-
-Utilities - Beginner -
-

QR Code Generator

-

Simple script to generate scannable QR codes from text or URLs.

-
- - View code - -
- -
-
-
-Machine Learning - Advanced -
-

Spam Message Detection

-

NLP model using Naive Bayes to classify SMS messages as spam or ham.

-
- - View code - -
- -
-
-
-Machine Learning - Advanced -
-

Crypto Price Prediction

-

Time-series forecasting script to predict short-term cryptocurrency trends.

-
- - View code - -
-
-
+ +
+ + +
+
+
+
+ +

Featured Projects

+
+ + View all on GitHub + + +
+ + +
+
+ + +
+
+ + + + + + +
+
+ +
+ + +
+
+ Games + Beginner +
+

Tic Tac Toe

+

Classic command-line two-player game with win detection and board rendering.

+
+ python + logic + cli +
+ + View code + + +
+ + +
+
+ Games + Intermediate +
+

Snake Game

+

Retro snake game built using the Turtle graphics library with score tracking.

+
+ turtle + OOP + game loop +
+ + View code + + +
+ + +
+
+ Calculator + Advanced +
+

Sudoku Solver

+

Backtracking algorithm that automatically solves any valid 9×9 Sudoku puzzle.

+
+ backtracking + recursion + algorithm +
+ + View code + + +
+ + +
+
+ Utilities + Beginner +
+

QR Code Generator

+

Generate scannable QR codes from any text or URL and export as an image file.

+
+ qrcode + pillow + cli +
+ + View code + + +
+ + +
+
+ Machine Learning + Advanced +
+

Spam Message Detection

+

NLP model using Naive Bayes to classify SMS messages as spam or ham with high accuracy.

+
+ NLP + sklearn + textblob +
+ + View code + + +
+ + +
+
+ Machine Learning + Advanced +
+

Crypto Price Prediction

+

Time-series forecasting using Prophet to predict short-term cryptocurrency price trends.

+
+ prophet + yfinance + forecasting +
+ + View code + + +
+ + +
+
+ Machine Learning + Intermediate +
+

Sentiment Analyser

+

Analyse the emotional tone of any text using VADER sentiment scoring.

+
+ VADER + NLP + analysis +
+ + View code + + +
+ + +
+
+ GUI + Beginner +
+

GUI Calculator

+

A fully functional desktop calculator built with Tkinter — clean layout, keyboard support.

+
+ tkinter + GUI + events +
+ + View code + + +
+ + +
+
+ Utilities + Beginner +
+

URL Shortener

+

Instantly shorten any long URL using the pyshorteners library with multiple provider options.

+
+ pyshorteners + API + requests +
+ + View code + + +
+ +
+ + +
+ +

No projects match your search.

+
+
+ +
+ -
-
-

Progressive Learning

-

Projects categorized by complexity to match your current skill level.

-
-
-
-

Beginner

-

Focus on core syntax, loops, functions, and basic I/O. Ideal for those just starting out.

-
-
-

Intermediate

-

Involves APIs, basic GUIs, simple data scraping, and object-oriented concepts.

-
-
-

Advanced

-

Tackles machine learning models, complex algorithms, databases, and full applications.

-
-
+
+
+
+ +

Progressive Learning

+

Projects categorized by complexity to match your current skill level.

+
+
+
+
Beginner
+

Core Python syntax, loops, functions, and basic I/O. No prior experience needed — just run and learn.

+
+
+
Intermediate
+

Working with APIs, basic GUIs, data scraping, and object-oriented design patterns.

+
+
+
Advanced
+

Machine learning models, complex algorithms, databases, and production-ready applications.

+
+
+
- -
-
-

Ready to start building?

-

Join the community, fork the projects, and enhance your Python skills today.

- -
-

Support the Creator

- -

ETH: 0x0000000000000000000000000000000000000000

-
-
+ +
+ + +
+
+
+

Ready to start building?

+

Fork the repo, pick a project, and level up your Python skills today.

+ + + +
+
+ + stars +
+
+ + forks +
+
+ + Updated +
+
+
+
- + -