# pump **Repository Path**: mirrors_PKRoma/pump ## Basic Information - **Project Name**: pump - **Description**: A dead simple abstraction of HTTP for Python. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Pump User Manual **Pump** is a dead simple abstraction of HTTP for Python. ## Summary The Pump specification consists of headers, requests, responses, apps, and middleware. Below are examples of each. **Pump requests**. {"server_port": "80", "server_name": "127.0.0.1", "remote_addr": "127.0.0.1", "uri": "/", "scheme": "http", "method": "get", "headers": {"accept_charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3", "connection": "keep-alive", "host": "localhost:8000", ...}} **Pump responses**. {"status": 200, "headers": {"content_type": "text/plain"}, "body": "Hello!"} **Pump apps**. def app(req): if req["uri"] == "/favicon.ico": return {"status": 404, headers: {}, body: "Not Found"} return {"status": 200, "headers": {"content_type": "text/html"}, "body": "