Skip to main content

A lightweight WSGI-compliant Python Web framework built from scratch.

Project description

#Habab 🔥

A lightweight, WSGI-Compliant Python web framework built from scratch using clean class-based routing and 00-architecture. And also designed for learning web framework internals while remaining simple enough to understand.

Why Habab?

Habab was created to help Developers understand how web framwork internally. If focuses on:

  • Routing
  • Http Request
  • Http Response
  • Controllers
  • Middleware (Coming Soon🔥)
  • Template Engine(Coming Soon🔥)

##Quickstart

##Installation pip install habab

from habab import Habab, Controller

class HomeController(Controller): def index(self, request): return self.render("This is the home page")

app = Habab() app.mount("/user", HomeController)

if name = "main": app.run(port=8000)

##Feature

  • Class-Based Controllers: Organized routes into clean, maintainable classes.
  • Dynamic Path Routing: Map URL segments dynamically to controller methods.
  • Request & Query Parsing: Access path info, HTTP methods, and URL parameters cleanly via request.GET
  • WSGI Compliant: Works natively with python's standard 'wsgiref' server or production server like Gunicorn.

##RoadMap

Version 0.1

  • Router
  • Request
  • Response
  • Controllers

Version 0.2

  • Router Parameters

Version 0.3

  • Template Engine

Version 0.4

  • Static Files

Version 0.5

  • Middleware

Version 0.6

  • Sessions

Version 0.7

  • ORM

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

habab-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

habab-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file habab-0.1.0.tar.gz.

File metadata

  • Download URL: habab-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for habab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cad0fe352ed283a80b393cf077f5dc8b74e391d7aa8eb01d2485535ae1287c2b
MD5 5cfe35c56d6d68c69f934da14281bfce
BLAKE2b-256 251fc2cb0c95b8a6118f677d3e4183aac0788836f79688efa939b8c01c6eda53

See more details on using hashes here.

File details

Details for the file habab-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: habab-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for habab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99790573e2074fdc28c376972e563d210d3db428457b6dcd26ed0b5c18eba798
MD5 83fea8321995c1cabeb15c304d769c8c
BLAKE2b-256 2c80ee611f591b60cc85aa5779fe8b3938a8d3be2a0be1901fa4bb18ae9f04b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page