NiceGUI

3.10.0 · active · verified Sun Apr 12

NiceGUI is an open-source Python library for creating web-based user interfaces. It follows a backend-first philosophy, handling web development details like HTML, CSS, and JavaScript, allowing developers to focus on Python code. It's actively maintained with frequent releases, providing a wide range of UI elements, data binding, and the ability to run as a web server or in a native desktop window. The current version is 3.10.0.

Warnings

Install

Imports

Quickstart

This minimal example creates a web page with a 'Hello NiceGUI!' label and a button that displays a notification when clicked. Running this script will open the application in your browser.

from nicegui import ui

ui.label('Hello NiceGUI!')
ui.button('Click me!', on_click=lambda: ui.notify('Hello from NiceGUI!'))
ui.run()

view raw JSON →