|
|
|
Show HN: Python UI-Me – Turn functions into web forms with one decorator
(github.com)
|
|
1 points
by tusharnaik
166 days ago
|
|
I built UI-Me because Streamlit felt too heavy and Click/Argparse felt too limiting for quick automation scripts. It’s a minimalist library that maps your Python functions to a clean web dashboard instantly. The Essentials: - One Decorator: Add @ui_enabled to any function to generate a UI form.
- No Frontend Bloat: Built with vanilla HTML/JS and Flask. No React, no NPM, no complex build steps.
- Smart Inputs: It uses type hints to build forms (supporting strings, numbers, lists, and nested JSON).
- Global State: A dedicated sidebar to view and update global variables (like API keys) on the fly.
- Rich Output: Function results are displayed in a searchable, collapsible JSON viewer. It’s essentially "Swagger UI" for your internal scripts. Perfect for when you need a control panel but don't want to spend an hour building one. |
|