Registry / web-framework / webapp2

webapp2

JSON →
library2.5.2pypypiunverified

webapp2 is a lightweight Python web framework, designed specifically for Google App Engine's Python 2 standard environment. It extends the original `webapp` framework, providing enhanced routing, session management, and other utilities. The current version is 2.5.2, but the library is no longer actively maintained and does not support Python 3.

pip install webapp2
INSTALL
IMPORT
SIG · WEBAPP2
W
webapp2
web-frameworkpythonv2.5.2
Install
2.5s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.5.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.6MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

webapp2
import webapp2
import webapp2

This quickstart demonstrates a basic 'Hello, webapp2!' application using a single request handler and a WSGIApplication setup. This code would typically be run within a Google App Engine Python 2 standard environment.

import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.write('Hello, webapp2!') app = webapp2.WSGIApplication([ ('/', MainPage), ], debug=True) # To run locally with GAE dev server: # In your app.yaml (or similar) point to this file: # handlers: # - url: /.* # script: main.app
Debug
Known issues
breakingwebapp2 is exclusively compatible with Python 2. It does not support Python 3, making it unsuitable for modern Python development environments. Attempts to run it on Python 3 will result in syntax errors or compatibility issues.
fix
For new projects or migration, consider modern Python 3 frameworks like Flask or Django, which are actively maintained and supported on Google App Engine's flexible or standard environment (Python 3).
affects: All versions
breakingThe webapp2 library is no longer actively maintained. This means there will be no new features, bug fixes, or security patches. Using unmaintained software can pose significant security risks and lead to unresolvable issues.
fix
It is strongly recommended to use actively maintained web frameworks for any new or critical applications to ensure security, stability, and ongoing support. Migrate existing webapp2 applications to supported frameworks.
affects: All versions post 2.5.2
gotchawebapp2 is tightly coupled with the Google App Engine Python 2 Standard Environment. Running it outside this environment, especially without proper WSGI server setup (like `gunicorn` with a custom server wrapper or the GAE dev server), can be complex and is not its primary use case.
fix
If running locally for development, use the Google App Engine SDK's development server (`dev_appserver.py`). For deployment, ensure your `app.yaml` correctly points to your `webapp2.WSGIApplication` instance within the GAE Python 2 runtime.
affects: All versions
Upgrade
Version history
2.5.2latest on PyPI · released Sep 28, 2012
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources