Skip to content

Instantly share code, notes, and snippets.

@davidwtbuxton
Created April 8, 2025 10:01
Show Gist options
  • Save davidwtbuxton/47f68fa67188e9a72521f16459a52b2e to your computer and use it in GitHub Desktop.
Save davidwtbuxton/47f68fa67188e9a72521f16459a52b2e to your computer and use it in GitHub Desktop.
Minimal Python + App Engine standard deployment
# 3.13 is not available yet, as of April 2025.
runtime: python312
import wsgiref.simple_server
# The default entrypoint is a WSGI server in main:app.
app = wsgiref.simple_server.demo_app
# And to support running locally with python main.py:
if __name__ == "__main__":
with wsgiref.simple_server.make_server("", 8000, app) as server:
server.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment