Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 487 Bytes

quickstart.rst

File metadata and controls

21 lines (14 loc) · 487 Bytes

Quickstart

You need to have Waterspout installed to read this page. If you do not, head over to the :ref:`installation` section first.

Hello World

A Hello World application in Waterspout

from waterspout.app import Application
from waterspout.web import RequestHandler


class HelloWorldHandler(RequestHandler):
    def get(self):
        self.write('Hello World!')

Application([
    ('/', HelloWorldHandler)
]).run()