Skip to main content
All work

PyPlain: Macro Server

A dependency-free Python web framework and macro HTTP server built entirely on the Python standard library with zero runtime bloat.

Dependency-Free HTTP Framework

2025

PyPlain: Macro Server interface

The challenge

Modern backend frameworks (Flask, FastAPI, Django) carry dozens of third-party dependencies, complex virtual environment requirements, and substantial startup overhead. For lightweight calculation daemons and embedded devices, this dependency debt introduces security vulnerabilities and maintenance friction.

The approach

We engineered PyPlain as a pure zero-dependency Python framework utilizing only `http.server`, `socketserver`, and standard parsing primitives. It introduces clean decorator routing (`@app.route`), JSON serialization helpers, and request lifecycle hooks in fewer than 400 lines of audited code.

What we made

  • Zero-Dependency HTTP Routing Core
  • Decorator Dispatch Engine
  • Macro Calculation Server Pipeline
  • Lightweight Static File Server
  • Minimalist Test Suite

Built with

Python 3 / Standard Library Primitives / SocketServer Architecture / HTTP/1.1 Engine

Credits

Core systems engineering experiment built by Certified Cool.