{"id":8772,"library":"webapp2","title":"webapp2 Web Framework","description":"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.","status":"abandoned","version":"2.5.2","language":"python","source_language":"en","source_url":"https://webapp2.readthedocs.io/","tags":["web","framework","google-app-engine","python2","wsgi"],"install":[{"cmd":"pip install webapp2","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"wrong":"import webapp2","symbol":"webapp2","correct":"import webapp2"}],"quickstart":{"code":"import webapp2\n\nclass MainPage(webapp2.RequestHandler):\n    def get(self):\n        self.response.headers['Content-Type'] = 'text/plain'\n        self.response.write('Hello, webapp2!')\n\napp = webapp2.WSGIApplication([\n    ('/', MainPage),\n], debug=True)\n\n# To run locally with GAE dev server:\n# In your app.yaml (or similar) point to this file:\n# handlers:\n# - url: /.* \n#   script: main.app","lang":"python","description":"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."},"warnings":[{"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).","message":"webapp2 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.","severity":"breaking","affected_versions":"All versions"},{"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.","message":"The 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.","severity":"breaking","affected_versions":"All versions post 2.5.2"},{"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.","message":"webapp2 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.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'2':19 '2.5.2':40 '3':54 'activ':47 'app':15,59 'current':37 'design':11 'engin':16,60 'enhanc':29 'environ':21 'extend':23 'framework':3,10,27,56 'googl':14,58 'google-app-engin':57 'librari':43 'lightweight':7 'longer':46 'maintain':48 'manag':32 'origin':25 'provid':28 'python':8,18,53 'python2':61 'rout':30 'session':31 'specif':12 'standard':20 'support':52 'util':35 'version':38 'web':2,9,55 'webapp':26 'webapp2':1,4 'wsgi':62","created_at":"2026-04-16T17:03:55.398268+00:00","updated_at":"2026-04-16T17:03:55.398268+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp3z7rhquh/venv/lib/python3.12/site-packages/webapp2.py\", line 571\n    except Exception, e:\n           ^^^^^^^^^^^^\nSyntaxError: multiple exception types must be parenthesized"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.5.2","cli_name":"","cli_version":null,"type":"library","homepage":"http://webapp-improved.appspot.com","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/webapp2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","gcp"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}