File: helloWorld.py

package info (click to toggle)
python-klein 24.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,016 kB
  • sloc: python: 6,371; makefile: 130
file content (9 lines) | stat: -rw-r--r-- 114 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from klein import route, run


@route("/")
def home(request):
    return "Hello, world!"


run("localhost", 8080)