Fu

Func-to-web – Turn Python functions into web UIs with zero boilerplate

Hacker News

Func-to-web – Turn Python functions into web UIs with zero boilerplate

I needed a tool to quickly prototype internal utilities for our company – PDF generators, data processors, file converters that non-technical colleagues could use. func-to-web generates web UIs from Python function signatures with zero boilerplate: ```python from func_to_web import run def divide(a: int, b: int): return a / b run(divide) # Web UI at localhost:8000 ``` For more complex needs, it supports advanced types: ```python def process_data( scores: Annotated[ list[Annotated[int, Field(ge=0, le=100)]], Field(min_length=3, max_length=10) ], # 3-10 items, each 0-100 files: list[ImageFile], # Multiple file uploads email: Email, # Built-in validation notes: str | None = None # Optional with toggle ): return FileResponse(pdf_data, "report.pdf") # Auto-download run(process_data) ``` Key features: - *Advanced lists*: Dynamic add/remove with constraints on both list size and items - *Optional fields*: `Type | None` creates toggle switches - *File handling*: Upload/download with progress bars, supports GB+ files - *Rich outputs*: Auto-displays PIL images, matplotlib plots, or downloadable files - *Dynamic dropdowns*: Runtime-generated options from functions - *Multiple functions*: Auto-generates index page Not trying to replace full web frameworks, but for internal tools and quick utilities, this approach feels superior to writing HTML forms. 454 unit tests. Used daily for internal tools and rapid prototyping. Got 150 stars in the first week. GitHub: https://github.com/offerrall/FuncToWeb Sharing here in case others find it interesting too :)

Share card

Actual performance

2points
3comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, 000, io · Missing: https docs, excited, just released
37%37% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntUnlikely to reach the leaderboard · Strong signals: email, notes · Missing: mac, agents, macos
36%36% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

My
My attempt at a Go web boilerplate (WebGo)54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My attempt at a Go web boilerplate (WebGo)

Hacker News2
Wo
Wooey Web UIs for Python Scripts57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wooey Web UIs for Python Scripts

Hacker News1
Py
Python 3.5 Async Web Crawler Example66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python 3.5 Async Web Crawler Example

Hacker News28
Pa
Paprika – A Boilerplate library for Python51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Paprika – A Boilerplate library for Python

Hacker News3
Pi
Piles – zero-interaction web clipping44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Piles – zero-interaction web clipping

Hacker News5
Py
Pyt2, my Python project boilerplate template46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pyt2, my Python project boilerplate template

Hacker News2
Gr
Grunt 0.4 boilerplate45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Grunt 0.4 boilerplate

Hacker News1
Bo
Bonebag, the no-nonsense Backbone Grunt boilerplate43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bonebag, the no-nonsense Backbone Grunt boilerplate

Hacker News2
(Y
(Yet Another) Flask-Boilerplate37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

(Yet Another) Flask-Boilerplate

Hacker News1
Bo
Boilerplate44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Boilerplate

Hacker News1