top | item 47044026

Show HN: Python UI-Me – Turn functions into web forms with one decorator

1 points| tusharnaik | 13 days ago |github.com

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.

discuss

order

No comments yet.