Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/google/mesop
Rapidly build AI apps in Python
https://github.com/google/mesop
Last synced: 4 days ago
JSON representation
Rapidly build AI apps in Python
- Host: GitHub
- URL: https://github.com/google/mesop
- Owner: google
- License: apache-2.0
- Created: 2023-10-13T23:24:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-29T23:05:35.000Z (13 days ago)
- Last Synced: 2024-12-31T20:01:26.311Z (11 days ago)
- Language: Python
- Homepage: https://google.github.io/mesop/
- Size: 12.2 MB
- Stars: 5,746
- Watchers: 33
- Forks: 286
- Open Issues: 116
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-starred - google/mesop - Rapidly build AI apps in Python (Python)
- awesome-rainmana - google/mesop - Rapidly build AI apps in Python (Python)
- awesome-python-web-frameworks - Mesop - a Python-based UI framework that allows you to rapidly build web apps like demos and internal apps. (Front-end frameworks / Dead REST frameworks)
- awesome-repositories - google/mesop - Rapidly build AI apps in Python (Python)
- AiTreasureBox - google/mesop - 01-01_5746_0](https://img.shields.io/github/stars/google/mesop.svg)|| (Repos)
- my-awesome-github-stars - google/mesop - Rapidly build AI apps in Python (Python)
README
# Mesop: Build delightful web apps quickly in Python 🚀
[![PyPI](https://img.shields.io/pypi/v/mesop)](https://pypi.org/project/mesop/)
[![PyPI downloads](https://img.shields.io/pypi/dm/mesop)](https://pypi.org/project/mesop/)
[![Twitter follow](https://img.shields.io/twitter/follow/mesop_dev?style=social&label=follow)](https://twitter.com/mesop_dev)- If you're interested in learning how to use Mesop, please [read our main docs](https://google.github.io/mesop/).
- If you're interested in contributing to the core Mesop framework, please [read our contributing guide](https://google.github.io/mesop/internal/contributing/).
### 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
- Rich IDE support with strong type safety**Flexible for delightful demos 🤩**
- Build custom UIs _without_ writing Javascript/CSS/HTML
- Compose your UI into components, which are just Python functions## Write your first Mesop app in less than 10 lines of code...
[Demo app](https://google.github.io/mesop/demo/?demo=text_to_text)
```python
import mesop as me
import mesop.labs as mel@me.page(path="/text_to_text", title="Text to Text Example")
def app():
mel.text_to_text(
upper_case_stream,
title="Text to Text Example",
)def upper_case_stream(s: str):
return "Echo: " + s.capitalize()
```## Try it
### Colab
You can try [Mesop on Colab](https://colab.research.google.com/github/google/mesop/blob/main/notebooks/mesop_colab_getting_started.ipynb)!
### Locally
**Step 1:** Install it
```sh
pip install mesop
```**Step 2:** Copy the example above into `main.py`
**Step 3:** Run the app
```sh
mesop main.py
```Learn more in [Getting Started](https://google.github.io/mesop/getting-started/installing/).
## Reporting a security issue
If you identify a security vulnerability with Mesop, please file a [GitHub security issue](https://github.com/google/mesop/security/policy) and we will promptly respond to it.
## Disclaimer
_This is not an officially supported Google product._