Skip to main content

High-Level Abstraction Web-GUI Using Just Python

Project description

NiceGUI

We like Streamlit but find it does to much magic when it comes to state handling. In search for an alernative nice library to write simple graphical user interfaces in Python we discovered justpy. While too "low-level-html" for our daily usage it provides a great basis for "NiceGUI".

Purpose

NiceGUI is intended to be used for small scripts and user interfaces with a very limited user base. Custom "Smart-Home Control" solutions or "Robotics" for example. It's also helpful for development like tweaking/configuring a machine learning training or tuning motor controllers.

Features

  • browser-based GUI
  • shared state between multiple browser windows
  • implicit reload on code change
  • clean set of GUI elements (label, button, checkbox, switch, slider, input, ...)
  • simple grouping with rows, columns and cards
  • genral-purpose html and markdown elements
  • built-in timer to refresh data in intervals (even every 10 ms)
  • straight-forward data bindings to write even less code

Install

python3 -m pip install nicegui

Usage

Write your nice GUI in a file main.py:

from nicegui import ui

ui.label('Hello NiceGUI!')
ui.button('BUTTON', on_click=lambda: print('button was pressed'))

Launch it with:

python3 main.py

Note: The script will automatically reload the GUI if you modify your code.

API

API Reference is hosted at https://nicegui.io. Also have a look at examples.py for an extensive demonstration what you can do with NiceGUI.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nicegui-0.2.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nicegui-0.2.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file nicegui-0.2.0.tar.gz.

File metadata

  • Download URL: nicegui-0.2.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1047-azure

File hashes

Hashes for nicegui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 16030638811de734e0bc96fb8170eda4007570bfa2423685bdef94859ccb2990
MD5 01ac542a78a10a1c87cd9662c474425a
BLAKE2b-256 ff3df2e3a0fb56ef7c416283578f6fa8367eb0fcf8c162ac961723b752b67e2d

See more details on using hashes here.

File details

Details for the file nicegui-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nicegui-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1047-azure

File hashes

Hashes for nicegui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b836c62672f2b9053714d081ef63be4e03deecfbbcc6b6bef56e57800ea0901
MD5 e5afb0852c0c736a99afbedf4e2144d7
BLAKE2b-256 93af5083a665d8d0a16ada80855ff0f72330077de7f349296ff0b1c485ebb7ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page