web-py
web.py: makes web apps
What it is and what it does
web.py is a minimalist web framework that strips away complexity to let you build HTTP applications by mapping URLs to Python classes and functions. It handles routing, request/response processing, and session management with a small API surface and few dependencies—just cheroot for the WSGI server, more_itertools for utility functions, and multipart for form data parsing.
The framework is designed for developers who want to write web applications without the overhead of larger frameworks. It has been actively maintained since 2007 and currently supports Python 3.10 through 3.14. With no known security vulnerabilities and a permissive public-domain license, it's a straightforward choice for simple web projects where you want direct control over routing and request handling.
Use it for:
- Build a simple REST API or microservice that routes HTTP requests to handler functions without heavy framework overhead.
- Prototype a web application quickly with minimal setup and configuration before scaling to a larger framework.
- Create a lightweight web server for internal tools, dashboards, or single-purpose applications.
- Learn web framework fundamentals by studying a small, readable codebase with clear request-to-response flow.
- Serve dynamic content with form handling and session management for small-to-medium web projects.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
web.py is a lightweight Python web framework for building web applications with minimal boilerplate, routing HTTP requests to handler functions.
Yes, if you need a simple, low-friction web framework for prototyping or small applications. The public-domain license, active maintenance, low install friction, and lack of security vulnerabilities make it a safe choice. Not recommended if you need the ecosystem, middleware, or scalability of larger frameworks like Django or FastAPI.
Install
web-py on PyPI
pip
pip install web-pyuv
uv add web-pypoetry
poetry add web-pyInstalling web-py
Before you install
Installation is straightforward with low friction—a pure-Python wheel with three runtime dependencies (cheroot, more_itertools, multipart). The project is actively maintained with a recent release (67 days ago) and steady commit activity.
License in practice
Released into the public domain, so there are no licensing restrictions on use, modification, or distribution for any purpose.
Quickstart
pip install web.py
import web
urls = ('/', 'index')
app = web.application(urls, globals())
class index:
def GET(self):
return 'Hello, World!'
Requires Python 3.10 or later (supports up to 3.14); earlier versions are not compatible.
Verify before relying
- Whether the framework is suitable for production-scale applications or primarily for prototyping and small projects
- Performance characteristics compared to other Python web frameworks
- Availability and quality of documentation and community support resources
Package facts
| License | Public domain (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — cheroot, more_itertools, multipart |
| Maintenance | actively maintained — 67 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 103,559/month — #12,798 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: web_py-0.76-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
appierAppier is a lightweight Python web framework…
permissive · top 5,000 on PyPI
webapp2A lightweight Python web framework designed for…
permissive · top 15,000 on PyPI
bottleBottle is a lightweight WSGI microframework for…
permissive · top 5,000 on PyPI
cookiesParses and renders HTTP Cookie and Set-Cookie…
permissive · top 15,000 on PyPI
pyramidPyramid is a Python web framework for building…
permissive · top 5,000 on PyPI
zappaZappa packages and deploys Python WSGI and ASGI…
permissive · top 15,000 on PyPI
pyblock-builderPyBlock Builder provides Python classes and…
permissive · top 15,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
proxy.pyA lightweight, pluggable HTTP proxy server…
permissive · top 5,000 on PyPI
python-fasthtmlFastHTML is a Python web framework that builds…
permissive · top 5,000 on PyPI