Transform any Python function into a web interface automatically
from func_to_web import run
# Minimal example
def divide(a: float, b: float):
return a / b
run(divide)
Open http://127.0.0.1:8000 → Done!
- Input Types - Learn about supported input types, validation and custom
- Output Types - Return files, images, plots, tables...
- API Endpoint - Auto-generated
/docfor scripts and AI agents - Embed Mode - Drop forms into existing sites via iframe
- Other Features - Multiple functions, Authentication, server options...

pip install func-to-web # Last tagged release from PyPI (recommended)
pip install git+https://github.com/offerrall/FuncToWeb.git # latest from GitHub (more features, but possibly unstable)
if you find in the docs that a feature is only available in the GitHub version, install from there to use it. Otherwise, the PyPI version is recommended for stability and ease of installation.