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 | |
|---|---|
| Flask | Hugely popular microframework based on Werkzeug and Jinja2 |
| FastAPI | Web framework for building APIs |
| Starlette | Lightweight ASGI framework/toolkit |
| aiohttp | Asynchronous HTTP client/server for asyncio and Python |
| Sanic | Web server and web framework |
| Falcon | Build cloud APIs, smart proxies, and app backends |
| Quart | Web microframework based on Asyncio |
| Pyramid | Start small, finish big, stay finished framework |
| Bottle | Fast, simple and lightweight WSGI micro web framework |
| Chalice | Python Serverless Microframework for AWS |
| CherryPy | Mature, minimalist, Python object-oriented web framework |
| TurboGears | Hybrid framework acting as a Full Stack framework or Microframework |
| Quixote | Aimed at sites where complex programming is required |
| Klein | Micro-framework for developing production-ready web services with Python |
| circuits | Lightweight event driven application framework |
| Clastic | Functional web framework |
| Hug | Make developing Python driven APIs as simple as possible |
| MicroPie | Ultra-micro ASGI Python web framework |
| Litestar | Powerful, lightweight, and flexible ASGI framework |
| BlackSheep | Asynchronous Python web framework |
| Robyn | Python web framework designed for high performance |
| Microdot | Small web framework for Python and MicroPython |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.