Pglet client for Python - easily build interactive web apps in Python
Project description
Pglet client for Python
Pglet ("pagelet") is a rich user interface (UI) framework for programs written in Python or any other language. Pglet renders web UI, so you can easily build web apps with Python. Knowledge of HTML/CSS/JavaScript is not required as you build UI with controls. Pglet controls are built with Fluent UI React to ensure your programs look cool and professional.
Hello, world!
import pglet
from pglet import Text
p = pglet.page()
p.add(Text(value="Hello, world!"))
Run the sample above with Python 3 and in a new browser window you'll get:
Here is a local page served by an instance of Pglet server started in the background on your computer.
Make it web
Add web=True
to pglet.page
call:
p = pglet.page(web=True)
p.add(Text(value="Hello, world!"))
This time page will be created on Pglet hosted service.
Read Python tutorial for further information and more examples.
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.