8000 GitHub - PasqualeCelani/mesop at 64467d43f00d807add09bcf9f77e5e460d039b65
[go: up one dir, main page]

Skip to content

PasqualeCelani/mesop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mesop: Build delightful web apps quickly in Python 🚀

Used at Google for rapid internal app development

Mesop is a Python-based UI framework that allows you to rapidly build web apps like demos and internal apps:

Intuitive for UI novices ✨

  • Write UI in idiomatic Python code
  • Easy to understand reactive UI paradigm
  • Ready to use components

Frictionless developer workflows 🏎️

  • Hot reload so the browser automatically reloads and preserves state
  • Edit your UI code directly in the browser using the visual editor

Flexible for delightful demos 🤩

  • Build custom UIs without writing Javascript/CSS/HTML
  • Compose your UI into components, which are just Python functions

Edit your UI directly in the browser using the Visual Editor 🪄

Visual Editor

Write your first Mesop app in less than 10 lines of code...

Demo app

import time

import mesop as me
import mesop.labs as mel


@me.page(path="/text_io", title="Text I/O Example")
def app():
  mel.text_io(
    upper_case_stream,
    title="Text I/O Example",
  )


def upper_case_stream(s: str):
  yield s.capitalize()
  time.sleep(0.5)
  yield s.capitalize() + "foo"

Try it

Step 1: Install it

$ pip install mesop

Step 2: Copy the example above into main.py

Step 3: Run the app

$ mesop main.py

Learn more in Getting Started.

Disclaimer

This is not an officially supported Google product.

Releases

No releases published

Packages

No packages published

Languages

  • Python 43.3%
  • TypeScript 30.6%
  • Starlark 14.8%
  • HTML 3.7%
  • SCSS 3.2%
  • JavaScript 2.6%
  • Other 1.8%
0