FuncToWeb
Turn typed Python functions into web interfaces.
Write a normal Python function with type hints. FuncToWeb turns it into a ready-to-use web form, validates its input and runs it over HTTP. No models, no duplicated schemas, no hand-written forms.
The same function is also an HTTP endpoint, a contract published at /doc for
people and agents, an application you mount inside FastAPI, and a page your own
frontend opens in a modal.
# pip install func-to-web
from func_to_web import run
def divide(a: float, b: float) -> float:
return a / b # Any exception becomes a clean error in the page and the API
run(divide) # http://127.0.0.1:8000
The full documentation is at https://offerrall.github.io/func-to-web/.
Documentation
- Overview: one function as a form, an API, a contract and a modal; how it works.
- Getting started:
run(), several functions, FastAPI, the options and the examples. - Types and validation: what a parameter can be, and its constraints.
- Files: file parameters, uploads and how long files are kept.
- Outputs: text, tables, images and downloads.
- Prefill and OpenForm: forms that open filled in, and functions that open other forms.
- HTTP API:
/invoke, streaming and/doc. sdk.js: calling a space and opening its forms from your own frontend.- Security and limits: what FuncToWeb guarantees, and what is up to you.
Metadata
Release files for func-to-web 2.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| func_to_web-2.9.0.tar.gz | 51.1 kB | With provenance | Details for func_to_web-2.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| func_to_web-2.9.0-py3-none-any.whl | Python 3 | none | any | Details for func_to_web-2.9.0-py3-none-any.whl |
Total release size: 114.0 kB
Release files / func_to_web-2.9.0.tar.gz
| Download URL | func_to_web-2.9.0.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d466d4d09075fb6fcc6bf9082eb35dbdea4b5262d907fb9372239080c9c20be1
|
|
BLAKE2b-256 checksum How to use checksums |
7a55ab77b1abd0e71b9dbe887e66e85e10571c77bc2f6434738f318c8903d066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / func_to_web-2.9.0-py3-none-any.whl
| Download URL | func_to_web-2.9.0-py3-none-any.whl |
|---|---|
| Size | 62.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cf7f8a04b4f252a6c8307487e1245738264a16431d1893e0e8a2ad12ec2cd5c
|
|
BLAKE2b-256 checksum How to use checksums |
af717885d8d2eeed8a3fac67acbb1ac330693b291cca216e97256cea13d43412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for func-to-web 2.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for func_to_web-2.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.