Framework

web.py – minimalist Python web framework

web.py is a minimalist web application framework designed to make developing websites and HTTP services straightforward. It provides a compact collection of tools for handling requests, generating responses and interacting with databases.

The framework follows a deliberately simple programming model. Applications define URL patterns and associate them with handler classes containing methods for processing HTTP requests. This approach keeps the relationship between incoming requests and application behaviour explicit.

web.py includes facilities for common web development tasks without requiring developers to adopt a particular application structure. Applications can range from small HTTP services to database-backed websites with templates, forms and persistent sessions.

Originally created by Aaron Swartz, web.py has continued to be maintained by contributors. Its emphasis on simplicity makes it particularly suitable for developers who prefer direct control over application behaviour rather than extensive framework abstractions.

This is free and open source software.

Key Features

  • Simple URL mapping system that associates incoming requests with handler classes.
  • HTTP request handling through methods such as GET and POST.
  • Built-in template engine supporting expressions, variable substitution, conditional statements and loops.
  • Database abstraction layer supporting PostgreSQL, MySQL and SQLite.
  • Database operations for inserting, selecting, updating and deleting records.
  • Support for database transactions and connections to multiple databases.
  • Form handling and validation facilities for processing submitted user data.
  • Session management with file-based and database-backed storage.
  • Request utilities for accessing query parameters, form fields, cookies and uploaded files.
  • HTTP response utilities for setting headers, handling redirects and returning errors.
  • Development web server for running and testing applications locally.
  • Support for deployment through external web servers and WSGI-compatible infrastructure.

Website: github.com/webpy/webpy
Support:
Developer: Aaron Swartz (original author), Anand Chitipothu and contributors
License: Public Domain

web.py is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Best Python Micro Frameworks
FlaskHugely popular microframework based on Werkzeug and Jinja2
FastAPIWeb framework for building APIs
StarletteLightweight ASGI framework/toolkit
aiohttpAsynchronous HTTP client/server for asyncio and Python
SanicWeb server and web framework
FalconBuild cloud APIs, smart proxies, and app backends
QuartWeb microframework based on Asyncio
PyramidStart small, finish big, stay finished framework
BottleFast, simple and lightweight WSGI micro web framework
ChalicePython Serverless Microframework for AWS
CherryPyMature, minimalist, Python object-oriented web framework
TurboGearsHybrid framework acting as a Full Stack framework or Microframework
QuixoteAimed at sites where complex programming is required
KleinMicro-framework for developing production-ready web services with Python
circuitsLightweight event driven application framework
ClasticFunctional web framework
HugMake developing Python driven APIs as simple as possible
MicroPieUltra-micro ASGI Python web framework
LitestarPowerful, lightweight, and flexible ASGI framework
BlackSheepAsynchronous Python web framework
RobynPython web framework designed for high performance
MicrodotSmall web framework for Python and MicroPython

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted