Write responsive web apps in full python
Lona is a web application framework, designed to write responsive web apps in full Python.
Lona handles the server side and the client side, and provides a simple, pythonic API to write self contained views.
# pip install lona
from lona.html import HTML, Button, Div, H1 from lona import LonaApp, LonaView app = LonaApp(__file__) @app.route('/') class MyView(LonaView): def handle_button_click(self, input_event): self.message.set_text('Button clicked') def handle_request(self, request): self.message = Div('Button not clicked') html = HTML( H1('Click the button!'), self.message, Button('Click me!', handle_click=self.handle_button_click), ) return html app.run(port=8080)
More information: Getting Started
How does it work?
More information: Basic Concept
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.