File: quick_server.py

package info (click to toggle)
python-hug 2.6.0-2.4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,072 kB
  • sloc: python: 8,938; sh: 99; makefile: 17
file content (10 lines) | stat: -rw-r--r-- 123 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import hug


@hug.get()
def quick():
    return "Serving!"


if __name__ == "__main__":
    hug.API(__name__).http.serve()