Reahl lets you build a web application purely in Python, and in terms of useful objects that shield you from low-level web implementation issues.

Compose complex screens by adding simple Widgets together.

panel1 = Panel(view)
panel1.add_child(P(view, text='a paragraph with text'))

a paragraph with text

Complex Widgets have rich client-side and server side behaviour.

sliding_panel = SlidingPanel(view)

panel1 = sliding_panel.add_panel(Panel(view))
panel1.add_child(P(view, text='a paragraph with text'))

panel2 = sliding_panel.add_panel(Panel(view))
panel2.add_child(P(view, text='a different paragraph'))

a paragraph with text


Entire pages are Widgets too, also composed of other Widgets...

class MyPage(HTML5Page):
   def __init__(self, view):
       super(MyPage, self).__init__(view)
       paragraph = P(view, text='Hello, I am a paragraph')

Sometimes Widget creation is delayed using a Factory that will create the Widget only once necessary.

tabbed_panel = TabbedPanel(view, 'mytabbedpanel')

tab1 = Tab(view, 'Tab 1', '1', P.factory(text='Some text.'))
tab2 = Tab(view, 'Tab 2', '2', P.factory(text='More text.'))

Some text.

A web application consists of a UserInterface, on which URLs are mapped to Views.

class TabbedPanelUI(UserInterface):
    def assemble(self):
        self.define_view('/', title='Demo',