A minimal web framework built from scratch implementing the WSGI spec with URL routing, request/response objects, middleware, and template rendering.
pip install -r requirements.txt
python framework.py- WSGI application interface
- URL routing with pattern matching
- Request and Response abstraction
- Middleware pipeline architecture
wsgirefdevelopment server
You will learn how web frameworks work internally and the WSGI standard powering Python web apps.
54-custom-framework/
README.md
framework.py
Custom WSGI Framework
---------------------
Registered routes:
GET / -> home_handler
GET /about -> about_handler
POST /api/data -> data_handler
Serving on http://127.0.0.1:8080
$ curl http://127.0.0.1:8080/
-> 200 OK: Welcome to the custom framework!
$ curl http://127.0.0.1:8080/about
-> 200 OK: About page content